Class: TencentCloud::Cwp::V20180228::HostDesc
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cwp::V20180228::HostDesc
- Defined in:
- lib/v20180228/models.rb
Overview
展示登录审计白名单时的主机信息实体
Instance Attribute Summary collapse
- #MachineIp ⇒ Object
- #MachineName ⇒ Object
- #MachineWanIp ⇒ Object
- #Quuid ⇒ Object
- #Tags ⇒ Object
- #Uuid ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(quuid = nil, uuid = nil, machinename = nil, machineip = nil, machinewanip = nil, tags = nil) ⇒ HostDesc
constructor
A new instance of HostDesc.
Constructor Details
#initialize(quuid = nil, uuid = nil, machinename = nil, machineip = nil, machinewanip = nil, tags = nil) ⇒ HostDesc
Returns a new instance of HostDesc.
29936 29937 29938 29939 29940 29941 29942 29943 |
# File 'lib/v20180228/models.rb', line 29936 def initialize(quuid=nil, uuid=nil, machinename=nil, machineip=nil, machinewanip=nil, =nil) @Quuid = quuid @Uuid = uuid @MachineName = machinename @MachineIp = machineip @MachineWanIp = machinewanip @Tags = end |
Instance Attribute Details
#MachineIp ⇒ Object
29934 29935 29936 |
# File 'lib/v20180228/models.rb', line 29934 def MachineIp @MachineIp end |
#MachineName ⇒ Object
29934 29935 29936 |
# File 'lib/v20180228/models.rb', line 29934 def MachineName @MachineName end |
#MachineWanIp ⇒ Object
29934 29935 29936 |
# File 'lib/v20180228/models.rb', line 29934 def MachineWanIp @MachineWanIp end |
#Quuid ⇒ Object
29934 29935 29936 |
# File 'lib/v20180228/models.rb', line 29934 def Quuid @Quuid end |
#Tags ⇒ Object
29934 29935 29936 |
# File 'lib/v20180228/models.rb', line 29934 def Tags @Tags end |
#Uuid ⇒ Object
29934 29935 29936 |
# File 'lib/v20180228/models.rb', line 29934 def Uuid @Uuid end |
Instance Method Details
#deserialize(params) ⇒ Object
29945 29946 29947 29948 29949 29950 29951 29952 29953 29954 29955 29956 29957 29958 29959 |
# File 'lib/v20180228/models.rb', line 29945 def deserialize(params) @Quuid = params['Quuid'] @Uuid = params['Uuid'] @MachineName = params['MachineName'] @MachineIp = params['MachineIp'] @MachineWanIp = params['MachineWanIp'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| machinetag_tmp = MachineTag.new machinetag_tmp.deserialize(i) @Tags << machinetag_tmp end end end |