Class: TencentCloud::Cwp::V20180228::VulHostTopInfo
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cwp::V20180228::VulHostTopInfo
- Defined in:
- lib/v20180228/models.rb
Overview
服务器风险top5实体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(hostname = nil, vullevellist = nil, quuid = nil, score = nil) ⇒ VulHostTopInfo
constructor
A new instance of VulHostTopInfo.
Constructor Details
#initialize(hostname = nil, vullevellist = nil, quuid = nil, score = nil) ⇒ VulHostTopInfo
Returns a new instance of VulHostTopInfo.
41001 41002 41003 41004 41005 41006 |
# File 'lib/v20180228/models.rb', line 41001 def initialize(hostname=nil, vullevellist=nil, quuid=nil, score=nil) @HostName = hostname @VulLevelList = vullevellist @Quuid = quuid @Score = score end |
Instance Attribute Details
#HostName ⇒ Object
40999 41000 41001 |
# File 'lib/v20180228/models.rb', line 40999 def HostName @HostName end |
#Quuid ⇒ Object
40999 41000 41001 |
# File 'lib/v20180228/models.rb', line 40999 def Quuid @Quuid end |
#Score ⇒ Object
40999 41000 41001 |
# File 'lib/v20180228/models.rb', line 40999 def Score @Score end |
#VulLevelList ⇒ Object
40999 41000 41001 |
# File 'lib/v20180228/models.rb', line 40999 def VulLevelList @VulLevelList end |
Instance Method Details
#deserialize(params) ⇒ Object
41008 41009 41010 41011 41012 41013 41014 41015 41016 41017 41018 41019 41020 |
# File 'lib/v20180228/models.rb', line 41008 def deserialize(params) @HostName = params['HostName'] unless params['VulLevelList'].nil? @VulLevelList = [] params['VulLevelList'].each do |i| vullevelcountinfo_tmp = VulLevelCountInfo.new vullevelcountinfo_tmp.deserialize(i) @VulLevelList << vullevelcountinfo_tmp end end @Quuid = params['Quuid'] @Score = params['Score'] end |