Class: TencentCloud::Tke::V20220501::CreateNodePoolRequest

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

Overview

CreateNodePool请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of CreateNodePoolRequest.



359
360
361
362
363
364
365
366
367
368
369
370
# File 'lib/v20220501/models.rb', line 359

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

Instance Attribute Details

#AnnotationsObject

Parameters:

  • ClusterId:

    集群 ID

  • Name:

    节点池名称

  • Type:

    节点池类型

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否默认不可调度

  • Native:

    原生节点池创建参数(Type字段设置为Native时需填写)

  • Annotations:

    节点 Annotation 列表



357
358
359
# File 'lib/v20220501/models.rb', line 357

def Annotations
  @Annotations
end

#ClusterIdObject

Parameters:

  • ClusterId:

    集群 ID

  • Name:

    节点池名称

  • Type:

    节点池类型

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否默认不可调度

  • Native:

    原生节点池创建参数(Type字段设置为Native时需填写)

  • Annotations:

    节点 Annotation 列表



357
358
359
# File 'lib/v20220501/models.rb', line 357

def ClusterId
  @ClusterId
end

#DeletionProtectionObject

Parameters:

  • ClusterId:

    集群 ID

  • Name:

    节点池名称

  • Type:

    节点池类型

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否默认不可调度

  • Native:

    原生节点池创建参数(Type字段设置为Native时需填写)

  • Annotations:

    节点 Annotation 列表



357
358
359
# File 'lib/v20220501/models.rb', line 357

def DeletionProtection
  @DeletionProtection
end

#LabelsObject

Parameters:

  • ClusterId:

    集群 ID

  • Name:

    节点池名称

  • Type:

    节点池类型

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否默认不可调度

  • Native:

    原生节点池创建参数(Type字段设置为Native时需填写)

  • Annotations:

    节点 Annotation 列表



357
358
359
# File 'lib/v20220501/models.rb', line 357

def Labels
  @Labels
end

#NameObject

Parameters:

  • ClusterId:

    集群 ID

  • Name:

    节点池名称

  • Type:

    节点池类型

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否默认不可调度

  • Native:

    原生节点池创建参数(Type字段设置为Native时需填写)

  • Annotations:

    节点 Annotation 列表



357
358
359
# File 'lib/v20220501/models.rb', line 357

def Name
  @Name
end

#NativeObject

Parameters:

  • ClusterId:

    集群 ID

  • Name:

    节点池名称

  • Type:

    节点池类型

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否默认不可调度

  • Native:

    原生节点池创建参数(Type字段设置为Native时需填写)

  • Annotations:

    节点 Annotation 列表



357
358
359
# File 'lib/v20220501/models.rb', line 357

def Native
  @Native
end

#TagsObject

Parameters:

  • ClusterId:

    集群 ID

  • Name:

    节点池名称

  • Type:

    节点池类型

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否默认不可调度

  • Native:

    原生节点池创建参数(Type字段设置为Native时需填写)

  • Annotations:

    节点 Annotation 列表



357
358
359
# File 'lib/v20220501/models.rb', line 357

def Tags
  @Tags
end

#TaintsObject

Parameters:

  • ClusterId:

    集群 ID

  • Name:

    节点池名称

  • Type:

    节点池类型

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否默认不可调度

  • Native:

    原生节点池创建参数(Type字段设置为Native时需填写)

  • Annotations:

    节点 Annotation 列表



357
358
359
# File 'lib/v20220501/models.rb', line 357

def Taints
  @Taints
end

#TypeObject

Parameters:

  • ClusterId:

    集群 ID

  • Name:

    节点池名称

  • Type:

    节点池类型

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否默认不可调度

  • Native:

    原生节点池创建参数(Type字段设置为Native时需填写)

  • Annotations:

    节点 Annotation 列表



357
358
359
# File 'lib/v20220501/models.rb', line 357

def Type
  @Type
end

#UnschedulableObject

Parameters:

  • ClusterId:

    集群 ID

  • Name:

    节点池名称

  • Type:

    节点池类型

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否默认不可调度

  • Native:

    原生节点池创建参数(Type字段设置为Native时需填写)

  • Annotations:

    节点 Annotation 列表



357
358
359
# File 'lib/v20220501/models.rb', line 357

def Unschedulable
  @Unschedulable
end

Instance Method Details

#deserialize(params) ⇒ Object



372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
# File 'lib/v20220501/models.rb', line 372

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