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.



287
288
289
290
291
292
293
294
295
296
297
298
# File 'lib/v20220501/models.rb', line 287

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:

    原生节点池创建参数

  • Annotations:

    节点 Annotation 列表



285
286
287
# File 'lib/v20220501/models.rb', line 285

def Annotations
  @Annotations
end

#ClusterIdObject

Parameters:

  • ClusterId:

    集群 ID

  • Name:

    节点池名称

  • Type:

    节点池类型

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否默认不可调度

  • Native:

    原生节点池创建参数

  • Annotations:

    节点 Annotation 列表



285
286
287
# File 'lib/v20220501/models.rb', line 285

def ClusterId
  @ClusterId
end

#DeletionProtectionObject

Parameters:

  • ClusterId:

    集群 ID

  • Name:

    节点池名称

  • Type:

    节点池类型

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否默认不可调度

  • Native:

    原生节点池创建参数

  • Annotations:

    节点 Annotation 列表



285
286
287
# File 'lib/v20220501/models.rb', line 285

def DeletionProtection
  @DeletionProtection
end

#LabelsObject

Parameters:

  • ClusterId:

    集群 ID

  • Name:

    节点池名称

  • Type:

    节点池类型

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否默认不可调度

  • Native:

    原生节点池创建参数

  • Annotations:

    节点 Annotation 列表



285
286
287
# File 'lib/v20220501/models.rb', line 285

def Labels
  @Labels
end

#NameObject

Parameters:

  • ClusterId:

    集群 ID

  • Name:

    节点池名称

  • Type:

    节点池类型

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否默认不可调度

  • Native:

    原生节点池创建参数

  • Annotations:

    节点 Annotation 列表



285
286
287
# File 'lib/v20220501/models.rb', line 285

def Name
  @Name
end

#NativeObject

Parameters:

  • ClusterId:

    集群 ID

  • Name:

    节点池名称

  • Type:

    节点池类型

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否默认不可调度

  • Native:

    原生节点池创建参数

  • Annotations:

    节点 Annotation 列表



285
286
287
# File 'lib/v20220501/models.rb', line 285

def Native
  @Native
end

#TagsObject

Parameters:

  • ClusterId:

    集群 ID

  • Name:

    节点池名称

  • Type:

    节点池类型

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否默认不可调度

  • Native:

    原生节点池创建参数

  • Annotations:

    节点 Annotation 列表



285
286
287
# File 'lib/v20220501/models.rb', line 285

def Tags
  @Tags
end

#TaintsObject

Parameters:

  • ClusterId:

    集群 ID

  • Name:

    节点池名称

  • Type:

    节点池类型

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否默认不可调度

  • Native:

    原生节点池创建参数

  • Annotations:

    节点 Annotation 列表



285
286
287
# File 'lib/v20220501/models.rb', line 285

def Taints
  @Taints
end

#TypeObject

Parameters:

  • ClusterId:

    集群 ID

  • Name:

    节点池名称

  • Type:

    节点池类型

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否默认不可调度

  • Native:

    原生节点池创建参数

  • Annotations:

    节点 Annotation 列表



285
286
287
# File 'lib/v20220501/models.rb', line 285

def Type
  @Type
end

#UnschedulableObject

Parameters:

  • ClusterId:

    集群 ID

  • Name:

    节点池名称

  • Type:

    节点池类型

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否默认不可调度

  • Native:

    原生节点池创建参数

  • Annotations:

    节点 Annotation 列表



285
286
287
# File 'lib/v20220501/models.rb', line 285

def Unschedulable
  @Unschedulable
end

Instance Method Details

#deserialize(params) ⇒ Object



300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
# File 'lib/v20220501/models.rb', line 300

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