Class: TencentCloud::Cvm::V20170312::HostItem
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cvm::V20170312::HostItem
- Defined in:
- lib/v20170312/models.rb
Overview
专用宿主机实例详细信息
Instance Attribute Summary collapse
- #CageId ⇒ Object
- #CreatedTime ⇒ Object
- #ExpiredTime ⇒ Object
- #HostChargeType ⇒ Object
- #HostId ⇒ Object
- #HostIp ⇒ Object
- #HostName ⇒ Object
- #HostResource ⇒ Object
- #HostState ⇒ Object
- #HostType ⇒ Object
- #InstanceIds ⇒ Object
- #Placement ⇒ Object
- #RenewFlag ⇒ Object
- #Tags ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(placement = nil, hostid = nil, hosttype = nil, hostname = nil, hostchargetype = nil, renewflag = nil, createdtime = nil, expiredtime = nil, instanceids = nil, hoststate = nil, hostip = nil, hostresource = nil, cageid = nil, tags = nil) ⇒ HostItem
constructor
A new instance of HostItem.
Constructor Details
#initialize(placement = nil, hostid = nil, hosttype = nil, hostname = nil, hostchargetype = nil, renewflag = nil, createdtime = nil, expiredtime = nil, instanceids = nil, hoststate = nil, hostip = nil, hostresource = nil, cageid = nil, tags = nil) ⇒ HostItem
Returns a new instance of HostItem.
4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 |
# File 'lib/v20170312/models.rb', line 4007 def initialize(placement=nil, hostid=nil, hosttype=nil, hostname=nil, hostchargetype=nil, renewflag=nil, createdtime=nil, expiredtime=nil, instanceids=nil, hoststate=nil, hostip=nil, hostresource=nil, cageid=nil, =nil) @Placement = placement @HostId = hostid @HostType = hosttype @HostName = hostname @HostChargeType = hostchargetype @RenewFlag = renewflag @CreatedTime = createdtime @ExpiredTime = expiredtime @InstanceIds = instanceids @HostState = hoststate @HostIp = hostip @HostResource = hostresource @CageId = cageid @Tags = end |
Instance Attribute Details
#CageId ⇒ Object
4005 4006 4007 |
# File 'lib/v20170312/models.rb', line 4005 def CageId @CageId end |
#CreatedTime ⇒ Object
4005 4006 4007 |
# File 'lib/v20170312/models.rb', line 4005 def CreatedTime @CreatedTime end |
#ExpiredTime ⇒ Object
4005 4006 4007 |
# File 'lib/v20170312/models.rb', line 4005 def ExpiredTime @ExpiredTime end |
#HostChargeType ⇒ Object
4005 4006 4007 |
# File 'lib/v20170312/models.rb', line 4005 def HostChargeType @HostChargeType end |
#HostId ⇒ Object
4005 4006 4007 |
# File 'lib/v20170312/models.rb', line 4005 def HostId @HostId end |
#HostIp ⇒ Object
4005 4006 4007 |
# File 'lib/v20170312/models.rb', line 4005 def HostIp @HostIp end |
#HostName ⇒ Object
4005 4006 4007 |
# File 'lib/v20170312/models.rb', line 4005 def HostName @HostName end |
#HostResource ⇒ Object
4005 4006 4007 |
# File 'lib/v20170312/models.rb', line 4005 def HostResource @HostResource end |
#HostState ⇒ Object
4005 4006 4007 |
# File 'lib/v20170312/models.rb', line 4005 def HostState @HostState end |
#HostType ⇒ Object
4005 4006 4007 |
# File 'lib/v20170312/models.rb', line 4005 def HostType @HostType end |
#InstanceIds ⇒ Object
4005 4006 4007 |
# File 'lib/v20170312/models.rb', line 4005 def InstanceIds @InstanceIds end |
#Placement ⇒ Object
4005 4006 4007 |
# File 'lib/v20170312/models.rb', line 4005 def Placement @Placement end |
#RenewFlag ⇒ Object
4005 4006 4007 |
# File 'lib/v20170312/models.rb', line 4005 def RenewFlag @RenewFlag end |
#Tags ⇒ Object
4005 4006 4007 |
# File 'lib/v20170312/models.rb', line 4005 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 |
# File 'lib/v20170312/models.rb', line 4024 def deserialize(params) unless params['Placement'].nil? @Placement = Placement.new @Placement.deserialize(params['Placement']) end @HostId = params['HostId'] @HostType = params['HostType'] @HostName = params['HostName'] @HostChargeType = params['HostChargeType'] @RenewFlag = params['RenewFlag'] @CreatedTime = params['CreatedTime'] @ExpiredTime = params['ExpiredTime'] @InstanceIds = params['InstanceIds'] @HostState = params['HostState'] @HostIp = params['HostIp'] unless params['HostResource'].nil? @HostResource = HostResource.new @HostResource.deserialize(params['HostResource']) end @CageId = params['CageId'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end end |