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