Class: TencentCloud::Tke::V20180525::VirtualNodePool

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180525/models.rb

Overview

虚拟节点池

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(nodepoolid = nil, subnetids = nil, name = nil, lifestate = nil, labels = nil, taints = nil) ⇒ VirtualNodePool

Returns a new instance of VirtualNodePool.



21634
21635
21636
21637
21638
21639
21640
21641
# File 'lib/v20180525/models.rb', line 21634

def initialize(nodepoolid=nil, subnetids=nil, name=nil, lifestate=nil, labels=nil, taints=nil)
  @NodePoolId = nodepoolid
  @SubnetIds = subnetids
  @Name = name
  @LifeState = lifestate
  @Labels = labels
  @Taints = taints
end

Instance Attribute Details

#LabelsObject

注意:此字段可能返回 null,表示取不到有效值。

  • creating:创建中
  • normal:正常
  • updating:更新中 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • NodePoolId:

    节点池ID

  • SubnetIds:

    子网列表

  • Name:

    节点池名称

  • LifeState:

    节点池生命周期

  • Labels:

    虚拟节点label

  • Taints:

    虚拟节点taint



21632
21633
21634
# File 'lib/v20180525/models.rb', line 21632

def Labels
  @Labels
end

#LifeStateObject

注意:此字段可能返回 null,表示取不到有效值。

  • creating:创建中
  • normal:正常
  • updating:更新中 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • NodePoolId:

    节点池ID

  • SubnetIds:

    子网列表

  • Name:

    节点池名称

  • LifeState:

    节点池生命周期

  • Labels:

    虚拟节点label

  • Taints:

    虚拟节点taint



21632
21633
21634
# File 'lib/v20180525/models.rb', line 21632

def LifeState
  @LifeState
end

#NameObject

注意:此字段可能返回 null,表示取不到有效值。

  • creating:创建中
  • normal:正常
  • updating:更新中 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • NodePoolId:

    节点池ID

  • SubnetIds:

    子网列表

  • Name:

    节点池名称

  • LifeState:

    节点池生命周期

  • Labels:

    虚拟节点label

  • Taints:

    虚拟节点taint



21632
21633
21634
# File 'lib/v20180525/models.rb', line 21632

def Name
  @Name
end

#NodePoolIdObject

注意:此字段可能返回 null,表示取不到有效值。

  • creating:创建中
  • normal:正常
  • updating:更新中 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • NodePoolId:

    节点池ID

  • SubnetIds:

    子网列表

  • Name:

    节点池名称

  • LifeState:

    节点池生命周期

  • Labels:

    虚拟节点label

  • Taints:

    虚拟节点taint



21632
21633
21634
# File 'lib/v20180525/models.rb', line 21632

def NodePoolId
  @NodePoolId
end

#SubnetIdsObject

注意:此字段可能返回 null,表示取不到有效值。

  • creating:创建中
  • normal:正常
  • updating:更新中 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • NodePoolId:

    节点池ID

  • SubnetIds:

    子网列表

  • Name:

    节点池名称

  • LifeState:

    节点池生命周期

  • Labels:

    虚拟节点label

  • Taints:

    虚拟节点taint



21632
21633
21634
# File 'lib/v20180525/models.rb', line 21632

def SubnetIds
  @SubnetIds
end

#TaintsObject

注意:此字段可能返回 null,表示取不到有效值。

  • creating:创建中
  • normal:正常
  • updating:更新中 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • NodePoolId:

    节点池ID

  • SubnetIds:

    子网列表

  • Name:

    节点池名称

  • LifeState:

    节点池生命周期

  • Labels:

    虚拟节点label

  • Taints:

    虚拟节点taint



21632
21633
21634
# File 'lib/v20180525/models.rb', line 21632

def Taints
  @Taints
end

Instance Method Details

#deserialize(params) ⇒ Object



21643
21644
21645
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
# File 'lib/v20180525/models.rb', line 21643

def deserialize(params)
  @NodePoolId = params['NodePoolId']
  @SubnetIds = params['SubnetIds']
  @Name = params['Name']
  @LifeState = params['LifeState']
  unless params['Labels'].nil?
    @Labels = []
    params['Labels'].each do |i|
      label_tmp = Label.new
      label_tmp.deserialize(i)
      @Labels << label_tmp
    end
  end
  unless params['Taints'].nil?
    @Taints = []
    params['Taints'].each do |i|
      taint_tmp = Taint.new
      taint_tmp.deserialize(i)
      @Taints << taint_tmp
    end
  end
end