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.
29475 29476 29477 29478 29479 29480 29481 29482 |
# File 'lib/v20180228/models.rb', line 29475 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
29473 29474 29475 |
# File 'lib/v20180228/models.rb', line 29473 def MachineIp @MachineIp end |
#MachineName ⇒ Object
29473 29474 29475 |
# File 'lib/v20180228/models.rb', line 29473 def MachineName @MachineName end |
#MachineWanIp ⇒ Object
29473 29474 29475 |
# File 'lib/v20180228/models.rb', line 29473 def MachineWanIp @MachineWanIp end |
#Quuid ⇒ Object
29473 29474 29475 |
# File 'lib/v20180228/models.rb', line 29473 def Quuid @Quuid end |
#Tags ⇒ Object
29473 29474 29475 |
# File 'lib/v20180228/models.rb', line 29473 def Tags @Tags end |
#Uuid ⇒ Object
29473 29474 29475 |
# File 'lib/v20180228/models.rb', line 29473 def Uuid @Uuid end |
Instance Method Details
#deserialize(params) ⇒ Object
29484 29485 29486 29487 29488 29489 29490 29491 29492 29493 29494 29495 29496 29497 29498 |
# File 'lib/v20180228/models.rb', line 29484 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 |