class TencentCloud::Tke::V20220501::CreateNodePoolRequest

CreateNodePool请求参数结构体

def deserialize(params)

def deserialize(params)
  @ClusterId = params['ClusterId']
  @Name = params['Name']
  @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
  unless params['Taints'].nil?
    @Taints = []
    params['Taints'].each do |i|
      taint_tmp = Taint.new
      taint_tmp.deserialize(i)
      @Taints << taint_tmp
    end
  end
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tagspecification_tmp = TagSpecification.new
      tagspecification_tmp.deserialize(i)
      @Tags << tagspecification_tmp
    end
  end
  @DeletionProtection = params['DeletionProtection']
  @Unschedulable = params['Unschedulable']
  unless params['Native'].nil?
    @Native = CreateNativeNodePoolParam.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
end

def initialize(clusterid=nil, name=nil, type=nil, labels=nil, taints=nil, tags=nil, deletionprotection=nil, unschedulable=nil, native=nil, annotations=nil)

def initialize(clusterid=nil, name=nil, type=nil, labels=nil, taints=nil, tags=nil, deletionprotection=nil, unschedulable=nil, native=nil, annotations=nil)
  @ClusterId = clusterid
  @Name = name
  @Type = type
  @Labels = labels
  @Taints = taints
  @Tags = tags
  @DeletionProtection = deletionprotection
  @Unschedulable = unschedulable
  @Native = native
  @Annotations = annotations
end