tencentcloud-sdk-cwp 3.0.508 → 3.0.510
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 +24 -0
- data/lib/v20180228/models.rb +63 -7
- 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: 37f73acdb05b7ad0e3125428d9e201095c7ce6e3
|
4
|
+
data.tar.gz: 59f776cf6fd38bf945e24314f53a5de056c6888c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44b22b3f2b5e330e5dff9726e6a949ca6a012ce3d01117f750761858af4390004d9e8cba3bca41b0d6f4e1dd0d5b81f2fd99d5a93fc7b89e2d5a5f7001301920
|
7
|
+
data.tar.gz: be6c93268533d44841248295513dd79c894690b87d24e6af0e783d17ea5a143232abb39cbe8e09b017b0944cb2af66b8f252119c8365be646238921fc40dfeea
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.510
|
data/lib/v20180228/client.rb
CHANGED
@@ -5048,6 +5048,30 @@ module TencentCloud
|
|
5048
5048
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
5049
5049
|
end
|
5050
5050
|
|
5051
|
+
# 修改主机备注信息
|
5052
|
+
|
5053
|
+
# @param request: Request instance for ModifyMachineRemark.
|
5054
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::ModifyMachineRemarkRequest`
|
5055
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::ModifyMachineRemarkResponse`
|
5056
|
+
def ModifyMachineRemark(request)
|
5057
|
+
body = send_request('ModifyMachineRemark', request.serialize)
|
5058
|
+
response = JSON.parse(body)
|
5059
|
+
if response['Response'].key?('Error') == false
|
5060
|
+
model = ModifyMachineRemarkResponse.new
|
5061
|
+
model.deserialize(response['Response'])
|
5062
|
+
model
|
5063
|
+
else
|
5064
|
+
code = response['Response']['Error']['Code']
|
5065
|
+
message = response['Response']['Error']['Message']
|
5066
|
+
reqid = response['Response']['RequestId']
|
5067
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
5068
|
+
end
|
5069
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
5070
|
+
raise e
|
5071
|
+
rescue StandardError => e
|
5072
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
5073
|
+
end
|
5074
|
+
|
5051
5075
|
# 定时扫描设置
|
5052
5076
|
|
5053
5077
|
# @param request: Request instance for ModifyMalwareTimingScanSettings.
|
data/lib/v20180228/models.rb
CHANGED
@@ -17039,10 +17039,13 @@ module TencentCloud
|
|
17039
17039
|
# @type MachineExtraInfo: :class:`Tencentcloud::Cwp.v20180228.models.MachineExtraInfo`
|
17040
17040
|
# @param InstanceId: 实例ID
|
17041
17041
|
# @type InstanceId: String
|
17042
|
+
# @param Remark: 备注信息
|
17043
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
17044
|
+
# @type Remark: String
|
17042
17045
|
|
17043
|
-
attr_accessor :MachineName, :MachineOs, :MachineStatus, :Uuid, :Quuid, :VulNum, :MachineIp, :IsProVersion, :MachineWanIp, :PayMode, :MalwareNum, :Tag, :BaselineNum, :CyberAttackNum, :SecurityStatus, :InvasionNum, :RegionInfo, :InstanceState, :LicenseStatus, :ProjectId, :HasAssetScan, :MachineType, :KernelVersion, :ProtectType, :CloudTags, :IsAddedOnTheFifteen, :IpList, :VpcId, :MachineExtraInfo, :InstanceId
|
17046
|
+
attr_accessor :MachineName, :MachineOs, :MachineStatus, :Uuid, :Quuid, :VulNum, :MachineIp, :IsProVersion, :MachineWanIp, :PayMode, :MalwareNum, :Tag, :BaselineNum, :CyberAttackNum, :SecurityStatus, :InvasionNum, :RegionInfo, :InstanceState, :LicenseStatus, :ProjectId, :HasAssetScan, :MachineType, :KernelVersion, :ProtectType, :CloudTags, :IsAddedOnTheFifteen, :IpList, :VpcId, :MachineExtraInfo, :InstanceId, :Remark
|
17044
17047
|
|
17045
|
-
def initialize(machinename=nil, machineos=nil, machinestatus=nil, uuid=nil, quuid=nil, vulnum=nil, machineip=nil, isproversion=nil, machinewanip=nil, paymode=nil, malwarenum=nil, tag=nil, baselinenum=nil, cyberattacknum=nil, securitystatus=nil, invasionnum=nil, regioninfo=nil, instancestate=nil, licensestatus=nil, projectid=nil, hasassetscan=nil, machinetype=nil, kernelversion=nil, protecttype=nil, cloudtags=nil, isaddedonthefifteen=nil, iplist=nil, vpcid=nil, machineextrainfo=nil, instanceid=nil)
|
17048
|
+
def initialize(machinename=nil, machineos=nil, machinestatus=nil, uuid=nil, quuid=nil, vulnum=nil, machineip=nil, isproversion=nil, machinewanip=nil, paymode=nil, malwarenum=nil, tag=nil, baselinenum=nil, cyberattacknum=nil, securitystatus=nil, invasionnum=nil, regioninfo=nil, instancestate=nil, licensestatus=nil, projectid=nil, hasassetscan=nil, machinetype=nil, kernelversion=nil, protecttype=nil, cloudtags=nil, isaddedonthefifteen=nil, iplist=nil, vpcid=nil, machineextrainfo=nil, instanceid=nil, remark=nil)
|
17046
17049
|
@MachineName = machinename
|
17047
17050
|
@MachineOs = machineos
|
17048
17051
|
@MachineStatus = machinestatus
|
@@ -17073,6 +17076,7 @@ module TencentCloud
|
|
17073
17076
|
@VpcId = vpcid
|
17074
17077
|
@MachineExtraInfo = machineextrainfo
|
17075
17078
|
@InstanceId = instanceid
|
17079
|
+
@Remark = remark
|
17076
17080
|
end
|
17077
17081
|
|
17078
17082
|
def deserialize(params)
|
@@ -17126,6 +17130,7 @@ module TencentCloud
|
|
17126
17130
|
@MachineExtraInfo.deserialize(params['MachineExtraInfo'])
|
17127
17131
|
end
|
17128
17132
|
@InstanceId = params['InstanceId']
|
17133
|
+
@Remark = params['Remark']
|
17129
17134
|
end
|
17130
17135
|
end
|
17131
17136
|
|
@@ -17804,6 +17809,42 @@ module TencentCloud
|
|
17804
17809
|
end
|
17805
17810
|
end
|
17806
17811
|
|
17812
|
+
# ModifyMachineRemark请求参数结构体
|
17813
|
+
class ModifyMachineRemarkRequest < TencentCloud::Common::AbstractModel
|
17814
|
+
# @param Quuid: 主机Quuid
|
17815
|
+
# @type Quuid: String
|
17816
|
+
# @param Remark: 备注信息
|
17817
|
+
# @type Remark: String
|
17818
|
+
|
17819
|
+
attr_accessor :Quuid, :Remark
|
17820
|
+
|
17821
|
+
def initialize(quuid=nil, remark=nil)
|
17822
|
+
@Quuid = quuid
|
17823
|
+
@Remark = remark
|
17824
|
+
end
|
17825
|
+
|
17826
|
+
def deserialize(params)
|
17827
|
+
@Quuid = params['Quuid']
|
17828
|
+
@Remark = params['Remark']
|
17829
|
+
end
|
17830
|
+
end
|
17831
|
+
|
17832
|
+
# ModifyMachineRemark返回参数结构体
|
17833
|
+
class ModifyMachineRemarkResponse < TencentCloud::Common::AbstractModel
|
17834
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
17835
|
+
# @type RequestId: String
|
17836
|
+
|
17837
|
+
attr_accessor :RequestId
|
17838
|
+
|
17839
|
+
def initialize(requestid=nil)
|
17840
|
+
@RequestId = requestid
|
17841
|
+
end
|
17842
|
+
|
17843
|
+
def deserialize(params)
|
17844
|
+
@RequestId = params['RequestId']
|
17845
|
+
end
|
17846
|
+
end
|
17847
|
+
|
17807
17848
|
# ModifyMalwareTimingScanSettings请求参数结构体
|
17808
17849
|
class ModifyMalwareTimingScanSettingsRequest < TencentCloud::Common::AbstractModel
|
17809
17850
|
# @param CheckPattern: 检测模式 0 全盘检测 1快速检测
|
@@ -20666,10 +20707,16 @@ module TencentCloud
|
|
20666
20707
|
# @type ControlBit: Integer
|
20667
20708
|
# @param ControlBits: 漏洞等级控制位二进制,每一位对应页面漏洞等级的开启关闭:低中高(0:关闭;1:开启),例如:101 → 同时勾选低+高
|
20668
20709
|
# @type ControlBits: String
|
20710
|
+
# @param HostRange: 告警主机范围类型,0:全部主机,1:按所属项目选,2:按腾讯云标签选,3:按主机安全标签选,4:自选主机
|
20711
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
20712
|
+
# @type HostRange: Integer
|
20713
|
+
# @param Count: 配置的告警范围主机个数,前端用此判断展示提示信息
|
20714
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
20715
|
+
# @type Count: Integer
|
20669
20716
|
|
20670
|
-
attr_accessor :Type, :DisablePhoneWarning, :BeginTime, :EndTime, :TimeZone, :ControlBit, :ControlBits
|
20717
|
+
attr_accessor :Type, :DisablePhoneWarning, :BeginTime, :EndTime, :TimeZone, :ControlBit, :ControlBits, :HostRange, :Count
|
20671
20718
|
|
20672
|
-
def initialize(type=nil, disablephonewarning=nil, begintime=nil, endtime=nil, timezone=nil, controlbit=nil, controlbits=nil)
|
20719
|
+
def initialize(type=nil, disablephonewarning=nil, begintime=nil, endtime=nil, timezone=nil, controlbit=nil, controlbits=nil, hostrange=nil, count=nil)
|
20673
20720
|
@Type = type
|
20674
20721
|
@DisablePhoneWarning = disablephonewarning
|
20675
20722
|
@BeginTime = begintime
|
@@ -20677,6 +20724,8 @@ module TencentCloud
|
|
20677
20724
|
@TimeZone = timezone
|
20678
20725
|
@ControlBit = controlbit
|
20679
20726
|
@ControlBits = controlbits
|
20727
|
+
@HostRange = hostrange
|
20728
|
+
@Count = count
|
20680
20729
|
end
|
20681
20730
|
|
20682
20731
|
def deserialize(params)
|
@@ -20687,12 +20736,14 @@ module TencentCloud
|
|
20687
20736
|
@TimeZone = params['TimeZone']
|
20688
20737
|
@ControlBit = params['ControlBit']
|
20689
20738
|
@ControlBits = params['ControlBits']
|
20739
|
+
@HostRange = params['HostRange']
|
20740
|
+
@Count = params['Count']
|
20690
20741
|
end
|
20691
20742
|
end
|
20692
20743
|
|
20693
20744
|
# 告警更新或插入的参数
|
20694
20745
|
class WarningObject < TencentCloud::Common::AbstractModel
|
20695
|
-
# @param Type: 事件告警类型;1:离线,2:木马,3:异常登录,4:爆破,5:漏洞(已拆分为9-12四种类型)6:高位命令,7:反弹sell,8:本地提权,9:系统组件漏洞,10:web应用漏洞,11:应急漏洞,12
|
20746
|
+
# @param Type: 事件告警类型;1:离线,2:木马,3:异常登录,4:爆破,5:漏洞(已拆分为9-12四种类型)6:高位命令,7:反弹sell,8:本地提权,9:系统组件漏洞,10:web应用漏洞,11:应急漏洞,12:安全基线,14:恶意请求,15: 网络攻击,16:Windows系统漏洞,17:Linux软件漏洞
|
20696
20747
|
# @type Type: Integer
|
20697
20748
|
# @param DisablePhoneWarning: 1: 关闭告警 0: 开启告警
|
20698
20749
|
# @type DisablePhoneWarning: Integer
|
@@ -20702,15 +20753,19 @@ module TencentCloud
|
|
20702
20753
|
# @type EndTime: String
|
20703
20754
|
# @param ControlBits: 漏洞等级控制位二进制,每一位对应页面漏洞等级的开启关闭:低中高(0:关闭;1:开启),例如:101 → 同时勾选低+高;01→(登录审计)疑似不告警,高危告警
|
20704
20755
|
# @type ControlBits: String
|
20756
|
+
# @param HostRange: 告警主机范围类型,0:全部主机,1:按所属项目选,2:按腾讯云标签选,3:按主机安全标签选,4:自选主机
|
20757
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
20758
|
+
# @type HostRange: Integer
|
20705
20759
|
|
20706
|
-
attr_accessor :Type, :DisablePhoneWarning, :BeginTime, :EndTime, :ControlBits
|
20760
|
+
attr_accessor :Type, :DisablePhoneWarning, :BeginTime, :EndTime, :ControlBits, :HostRange
|
20707
20761
|
|
20708
|
-
def initialize(type=nil, disablephonewarning=nil, begintime=nil, endtime=nil, controlbits=nil)
|
20762
|
+
def initialize(type=nil, disablephonewarning=nil, begintime=nil, endtime=nil, controlbits=nil, hostrange=nil)
|
20709
20763
|
@Type = type
|
20710
20764
|
@DisablePhoneWarning = disablephonewarning
|
20711
20765
|
@BeginTime = begintime
|
20712
20766
|
@EndTime = endtime
|
20713
20767
|
@ControlBits = controlbits
|
20768
|
+
@HostRange = hostrange
|
20714
20769
|
end
|
20715
20770
|
|
20716
20771
|
def deserialize(params)
|
@@ -20719,6 +20774,7 @@ module TencentCloud
|
|
20719
20774
|
@BeginTime = params['BeginTime']
|
20720
20775
|
@EndTime = params['EndTime']
|
20721
20776
|
@ControlBits = params['ControlBits']
|
20777
|
+
@HostRange = params['HostRange']
|
20722
20778
|
end
|
20723
20779
|
end
|
20724
20780
|
|
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.510
|
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-02-
|
11
|
+
date: 2023-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|