class TencentCloud::Tke::V20220501::NodePool

节点池信息

def deserialize(params)

def deserialize(params)
  @ClusterId = params['ClusterId']
  @NodePoolId = params['NodePoolId']
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tagspecification_tmp = TagSpecification.new
      tagspecification_tmp.deserialize(i)
      @Tags << tagspecification_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
  @DeletionProtection = params['DeletionProtection']
  @Unschedulable = params['Unschedulable']
  @Type = params['Type']
  unless params['Labels'].nil?
    @Labels = []
    params['Labels'].each do |i|
      label_tmp = Label.new
      label_tmp.deserialize(i)
      @Labels << label_tmp
    end
  end
  @LifeState = params['LifeState']
  @CreatedAt = params['CreatedAt']
  @Name = params['Name']
  unless params['Native'].nil?
    @Native = NativeNodePoolInfo.new
    @Native.deserialize(params['Native'])
  end
  unless params['Annotations'].nil?
    @Annotations = []
    params['Annotations'].each do |i|
      annotation_tmp = Annotation.new
      annotation_tmp.deserialize(i)
      @Annotations << annotation_tmp
    end
  end
  unless params['Super'].nil?
    @Super = SuperNodePoolInfo.new
    @Super.deserialize(params['Super'])
  end
  unless params['Regular'].nil?
    @Regular = RegularNodePoolInfo.new
    @Regular.deserialize(params['Regular'])
  end
  unless params['External'].nil?
    @External = ExternalNodePoolInfo.new
    @External.deserialize(params['External'])
  end
end

def initialize(clusterid=nil, nodepoolid=nil, tags=nil, taints=nil, deletionprotection=nil, unschedulable=nil, type=nil, labels=nil, lifestate=nil, createdat=nil, name=nil, native=nil, annotations=nil, _super=nil, regular=nil, external=nil)

def initialize(clusterid=nil, nodepoolid=nil, tags=nil, taints=nil, deletionprotection=nil, unschedulable=nil, type=nil, labels=nil, lifestate=nil, createdat=nil, name=nil, native=nil, annotations=nil, _super=nil, regular=nil, external=nil)
  @ClusterId = clusterid
  @NodePoolId = nodepoolid
  @Tags = tags
  @Taints = taints
  @DeletionProtection = deletionprotection
  @Unschedulable = unschedulable
  @Type = type
  @Labels = labels
  @LifeState = lifestate
  @CreatedAt = createdat
  @Name = name
  @Native = native
  @Annotations = annotations
  @Super = _super
  @Regular = regular
  @External = external
end