tencentcloud-sdk-cwp 3.0.961 → 3.0.963
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180228/client.rb +144 -0
- data/lib/v20180228/models.rb +359 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: caf1c1473af017be926b9df5a6603f30a1aef578
|
4
|
+
data.tar.gz: 8238e3391d023587f0c047da7e165842775a6ea4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9b615b1681d820dd8f67d1b10e135c861a9690c20b575b81545f6b652c6b2a3334c12abc1beaa00d4ab9bbba75340d9a2bd097bedf94baa8392f7c9b8522c30
|
7
|
+
data.tar.gz: 77d69d636596c7744f3a3ca952bf57b0ed0e74b6fef6d8cc16565e0b1df029e1ca30b04a749a4db1b00b759f2da210ff288b7162bc6a4af3b0fd5494ec3e6658
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.963
|
data/lib/v20180228/client.rb
CHANGED
@@ -1352,6 +1352,30 @@ module TencentCloud
|
|
1352
1352
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1353
1353
|
end
|
1354
1354
|
|
1355
|
+
# 删除漏洞防御白名单
|
1356
|
+
|
1357
|
+
# @param request: Request instance for DeleteRaspRules.
|
1358
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DeleteRaspRulesRequest`
|
1359
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteRaspRulesResponse`
|
1360
|
+
def DeleteRaspRules(request)
|
1361
|
+
body = send_request('DeleteRaspRules', request.serialize)
|
1362
|
+
response = JSON.parse(body)
|
1363
|
+
if response['Response'].key?('Error') == false
|
1364
|
+
model = DeleteRaspRulesResponse.new
|
1365
|
+
model.deserialize(response['Response'])
|
1366
|
+
model
|
1367
|
+
else
|
1368
|
+
code = response['Response']['Error']['Code']
|
1369
|
+
message = response['Response']['Error']['Message']
|
1370
|
+
reqid = response['Response']['RequestId']
|
1371
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1372
|
+
end
|
1373
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1374
|
+
raise e
|
1375
|
+
rescue StandardError => e
|
1376
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1377
|
+
end
|
1378
|
+
|
1355
1379
|
# 根据Ids删除反弹Shell事件
|
1356
1380
|
|
1357
1381
|
# @param request: Request instance for DeleteReverseShellEvents.
|
@@ -6546,6 +6570,78 @@ module TencentCloud
|
|
6546
6570
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
6547
6571
|
end
|
6548
6572
|
|
6573
|
+
# 查看漏洞防御最大cpu限制
|
6574
|
+
|
6575
|
+
# @param request: Request instance for DescribeRaspMaxCpu.
|
6576
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DescribeRaspMaxCpuRequest`
|
6577
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeRaspMaxCpuResponse`
|
6578
|
+
def DescribeRaspMaxCpu(request)
|
6579
|
+
body = send_request('DescribeRaspMaxCpu', request.serialize)
|
6580
|
+
response = JSON.parse(body)
|
6581
|
+
if response['Response'].key?('Error') == false
|
6582
|
+
model = DescribeRaspMaxCpuResponse.new
|
6583
|
+
model.deserialize(response['Response'])
|
6584
|
+
model
|
6585
|
+
else
|
6586
|
+
code = response['Response']['Error']['Code']
|
6587
|
+
message = response['Response']['Error']['Message']
|
6588
|
+
reqid = response['Response']['RequestId']
|
6589
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
6590
|
+
end
|
6591
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
6592
|
+
raise e
|
6593
|
+
rescue StandardError => e
|
6594
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
6595
|
+
end
|
6596
|
+
|
6597
|
+
# 获取漏洞防御白名单漏洞列表
|
6598
|
+
|
6599
|
+
# @param request: Request instance for DescribeRaspRuleVuls.
|
6600
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DescribeRaspRuleVulsRequest`
|
6601
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeRaspRuleVulsResponse`
|
6602
|
+
def DescribeRaspRuleVuls(request)
|
6603
|
+
body = send_request('DescribeRaspRuleVuls', request.serialize)
|
6604
|
+
response = JSON.parse(body)
|
6605
|
+
if response['Response'].key?('Error') == false
|
6606
|
+
model = DescribeRaspRuleVulsResponse.new
|
6607
|
+
model.deserialize(response['Response'])
|
6608
|
+
model
|
6609
|
+
else
|
6610
|
+
code = response['Response']['Error']['Code']
|
6611
|
+
message = response['Response']['Error']['Message']
|
6612
|
+
reqid = response['Response']['RequestId']
|
6613
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
6614
|
+
end
|
6615
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
6616
|
+
raise e
|
6617
|
+
rescue StandardError => e
|
6618
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
6619
|
+
end
|
6620
|
+
|
6621
|
+
# 查询漏洞防御白名单
|
6622
|
+
|
6623
|
+
# @param request: Request instance for DescribeRaspRules.
|
6624
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DescribeRaspRulesRequest`
|
6625
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeRaspRulesResponse`
|
6626
|
+
def DescribeRaspRules(request)
|
6627
|
+
body = send_request('DescribeRaspRules', request.serialize)
|
6628
|
+
response = JSON.parse(body)
|
6629
|
+
if response['Response'].key?('Error') == false
|
6630
|
+
model = DescribeRaspRulesResponse.new
|
6631
|
+
model.deserialize(response['Response'])
|
6632
|
+
model
|
6633
|
+
else
|
6634
|
+
code = response['Response']['Error']['Code']
|
6635
|
+
message = response['Response']['Error']['Message']
|
6636
|
+
reqid = response['Response']['RequestId']
|
6637
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
6638
|
+
end
|
6639
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
6640
|
+
raise e
|
6641
|
+
rescue StandardError => e
|
6642
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
6643
|
+
end
|
6644
|
+
|
6549
6645
|
# 查询推荐购买防护核数
|
6550
6646
|
|
6551
6647
|
# @param request: Request instance for DescribeRecommendedProtectCpu.
|
@@ -11252,6 +11348,54 @@ module TencentCloud
|
|
11252
11348
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
11253
11349
|
end
|
11254
11350
|
|
11351
|
+
# 编辑漏洞防御最大cpu配置
|
11352
|
+
|
11353
|
+
# @param request: Request instance for ModifyRaspMaxCpu.
|
11354
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::ModifyRaspMaxCpuRequest`
|
11355
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::ModifyRaspMaxCpuResponse`
|
11356
|
+
def ModifyRaspMaxCpu(request)
|
11357
|
+
body = send_request('ModifyRaspMaxCpu', request.serialize)
|
11358
|
+
response = JSON.parse(body)
|
11359
|
+
if response['Response'].key?('Error') == false
|
11360
|
+
model = ModifyRaspMaxCpuResponse.new
|
11361
|
+
model.deserialize(response['Response'])
|
11362
|
+
model
|
11363
|
+
else
|
11364
|
+
code = response['Response']['Error']['Code']
|
11365
|
+
message = response['Response']['Error']['Message']
|
11366
|
+
reqid = response['Response']['RequestId']
|
11367
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
11368
|
+
end
|
11369
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
11370
|
+
raise e
|
11371
|
+
rescue StandardError => e
|
11372
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
11373
|
+
end
|
11374
|
+
|
11375
|
+
# 添加漏洞防御白名单
|
11376
|
+
|
11377
|
+
# @param request: Request instance for ModifyRaspRules.
|
11378
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::ModifyRaspRulesRequest`
|
11379
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::ModifyRaspRulesResponse`
|
11380
|
+
def ModifyRaspRules(request)
|
11381
|
+
body = send_request('ModifyRaspRules', request.serialize)
|
11382
|
+
response = JSON.parse(body)
|
11383
|
+
if response['Response'].key?('Error') == false
|
11384
|
+
model = ModifyRaspRulesResponse.new
|
11385
|
+
model.deserialize(response['Response'])
|
11386
|
+
model
|
11387
|
+
else
|
11388
|
+
code = response['Response']['Error']['Code']
|
11389
|
+
message = response['Response']['Error']['Message']
|
11390
|
+
reqid = response['Response']['RequestId']
|
11391
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
11392
|
+
end
|
11393
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
11394
|
+
raise e
|
11395
|
+
rescue StandardError => e
|
11396
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
11397
|
+
end
|
11398
|
+
|
11255
11399
|
# 编辑反弹Shell规则(支持多服务器选择)
|
11256
11400
|
|
11257
11401
|
# @param request: Request instance for ModifyReverseShellRulesAggregation.
|
data/lib/v20180228/models.rb
CHANGED
@@ -4152,16 +4152,18 @@ module TencentCloud
|
|
4152
4152
|
# @type ModifyTime: String
|
4153
4153
|
# @param RuleCategory: 规则类别 0=系统规则,1=用户规则
|
4154
4154
|
# @type RuleCategory: Integer
|
4155
|
-
# @param RegexBashCmd:
|
4155
|
+
# @param RegexBashCmd: 转义后的正则表达式
|
4156
4156
|
# @type RegexBashCmd: String
|
4157
|
+
# @param RegexExe: 转义后的正则表达式
|
4158
|
+
# @type RegexExe: String
|
4157
4159
|
# @param MachineType: 0:普通 1:专业版 2:旗舰版
|
4158
4160
|
# @type MachineType: Integer
|
4159
4161
|
# @param MachineExtraInfo: 机器额外信息
|
4160
4162
|
# @type MachineExtraInfo: :class:`Tencentcloud::Cwp.v20180228.models.MachineExtraInfo`
|
4161
4163
|
|
4162
|
-
attr_accessor :Id, :Uuid, :Quuid, :HostIp, :User, :Platform, :BashCmd, :RuleId, :RuleName, :RuleLevel, :Status, :CreateTime, :MachineName, :DetectBy, :Pid, :Exe, :ModifyTime, :RuleCategory, :RegexBashCmd, :MachineType, :MachineExtraInfo
|
4164
|
+
attr_accessor :Id, :Uuid, :Quuid, :HostIp, :User, :Platform, :BashCmd, :RuleId, :RuleName, :RuleLevel, :Status, :CreateTime, :MachineName, :DetectBy, :Pid, :Exe, :ModifyTime, :RuleCategory, :RegexBashCmd, :RegexExe, :MachineType, :MachineExtraInfo
|
4163
4165
|
|
4164
|
-
def initialize(id=nil, uuid=nil, quuid=nil, hostip=nil, user=nil, platform=nil, bashcmd=nil, ruleid=nil, rulename=nil, rulelevel=nil, status=nil, createtime=nil, machinename=nil, detectby=nil, pid=nil, exe=nil, modifytime=nil, rulecategory=nil, regexbashcmd=nil, machinetype=nil, machineextrainfo=nil)
|
4166
|
+
def initialize(id=nil, uuid=nil, quuid=nil, hostip=nil, user=nil, platform=nil, bashcmd=nil, ruleid=nil, rulename=nil, rulelevel=nil, status=nil, createtime=nil, machinename=nil, detectby=nil, pid=nil, exe=nil, modifytime=nil, rulecategory=nil, regexbashcmd=nil, regexexe=nil, machinetype=nil, machineextrainfo=nil)
|
4165
4167
|
@Id = id
|
4166
4168
|
@Uuid = uuid
|
4167
4169
|
@Quuid = quuid
|
@@ -4181,6 +4183,7 @@ module TencentCloud
|
|
4181
4183
|
@ModifyTime = modifytime
|
4182
4184
|
@RuleCategory = rulecategory
|
4183
4185
|
@RegexBashCmd = regexbashcmd
|
4186
|
+
@RegexExe = regexexe
|
4184
4187
|
@MachineType = machinetype
|
4185
4188
|
@MachineExtraInfo = machineextrainfo
|
4186
4189
|
end
|
@@ -4205,6 +4208,7 @@ module TencentCloud
|
|
4205
4208
|
@ModifyTime = params['ModifyTime']
|
4206
4209
|
@RuleCategory = params['RuleCategory']
|
4207
4210
|
@RegexBashCmd = params['RegexBashCmd']
|
4211
|
+
@RegexExe = params['RegexExe']
|
4208
4212
|
@MachineType = params['MachineType']
|
4209
4213
|
unless params['MachineExtraInfo'].nil?
|
4210
4214
|
@MachineExtraInfo = MachineExtraInfo.new
|
@@ -7513,6 +7517,38 @@ module TencentCloud
|
|
7513
7517
|
end
|
7514
7518
|
end
|
7515
7519
|
|
7520
|
+
# DeleteRaspRules请求参数结构体
|
7521
|
+
class DeleteRaspRulesRequest < TencentCloud::Common::AbstractModel
|
7522
|
+
# @param IDs: 待删除的规则ID数组 (最大100条)
|
7523
|
+
# @type IDs: Array
|
7524
|
+
|
7525
|
+
attr_accessor :IDs
|
7526
|
+
|
7527
|
+
def initialize(ids=nil)
|
7528
|
+
@IDs = ids
|
7529
|
+
end
|
7530
|
+
|
7531
|
+
def deserialize(params)
|
7532
|
+
@IDs = params['IDs']
|
7533
|
+
end
|
7534
|
+
end
|
7535
|
+
|
7536
|
+
# DeleteRaspRules返回参数结构体
|
7537
|
+
class DeleteRaspRulesResponse < TencentCloud::Common::AbstractModel
|
7538
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7539
|
+
# @type RequestId: String
|
7540
|
+
|
7541
|
+
attr_accessor :RequestId
|
7542
|
+
|
7543
|
+
def initialize(requestid=nil)
|
7544
|
+
@RequestId = requestid
|
7545
|
+
end
|
7546
|
+
|
7547
|
+
def deserialize(params)
|
7548
|
+
@RequestId = params['RequestId']
|
7549
|
+
end
|
7550
|
+
end
|
7551
|
+
|
7516
7552
|
# DeleteReverseShellEvents请求参数结构体
|
7517
7553
|
class DeleteReverseShellEventsRequest < TencentCloud::Common::AbstractModel
|
7518
7554
|
# @param Ids: ID数组. (最大100条)
|
@@ -20610,6 +20646,170 @@ module TencentCloud
|
|
20610
20646
|
end
|
20611
20647
|
end
|
20612
20648
|
|
20649
|
+
# DescribeRaspMaxCpu请求参数结构体
|
20650
|
+
class DescribeRaspMaxCpuRequest < TencentCloud::Common::AbstractModel
|
20651
|
+
|
20652
|
+
|
20653
|
+
def initialize()
|
20654
|
+
end
|
20655
|
+
|
20656
|
+
def deserialize(params)
|
20657
|
+
end
|
20658
|
+
end
|
20659
|
+
|
20660
|
+
# DescribeRaspMaxCpu返回参数结构体
|
20661
|
+
class DescribeRaspMaxCpuResponse < TencentCloud::Common::AbstractModel
|
20662
|
+
# @param RaspMaxCpu: rasp当前最大cpu限制,0<cpu<=100,默认100表示不限制
|
20663
|
+
# @type RaspMaxCpu: Integer
|
20664
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
20665
|
+
# @type RequestId: String
|
20666
|
+
|
20667
|
+
attr_accessor :RaspMaxCpu, :RequestId
|
20668
|
+
|
20669
|
+
def initialize(raspmaxcpu=nil, requestid=nil)
|
20670
|
+
@RaspMaxCpu = raspmaxcpu
|
20671
|
+
@RequestId = requestid
|
20672
|
+
end
|
20673
|
+
|
20674
|
+
def deserialize(params)
|
20675
|
+
@RaspMaxCpu = params['RaspMaxCpu']
|
20676
|
+
@RequestId = params['RequestId']
|
20677
|
+
end
|
20678
|
+
end
|
20679
|
+
|
20680
|
+
# DescribeRaspRuleVuls请求参数结构体
|
20681
|
+
class DescribeRaspRuleVulsRequest < TencentCloud::Common::AbstractModel
|
20682
|
+
# @param Filters: 过滤条件。Name=WhiteType的必选,0:表示自定义范围的漏洞列表,1:表示全部请求范围的列表
|
20683
|
+
# @type Filters: Array
|
20684
|
+
# @param Limit: 返回数量,默认为10,最大值为1000。
|
20685
|
+
# @type Limit: Integer
|
20686
|
+
# @param Offset: 偏移量,默认为0。
|
20687
|
+
# @type Offset: Integer
|
20688
|
+
|
20689
|
+
attr_accessor :Filters, :Limit, :Offset
|
20690
|
+
|
20691
|
+
def initialize(filters=nil, limit=nil, offset=nil)
|
20692
|
+
@Filters = filters
|
20693
|
+
@Limit = limit
|
20694
|
+
@Offset = offset
|
20695
|
+
end
|
20696
|
+
|
20697
|
+
def deserialize(params)
|
20698
|
+
unless params['Filters'].nil?
|
20699
|
+
@Filters = []
|
20700
|
+
params['Filters'].each do |i|
|
20701
|
+
filter_tmp = Filter.new
|
20702
|
+
filter_tmp.deserialize(i)
|
20703
|
+
@Filters << filter_tmp
|
20704
|
+
end
|
20705
|
+
end
|
20706
|
+
@Limit = params['Limit']
|
20707
|
+
@Offset = params['Offset']
|
20708
|
+
end
|
20709
|
+
end
|
20710
|
+
|
20711
|
+
# DescribeRaspRuleVuls返回参数结构体
|
20712
|
+
class DescribeRaspRuleVulsResponse < TencentCloud::Common::AbstractModel
|
20713
|
+
# @param List: 列表内容
|
20714
|
+
# @type List: Array
|
20715
|
+
# @param TotalCount: 总条数
|
20716
|
+
# @type TotalCount: Integer
|
20717
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
20718
|
+
# @type RequestId: String
|
20719
|
+
|
20720
|
+
attr_accessor :List, :TotalCount, :RequestId
|
20721
|
+
|
20722
|
+
def initialize(list=nil, totalcount=nil, requestid=nil)
|
20723
|
+
@List = list
|
20724
|
+
@TotalCount = totalcount
|
20725
|
+
@RequestId = requestid
|
20726
|
+
end
|
20727
|
+
|
20728
|
+
def deserialize(params)
|
20729
|
+
unless params['List'].nil?
|
20730
|
+
@List = []
|
20731
|
+
params['List'].each do |i|
|
20732
|
+
rasprulevul_tmp = RaspRuleVul.new
|
20733
|
+
rasprulevul_tmp.deserialize(i)
|
20734
|
+
@List << rasprulevul_tmp
|
20735
|
+
end
|
20736
|
+
end
|
20737
|
+
@TotalCount = params['TotalCount']
|
20738
|
+
@RequestId = params['RequestId']
|
20739
|
+
end
|
20740
|
+
end
|
20741
|
+
|
20742
|
+
# DescribeRaspRules请求参数结构体
|
20743
|
+
class DescribeRaspRulesRequest < TencentCloud::Common::AbstractModel
|
20744
|
+
# @param Limit: 返回数量,默认为10,最大值为100。
|
20745
|
+
# @type Limit: Integer
|
20746
|
+
# @param Offset: 偏移量,默认为0。
|
20747
|
+
# @type Offset: Integer
|
20748
|
+
# @param Filters: 过滤条件。
|
20749
|
+
# <li>Keywords - String - 是否必填:否 - 关键字(进程名称)</li>
|
20750
|
+
# @type Filters: Array
|
20751
|
+
# @param By: 排序字段,目前有:CreateTime、ModifyTime,默认按照ModifyTime排序
|
20752
|
+
# @type By: String
|
20753
|
+
# @param Order: 排序升序还是倒序,DESC有ASC、
|
20754
|
+
# @type Order: String
|
20755
|
+
|
20756
|
+
attr_accessor :Limit, :Offset, :Filters, :By, :Order
|
20757
|
+
|
20758
|
+
def initialize(limit=nil, offset=nil, filters=nil, by=nil, order=nil)
|
20759
|
+
@Limit = limit
|
20760
|
+
@Offset = offset
|
20761
|
+
@Filters = filters
|
20762
|
+
@By = by
|
20763
|
+
@Order = order
|
20764
|
+
end
|
20765
|
+
|
20766
|
+
def deserialize(params)
|
20767
|
+
@Limit = params['Limit']
|
20768
|
+
@Offset = params['Offset']
|
20769
|
+
unless params['Filters'].nil?
|
20770
|
+
@Filters = []
|
20771
|
+
params['Filters'].each do |i|
|
20772
|
+
filter_tmp = Filter.new
|
20773
|
+
filter_tmp.deserialize(i)
|
20774
|
+
@Filters << filter_tmp
|
20775
|
+
end
|
20776
|
+
end
|
20777
|
+
@By = params['By']
|
20778
|
+
@Order = params['Order']
|
20779
|
+
end
|
20780
|
+
end
|
20781
|
+
|
20782
|
+
# DescribeRaspRules返回参数结构体
|
20783
|
+
class DescribeRaspRulesResponse < TencentCloud::Common::AbstractModel
|
20784
|
+
# @param List: 列表内容
|
20785
|
+
# @type List: Array
|
20786
|
+
# @param TotalCount: 总条数
|
20787
|
+
# @type TotalCount: Integer
|
20788
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
20789
|
+
# @type RequestId: String
|
20790
|
+
|
20791
|
+
attr_accessor :List, :TotalCount, :RequestId
|
20792
|
+
|
20793
|
+
def initialize(list=nil, totalcount=nil, requestid=nil)
|
20794
|
+
@List = list
|
20795
|
+
@TotalCount = totalcount
|
20796
|
+
@RequestId = requestid
|
20797
|
+
end
|
20798
|
+
|
20799
|
+
def deserialize(params)
|
20800
|
+
unless params['List'].nil?
|
20801
|
+
@List = []
|
20802
|
+
params['List'].each do |i|
|
20803
|
+
rasprule_tmp = RaspRule.new
|
20804
|
+
rasprule_tmp.deserialize(i)
|
20805
|
+
@List << rasprule_tmp
|
20806
|
+
end
|
20807
|
+
end
|
20808
|
+
@TotalCount = params['TotalCount']
|
20809
|
+
@RequestId = params['RequestId']
|
20810
|
+
end
|
20811
|
+
end
|
20812
|
+
|
20613
20813
|
# DescribeRecommendedProtectCpu请求参数结构体
|
20614
20814
|
class DescribeRecommendedProtectCpuRequest < TencentCloud::Common::AbstractModel
|
20615
20815
|
|
@@ -34351,6 +34551,82 @@ module TencentCloud
|
|
34351
34551
|
end
|
34352
34552
|
end
|
34353
34553
|
|
34554
|
+
# ModifyRaspMaxCpu请求参数结构体
|
34555
|
+
class ModifyRaspMaxCpuRequest < TencentCloud::Common::AbstractModel
|
34556
|
+
# @param RaspMaxCpu: rasp当前最大cpu限制,0<cpu<=100,默认100表示不限制
|
34557
|
+
# @type RaspMaxCpu: Integer
|
34558
|
+
|
34559
|
+
attr_accessor :RaspMaxCpu
|
34560
|
+
|
34561
|
+
def initialize(raspmaxcpu=nil)
|
34562
|
+
@RaspMaxCpu = raspmaxcpu
|
34563
|
+
end
|
34564
|
+
|
34565
|
+
def deserialize(params)
|
34566
|
+
@RaspMaxCpu = params['RaspMaxCpu']
|
34567
|
+
end
|
34568
|
+
end
|
34569
|
+
|
34570
|
+
# ModifyRaspMaxCpu返回参数结构体
|
34571
|
+
class ModifyRaspMaxCpuResponse < TencentCloud::Common::AbstractModel
|
34572
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
34573
|
+
# @type RequestId: String
|
34574
|
+
|
34575
|
+
attr_accessor :RequestId
|
34576
|
+
|
34577
|
+
def initialize(requestid=nil)
|
34578
|
+
@RequestId = requestid
|
34579
|
+
end
|
34580
|
+
|
34581
|
+
def deserialize(params)
|
34582
|
+
@RequestId = params['RequestId']
|
34583
|
+
end
|
34584
|
+
end
|
34585
|
+
|
34586
|
+
# ModifyRaspRules请求参数结构体
|
34587
|
+
class ModifyRaspRulesRequest < TencentCloud::Common::AbstractModel
|
34588
|
+
# @param Id: 规则ID(新增时请留空,编辑时候必传)
|
34589
|
+
# @type Id: Integer
|
34590
|
+
# @param VulVulsIDs: 漏洞id数组
|
34591
|
+
# @type VulVulsIDs: Array
|
34592
|
+
# @param URLRegexp: 自定义请求范围加白正则表达式,选择全部请求范围时候为空,否则不能为空,base64编码
|
34593
|
+
# @type URLRegexp: String
|
34594
|
+
# @param WhiteType: 加白方式,0:自定义请求范围加白。1:全部请求加白
|
34595
|
+
# @type WhiteType: Integer
|
34596
|
+
|
34597
|
+
attr_accessor :Id, :VulVulsIDs, :URLRegexp, :WhiteType
|
34598
|
+
|
34599
|
+
def initialize(id=nil, vulvulsids=nil, urlregexp=nil, whitetype=nil)
|
34600
|
+
@Id = id
|
34601
|
+
@VulVulsIDs = vulvulsids
|
34602
|
+
@URLRegexp = urlregexp
|
34603
|
+
@WhiteType = whitetype
|
34604
|
+
end
|
34605
|
+
|
34606
|
+
def deserialize(params)
|
34607
|
+
@Id = params['Id']
|
34608
|
+
@VulVulsIDs = params['VulVulsIDs']
|
34609
|
+
@URLRegexp = params['URLRegexp']
|
34610
|
+
@WhiteType = params['WhiteType']
|
34611
|
+
end
|
34612
|
+
end
|
34613
|
+
|
34614
|
+
# ModifyRaspRules返回参数结构体
|
34615
|
+
class ModifyRaspRulesResponse < TencentCloud::Common::AbstractModel
|
34616
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
34617
|
+
# @type RequestId: String
|
34618
|
+
|
34619
|
+
attr_accessor :RequestId
|
34620
|
+
|
34621
|
+
def initialize(requestid=nil)
|
34622
|
+
@RequestId = requestid
|
34623
|
+
end
|
34624
|
+
|
34625
|
+
def deserialize(params)
|
34626
|
+
@RequestId = params['RequestId']
|
34627
|
+
end
|
34628
|
+
end
|
34629
|
+
|
34354
34630
|
# ModifyReverseShellRulesAggregation请求参数结构体
|
34355
34631
|
class ModifyReverseShellRulesAggregationRequest < TencentCloud::Common::AbstractModel
|
34356
34632
|
# @param Id: 规则ID(新增时请留空)
|
@@ -36933,6 +37209,86 @@ module TencentCloud
|
|
36933
37209
|
end
|
36934
37210
|
end
|
36935
37211
|
|
37212
|
+
# rasp白名单规则
|
37213
|
+
class RaspRule < TencentCloud::Common::AbstractModel
|
37214
|
+
# @param Id: 规则ID
|
37215
|
+
# @type Id: Integer
|
37216
|
+
# @param URLRegexp: 自定义请求url范围正则表达式,为空则保存不成功
|
37217
|
+
# @type URLRegexp: String
|
37218
|
+
# @param VulVulsID: 漏洞id
|
37219
|
+
# @type VulVulsID: Integer
|
37220
|
+
# @param VulVulsName: 漏洞名称
|
37221
|
+
# @type VulVulsName: String
|
37222
|
+
# @param CveID: cve_id
|
37223
|
+
# @type CveID: String
|
37224
|
+
# @param SupportDefense: 漏洞防御类型,从漏洞表富化, 1:支持组件漏洞防御,组件漏洞没有正则加白。2:支持正则防御
|
37225
|
+
# @type SupportDefense: Integer
|
37226
|
+
# @param WhiteType: 加白范围,0:全部请求加白,1:自定义请求范围加白
|
37227
|
+
# @type WhiteType: Integer
|
37228
|
+
# @param Status: 状态 0: 有效
|
37229
|
+
# @type Status: Integer
|
37230
|
+
# @param CreateTime: 创建时间
|
37231
|
+
# @type CreateTime: String
|
37232
|
+
# @param ModifyTime: 修改时间
|
37233
|
+
# @type ModifyTime: String
|
37234
|
+
|
37235
|
+
attr_accessor :Id, :URLRegexp, :VulVulsID, :VulVulsName, :CveID, :SupportDefense, :WhiteType, :Status, :CreateTime, :ModifyTime
|
37236
|
+
|
37237
|
+
def initialize(id=nil, urlregexp=nil, vulvulsid=nil, vulvulsname=nil, cveid=nil, supportdefense=nil, whitetype=nil, status=nil, createtime=nil, modifytime=nil)
|
37238
|
+
@Id = id
|
37239
|
+
@URLRegexp = urlregexp
|
37240
|
+
@VulVulsID = vulvulsid
|
37241
|
+
@VulVulsName = vulvulsname
|
37242
|
+
@CveID = cveid
|
37243
|
+
@SupportDefense = supportdefense
|
37244
|
+
@WhiteType = whitetype
|
37245
|
+
@Status = status
|
37246
|
+
@CreateTime = createtime
|
37247
|
+
@ModifyTime = modifytime
|
37248
|
+
end
|
37249
|
+
|
37250
|
+
def deserialize(params)
|
37251
|
+
@Id = params['Id']
|
37252
|
+
@URLRegexp = params['URLRegexp']
|
37253
|
+
@VulVulsID = params['VulVulsID']
|
37254
|
+
@VulVulsName = params['VulVulsName']
|
37255
|
+
@CveID = params['CveID']
|
37256
|
+
@SupportDefense = params['SupportDefense']
|
37257
|
+
@WhiteType = params['WhiteType']
|
37258
|
+
@Status = params['Status']
|
37259
|
+
@CreateTime = params['CreateTime']
|
37260
|
+
@ModifyTime = params['ModifyTime']
|
37261
|
+
end
|
37262
|
+
end
|
37263
|
+
|
37264
|
+
# rasp白名单漏洞列表
|
37265
|
+
class RaspRuleVul < TencentCloud::Common::AbstractModel
|
37266
|
+
# @param VulVulsID: 漏洞id
|
37267
|
+
# @type VulVulsID: Integer
|
37268
|
+
# @param VulVulsName: 漏洞名称
|
37269
|
+
# @type VulVulsName: String
|
37270
|
+
# @param CveID: cve_id
|
37271
|
+
# @type CveID: String
|
37272
|
+
# @param SupportDefense: 漏洞防御类型,从漏洞表富化, 1:支持组件漏洞防御,组件漏洞没有正则加白。2:支持正则防御
|
37273
|
+
# @type SupportDefense: Integer
|
37274
|
+
|
37275
|
+
attr_accessor :VulVulsID, :VulVulsName, :CveID, :SupportDefense
|
37276
|
+
|
37277
|
+
def initialize(vulvulsid=nil, vulvulsname=nil, cveid=nil, supportdefense=nil)
|
37278
|
+
@VulVulsID = vulvulsid
|
37279
|
+
@VulVulsName = vulvulsname
|
37280
|
+
@CveID = cveid
|
37281
|
+
@SupportDefense = supportdefense
|
37282
|
+
end
|
37283
|
+
|
37284
|
+
def deserialize(params)
|
37285
|
+
@VulVulsID = params['VulVulsID']
|
37286
|
+
@VulVulsName = params['VulVulsName']
|
37287
|
+
@CveID = params['CveID']
|
37288
|
+
@SupportDefense = params['SupportDefense']
|
37289
|
+
end
|
37290
|
+
end
|
37291
|
+
|
36936
37292
|
# 客户端异常信息结构
|
36937
37293
|
class RecordInfo < TencentCloud::Common::AbstractModel
|
36938
37294
|
# @param HostIP: 主机ip
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cwp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.963
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|