tencentcloud-sdk-cwp 3.0.509 → 3.0.511
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 +44 -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: f3390a983ca0facb1cee30adf3363948eee5d401
|
4
|
+
data.tar.gz: 78a1e8c398eebeb04eb820be77ec7770e0eeeb35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56e6d55448fcebe0dd175f869b77ba0a7c35235586b371ad4ea06d90f3dd991a5bb8354b7cd0f6e0918ec9a81b02dae412f729511ed5db37872d677638d59776
|
7
|
+
data.tar.gz: 54708feb5d375e350bcf6273cdfb63ccca54b38552636ca41a47d091a3a8bb0bbc7028a009738f5f2225e850c78b882bb23bf0a15302d1e1ccb14232e611c19e
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.511
|
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快速检测
|
@@ -19026,7 +19067,7 @@ module TencentCloud
|
|
19026
19067
|
# @param MachineWanIp: 外网ip
|
19027
19068
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
19028
19069
|
# @type MachineWanIp: String
|
19029
|
-
# @param MachineStatus: 主机在线状态
|
19070
|
+
# @param MachineStatus: 主机在线状态[OFFLINE:离线|ONLINE:在线|UNKNOWN:未知]
|
19030
19071
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
19031
19072
|
# @type MachineStatus: String
|
19032
19073
|
|
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.511
|
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-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|