Class: TencentCloud::Tke::V20180525::Instance
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::Instance
- Defined in:
- lib/v20180525/models.rb
Overview
集群的实例信息
Instance Attribute Summary collapse
-
#AutoscalingGroupId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#CreatedTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#DrainStatus ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#FailedReason ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#InstanceAdvancedSettings ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#InstanceId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#InstanceRole ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#InstanceState ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#LanIP ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#NodePoolId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, instancerole = nil, failedreason = nil, instancestate = nil, drainstatus = nil, instanceadvancedsettings = nil, createdtime = nil, lanip = nil, nodepoolid = nil, autoscalinggroupid = nil) ⇒ Instance
constructor
A new instance of Instance.
Constructor Details
#initialize(instanceid = nil, instancerole = nil, failedreason = nil, instancestate = nil, drainstatus = nil, instanceadvancedsettings = nil, createdtime = nil, lanip = nil, nodepoolid = nil, autoscalinggroupid = nil) ⇒ Instance
Returns a new instance of Instance.
13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 |
# File 'lib/v20180525/models.rb', line 13632 def initialize(instanceid=nil, instancerole=nil, failedreason=nil, instancestate=nil, drainstatus=nil, instanceadvancedsettings=nil, createdtime=nil, lanip=nil, nodepoolid=nil, autoscalinggroupid=nil) @InstanceId = instanceid @InstanceRole = instancerole @FailedReason = failedreason @InstanceState = instancestate @DrainStatus = drainstatus @InstanceAdvancedSettings = instanceadvancedsettings @CreatedTime = createdtime @LanIP = lanip @NodePoolId = nodepoolid @AutoscalingGroupId = autoscalinggroupid end |
Instance Attribute Details
#AutoscalingGroupId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
13630 13631 13632 |
# File 'lib/v20180525/models.rb', line 13630 def AutoscalingGroupId @AutoscalingGroupId end |
#CreatedTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
13630 13631 13632 |
# File 'lib/v20180525/models.rb', line 13630 def CreatedTime @CreatedTime end |
#DrainStatus ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
13630 13631 13632 |
# File 'lib/v20180525/models.rb', line 13630 def DrainStatus @DrainStatus end |
#FailedReason ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
13630 13631 13632 |
# File 'lib/v20180525/models.rb', line 13630 def FailedReason @FailedReason end |
#InstanceAdvancedSettings ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
13630 13631 13632 |
# File 'lib/v20180525/models.rb', line 13630 def InstanceAdvancedSettings @InstanceAdvancedSettings end |
#InstanceId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
13630 13631 13632 |
# File 'lib/v20180525/models.rb', line 13630 def InstanceId @InstanceId end |
#InstanceRole ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
13630 13631 13632 |
# File 'lib/v20180525/models.rb', line 13630 def InstanceRole @InstanceRole end |
#InstanceState ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
13630 13631 13632 |
# File 'lib/v20180525/models.rb', line 13630 def InstanceState @InstanceState end |
#LanIP ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
13630 13631 13632 |
# File 'lib/v20180525/models.rb', line 13630 def LanIP @LanIP end |
#NodePoolId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
13630 13631 13632 |
# File 'lib/v20180525/models.rb', line 13630 def NodePoolId @NodePoolId end |
Instance Method Details
#deserialize(params) ⇒ Object
13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 |
# File 'lib/v20180525/models.rb', line 13645 def deserialize(params) @InstanceId = params['InstanceId'] @InstanceRole = params['InstanceRole'] @FailedReason = params['FailedReason'] @InstanceState = params['InstanceState'] @DrainStatus = params['DrainStatus'] unless params['InstanceAdvancedSettings'].nil? @InstanceAdvancedSettings = InstanceAdvancedSettings.new @InstanceAdvancedSettings.deserialize(params['InstanceAdvancedSettings']) end @CreatedTime = params['CreatedTime'] @LanIP = params['LanIP'] @NodePoolId = params['NodePoolId'] @AutoscalingGroupId = params['AutoscalingGroupId'] end |