Class: TencentCloud::Tke::V20180525::CreateClusterNodePoolRequest

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

Overview

CreateClusterNodePool请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, autoscalinggrouppara = nil, launchconfigurepara = nil, instanceadvancedsettings = nil, enableautoscale = nil, name = nil, labels = nil, taints = nil, annotations = nil, containerruntime = nil, runtimeversion = nil, nodepoolos = nil, oscustomizetype = nil, tags = nil, deletionprotection = nil) ⇒ CreateClusterNodePoolRequest

Returns a new instance of CreateClusterNodePoolRequest.



2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
# File 'lib/v20180525/models.rb', line 2190

def initialize(clusterid=nil, autoscalinggrouppara=nil, launchconfigurepara=nil, instanceadvancedsettings=nil, enableautoscale=nil, name=nil, labels=nil, taints=nil, annotations=nil, containerruntime=nil, runtimeversion=nil, nodepoolos=nil, oscustomizetype=nil, tags=nil, deletionprotection=nil)
  @ClusterId = clusterid
  @AutoScalingGroupPara = autoscalinggrouppara
  @LaunchConfigurePara = launchconfigurepara
  @InstanceAdvancedSettings = instanceadvancedsettings
  @EnableAutoscale = enableautoscale
  @Name = name
  @Labels = labels
  @Taints = taints
  @Annotations = annotations
  @ContainerRuntime = containerruntime
  @RuntimeVersion = runtimeversion
  @NodePoolOs = nodepoolos
  @OsCustomizeType = oscustomizetype
  @Tags = tags
  @DeletionProtection = deletionprotection
end

Instance Attribute Details

#AnnotationsObject

Parameters:

  • ClusterId:

    cluster id

  • AutoScalingGroupPara:

    AutoScalingGroupPara AS组参数,参考 cloud.tencent.com/document/product/377/20440

  • LaunchConfigurePara:

    LaunchConfigurePara 运行参数,参考 cloud.tencent.com/document/product/377/20447

  • InstanceAdvancedSettings:

    InstanceAdvancedSettings

  • EnableAutoscale:

    是否启用自动伸缩

  • Name:

    节点池名称

  • Labels:

    Labels标签

  • Taints:

    Taints互斥

  • Annotations:

    节点Annotation 列表

  • ContainerRuntime:

    节点池纬度运行时类型及版本

  • RuntimeVersion:

    运行时版本

  • NodePoolOs:

    节点池os,当为自定义镜像时,传镜像id;否则为公共镜像的osName

  • OsCustomizeType:

    容器的镜像版本,“DOCKER_CUSTOMIZE”(容器定制版),“GENERAL”(普通版本,默认值)

  • Tags:

    资源标签

  • DeletionProtection:

    删除保护开关



2188
2189
2190
# File 'lib/v20180525/models.rb', line 2188

def Annotations
  @Annotations
end

#AutoScalingGroupParaObject

Parameters:

  • ClusterId:

    cluster id

  • AutoScalingGroupPara:

    AutoScalingGroupPara AS组参数,参考 cloud.tencent.com/document/product/377/20440

  • LaunchConfigurePara:

    LaunchConfigurePara 运行参数,参考 cloud.tencent.com/document/product/377/20447

  • InstanceAdvancedSettings:

    InstanceAdvancedSettings

  • EnableAutoscale:

    是否启用自动伸缩

  • Name:

    节点池名称

  • Labels:

    Labels标签

  • Taints:

    Taints互斥

  • Annotations:

    节点Annotation 列表

  • ContainerRuntime:

    节点池纬度运行时类型及版本

  • RuntimeVersion:

    运行时版本

  • NodePoolOs:

    节点池os,当为自定义镜像时,传镜像id;否则为公共镜像的osName

  • OsCustomizeType:

    容器的镜像版本,“DOCKER_CUSTOMIZE”(容器定制版),“GENERAL”(普通版本,默认值)

  • Tags:

    资源标签

  • DeletionProtection:

    删除保护开关



2188
2189
2190
# File 'lib/v20180525/models.rb', line 2188

def AutoScalingGroupPara
  @AutoScalingGroupPara
end

#ClusterIdObject

Parameters:

  • ClusterId:

    cluster id

  • AutoScalingGroupPara:

    AutoScalingGroupPara AS组参数,参考 cloud.tencent.com/document/product/377/20440

  • LaunchConfigurePara:

    LaunchConfigurePara 运行参数,参考 cloud.tencent.com/document/product/377/20447

  • InstanceAdvancedSettings:

    InstanceAdvancedSettings

  • EnableAutoscale:

    是否启用自动伸缩

  • Name:

    节点池名称

  • Labels:

    Labels标签

  • Taints:

    Taints互斥

  • Annotations:

    节点Annotation 列表

  • ContainerRuntime:

    节点池纬度运行时类型及版本

  • RuntimeVersion:

    运行时版本

  • NodePoolOs:

    节点池os,当为自定义镜像时,传镜像id;否则为公共镜像的osName

  • OsCustomizeType:

    容器的镜像版本,“DOCKER_CUSTOMIZE”(容器定制版),“GENERAL”(普通版本,默认值)

  • Tags:

    资源标签

  • DeletionProtection:

    删除保护开关



2188
2189
2190
# File 'lib/v20180525/models.rb', line 2188

def ClusterId
  @ClusterId
end

#ContainerRuntimeObject

Parameters:

  • ClusterId:

    cluster id

  • AutoScalingGroupPara:

    AutoScalingGroupPara AS组参数,参考 cloud.tencent.com/document/product/377/20440

  • LaunchConfigurePara:

    LaunchConfigurePara 运行参数,参考 cloud.tencent.com/document/product/377/20447

  • InstanceAdvancedSettings:

    InstanceAdvancedSettings

  • EnableAutoscale:

    是否启用自动伸缩

  • Name:

    节点池名称

  • Labels:

    Labels标签

  • Taints:

    Taints互斥

  • Annotations:

    节点Annotation 列表

  • ContainerRuntime:

    节点池纬度运行时类型及版本

  • RuntimeVersion:

    运行时版本

  • NodePoolOs:

    节点池os,当为自定义镜像时,传镜像id;否则为公共镜像的osName

  • OsCustomizeType:

    容器的镜像版本,“DOCKER_CUSTOMIZE”(容器定制版),“GENERAL”(普通版本,默认值)

  • Tags:

    资源标签

  • DeletionProtection:

    删除保护开关



2188
2189
2190
# File 'lib/v20180525/models.rb', line 2188

def ContainerRuntime
  @ContainerRuntime
end

#DeletionProtectionObject

Parameters:

  • ClusterId:

    cluster id

  • AutoScalingGroupPara:

    AutoScalingGroupPara AS组参数,参考 cloud.tencent.com/document/product/377/20440

  • LaunchConfigurePara:

    LaunchConfigurePara 运行参数,参考 cloud.tencent.com/document/product/377/20447

  • InstanceAdvancedSettings:

    InstanceAdvancedSettings

  • EnableAutoscale:

    是否启用自动伸缩

  • Name:

    节点池名称

  • Labels:

    Labels标签

  • Taints:

    Taints互斥

  • Annotations:

    节点Annotation 列表

  • ContainerRuntime:

    节点池纬度运行时类型及版本

  • RuntimeVersion:

    运行时版本

  • NodePoolOs:

    节点池os,当为自定义镜像时,传镜像id;否则为公共镜像的osName

  • OsCustomizeType:

    容器的镜像版本,“DOCKER_CUSTOMIZE”(容器定制版),“GENERAL”(普通版本,默认值)

  • Tags:

    资源标签

  • DeletionProtection:

    删除保护开关



2188
2189
2190
# File 'lib/v20180525/models.rb', line 2188

def DeletionProtection
  @DeletionProtection
end

#EnableAutoscaleObject

Parameters:

  • ClusterId:

    cluster id

  • AutoScalingGroupPara:

    AutoScalingGroupPara AS组参数,参考 cloud.tencent.com/document/product/377/20440

  • LaunchConfigurePara:

    LaunchConfigurePara 运行参数,参考 cloud.tencent.com/document/product/377/20447

  • InstanceAdvancedSettings:

    InstanceAdvancedSettings

  • EnableAutoscale:

    是否启用自动伸缩

  • Name:

    节点池名称

  • Labels:

    Labels标签

  • Taints:

    Taints互斥

  • Annotations:

    节点Annotation 列表

  • ContainerRuntime:

    节点池纬度运行时类型及版本

  • RuntimeVersion:

    运行时版本

  • NodePoolOs:

    节点池os,当为自定义镜像时,传镜像id;否则为公共镜像的osName

  • OsCustomizeType:

    容器的镜像版本,“DOCKER_CUSTOMIZE”(容器定制版),“GENERAL”(普通版本,默认值)

  • Tags:

    资源标签

  • DeletionProtection:

    删除保护开关



2188
2189
2190
# File 'lib/v20180525/models.rb', line 2188

def EnableAutoscale
  @EnableAutoscale
end

#InstanceAdvancedSettingsObject

Parameters:

  • ClusterId:

    cluster id

  • AutoScalingGroupPara:

    AutoScalingGroupPara AS组参数,参考 cloud.tencent.com/document/product/377/20440

  • LaunchConfigurePara:

    LaunchConfigurePara 运行参数,参考 cloud.tencent.com/document/product/377/20447

  • InstanceAdvancedSettings:

    InstanceAdvancedSettings

  • EnableAutoscale:

    是否启用自动伸缩

  • Name:

    节点池名称

  • Labels:

    Labels标签

  • Taints:

    Taints互斥

  • Annotations:

    节点Annotation 列表

  • ContainerRuntime:

    节点池纬度运行时类型及版本

  • RuntimeVersion:

    运行时版本

  • NodePoolOs:

    节点池os,当为自定义镜像时,传镜像id;否则为公共镜像的osName

  • OsCustomizeType:

    容器的镜像版本,“DOCKER_CUSTOMIZE”(容器定制版),“GENERAL”(普通版本,默认值)

  • Tags:

    资源标签

  • DeletionProtection:

    删除保护开关



2188
2189
2190
# File 'lib/v20180525/models.rb', line 2188

def InstanceAdvancedSettings
  @InstanceAdvancedSettings
end

#LabelsObject

Parameters:

  • ClusterId:

    cluster id

  • AutoScalingGroupPara:

    AutoScalingGroupPara AS组参数,参考 cloud.tencent.com/document/product/377/20440

  • LaunchConfigurePara:

    LaunchConfigurePara 运行参数,参考 cloud.tencent.com/document/product/377/20447

  • InstanceAdvancedSettings:

    InstanceAdvancedSettings

  • EnableAutoscale:

    是否启用自动伸缩

  • Name:

    节点池名称

  • Labels:

    Labels标签

  • Taints:

    Taints互斥

  • Annotations:

    节点Annotation 列表

  • ContainerRuntime:

    节点池纬度运行时类型及版本

  • RuntimeVersion:

    运行时版本

  • NodePoolOs:

    节点池os,当为自定义镜像时,传镜像id;否则为公共镜像的osName

  • OsCustomizeType:

    容器的镜像版本,“DOCKER_CUSTOMIZE”(容器定制版),“GENERAL”(普通版本,默认值)

  • Tags:

    资源标签

  • DeletionProtection:

    删除保护开关



2188
2189
2190
# File 'lib/v20180525/models.rb', line 2188

def Labels
  @Labels
end

#LaunchConfigureParaObject

Parameters:

  • ClusterId:

    cluster id

  • AutoScalingGroupPara:

    AutoScalingGroupPara AS组参数,参考 cloud.tencent.com/document/product/377/20440

  • LaunchConfigurePara:

    LaunchConfigurePara 运行参数,参考 cloud.tencent.com/document/product/377/20447

  • InstanceAdvancedSettings:

    InstanceAdvancedSettings

  • EnableAutoscale:

    是否启用自动伸缩

  • Name:

    节点池名称

  • Labels:

    Labels标签

  • Taints:

    Taints互斥

  • Annotations:

    节点Annotation 列表

  • ContainerRuntime:

    节点池纬度运行时类型及版本

  • RuntimeVersion:

    运行时版本

  • NodePoolOs:

    节点池os,当为自定义镜像时,传镜像id;否则为公共镜像的osName

  • OsCustomizeType:

    容器的镜像版本,“DOCKER_CUSTOMIZE”(容器定制版),“GENERAL”(普通版本,默认值)

  • Tags:

    资源标签

  • DeletionProtection:

    删除保护开关



2188
2189
2190
# File 'lib/v20180525/models.rb', line 2188

def LaunchConfigurePara
  @LaunchConfigurePara
end

#NameObject

Parameters:

  • ClusterId:

    cluster id

  • AutoScalingGroupPara:

    AutoScalingGroupPara AS组参数,参考 cloud.tencent.com/document/product/377/20440

  • LaunchConfigurePara:

    LaunchConfigurePara 运行参数,参考 cloud.tencent.com/document/product/377/20447

  • InstanceAdvancedSettings:

    InstanceAdvancedSettings

  • EnableAutoscale:

    是否启用自动伸缩

  • Name:

    节点池名称

  • Labels:

    Labels标签

  • Taints:

    Taints互斥

  • Annotations:

    节点Annotation 列表

  • ContainerRuntime:

    节点池纬度运行时类型及版本

  • RuntimeVersion:

    运行时版本

  • NodePoolOs:

    节点池os,当为自定义镜像时,传镜像id;否则为公共镜像的osName

  • OsCustomizeType:

    容器的镜像版本,“DOCKER_CUSTOMIZE”(容器定制版),“GENERAL”(普通版本,默认值)

  • Tags:

    资源标签

  • DeletionProtection:

    删除保护开关



2188
2189
2190
# File 'lib/v20180525/models.rb', line 2188

def Name
  @Name
end

#NodePoolOsObject

Parameters:

  • ClusterId:

    cluster id

  • AutoScalingGroupPara:

    AutoScalingGroupPara AS组参数,参考 cloud.tencent.com/document/product/377/20440

  • LaunchConfigurePara:

    LaunchConfigurePara 运行参数,参考 cloud.tencent.com/document/product/377/20447

  • InstanceAdvancedSettings:

    InstanceAdvancedSettings

  • EnableAutoscale:

    是否启用自动伸缩

  • Name:

    节点池名称

  • Labels:

    Labels标签

  • Taints:

    Taints互斥

  • Annotations:

    节点Annotation 列表

  • ContainerRuntime:

    节点池纬度运行时类型及版本

  • RuntimeVersion:

    运行时版本

  • NodePoolOs:

    节点池os,当为自定义镜像时,传镜像id;否则为公共镜像的osName

  • OsCustomizeType:

    容器的镜像版本,“DOCKER_CUSTOMIZE”(容器定制版),“GENERAL”(普通版本,默认值)

  • Tags:

    资源标签

  • DeletionProtection:

    删除保护开关



2188
2189
2190
# File 'lib/v20180525/models.rb', line 2188

def NodePoolOs
  @NodePoolOs
end

#OsCustomizeTypeObject

Parameters:

  • ClusterId:

    cluster id

  • AutoScalingGroupPara:

    AutoScalingGroupPara AS组参数,参考 cloud.tencent.com/document/product/377/20440

  • LaunchConfigurePara:

    LaunchConfigurePara 运行参数,参考 cloud.tencent.com/document/product/377/20447

  • InstanceAdvancedSettings:

    InstanceAdvancedSettings

  • EnableAutoscale:

    是否启用自动伸缩

  • Name:

    节点池名称

  • Labels:

    Labels标签

  • Taints:

    Taints互斥

  • Annotations:

    节点Annotation 列表

  • ContainerRuntime:

    节点池纬度运行时类型及版本

  • RuntimeVersion:

    运行时版本

  • NodePoolOs:

    节点池os,当为自定义镜像时,传镜像id;否则为公共镜像的osName

  • OsCustomizeType:

    容器的镜像版本,“DOCKER_CUSTOMIZE”(容器定制版),“GENERAL”(普通版本,默认值)

  • Tags:

    资源标签

  • DeletionProtection:

    删除保护开关



2188
2189
2190
# File 'lib/v20180525/models.rb', line 2188

def OsCustomizeType
  @OsCustomizeType
end

#RuntimeVersionObject

Parameters:

  • ClusterId:

    cluster id

  • AutoScalingGroupPara:

    AutoScalingGroupPara AS组参数,参考 cloud.tencent.com/document/product/377/20440

  • LaunchConfigurePara:

    LaunchConfigurePara 运行参数,参考 cloud.tencent.com/document/product/377/20447

  • InstanceAdvancedSettings:

    InstanceAdvancedSettings

  • EnableAutoscale:

    是否启用自动伸缩

  • Name:

    节点池名称

  • Labels:

    Labels标签

  • Taints:

    Taints互斥

  • Annotations:

    节点Annotation 列表

  • ContainerRuntime:

    节点池纬度运行时类型及版本

  • RuntimeVersion:

    运行时版本

  • NodePoolOs:

    节点池os,当为自定义镜像时,传镜像id;否则为公共镜像的osName

  • OsCustomizeType:

    容器的镜像版本,“DOCKER_CUSTOMIZE”(容器定制版),“GENERAL”(普通版本,默认值)

  • Tags:

    资源标签

  • DeletionProtection:

    删除保护开关



2188
2189
2190
# File 'lib/v20180525/models.rb', line 2188

def RuntimeVersion
  @RuntimeVersion
end

#TagsObject

Parameters:

  • ClusterId:

    cluster id

  • AutoScalingGroupPara:

    AutoScalingGroupPara AS组参数,参考 cloud.tencent.com/document/product/377/20440

  • LaunchConfigurePara:

    LaunchConfigurePara 运行参数,参考 cloud.tencent.com/document/product/377/20447

  • InstanceAdvancedSettings:

    InstanceAdvancedSettings

  • EnableAutoscale:

    是否启用自动伸缩

  • Name:

    节点池名称

  • Labels:

    Labels标签

  • Taints:

    Taints互斥

  • Annotations:

    节点Annotation 列表

  • ContainerRuntime:

    节点池纬度运行时类型及版本

  • RuntimeVersion:

    运行时版本

  • NodePoolOs:

    节点池os,当为自定义镜像时,传镜像id;否则为公共镜像的osName

  • OsCustomizeType:

    容器的镜像版本,“DOCKER_CUSTOMIZE”(容器定制版),“GENERAL”(普通版本,默认值)

  • Tags:

    资源标签

  • DeletionProtection:

    删除保护开关



2188
2189
2190
# File 'lib/v20180525/models.rb', line 2188

def Tags
  @Tags
end

#TaintsObject

Parameters:

  • ClusterId:

    cluster id

  • AutoScalingGroupPara:

    AutoScalingGroupPara AS组参数,参考 cloud.tencent.com/document/product/377/20440

  • LaunchConfigurePara:

    LaunchConfigurePara 运行参数,参考 cloud.tencent.com/document/product/377/20447

  • InstanceAdvancedSettings:

    InstanceAdvancedSettings

  • EnableAutoscale:

    是否启用自动伸缩

  • Name:

    节点池名称

  • Labels:

    Labels标签

  • Taints:

    Taints互斥

  • Annotations:

    节点Annotation 列表

  • ContainerRuntime:

    节点池纬度运行时类型及版本

  • RuntimeVersion:

    运行时版本

  • NodePoolOs:

    节点池os,当为自定义镜像时,传镜像id;否则为公共镜像的osName

  • OsCustomizeType:

    容器的镜像版本,“DOCKER_CUSTOMIZE”(容器定制版),“GENERAL”(普通版本,默认值)

  • Tags:

    资源标签

  • DeletionProtection:

    删除保护开关



2188
2189
2190
# File 'lib/v20180525/models.rb', line 2188

def Taints
  @Taints
end

Instance Method Details

#deserialize(params) ⇒ Object



2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
# File 'lib/v20180525/models.rb', line 2208

def deserialize(params)
  @ClusterId = params['ClusterId']
  @AutoScalingGroupPara = params['AutoScalingGroupPara']
  @LaunchConfigurePara = params['LaunchConfigurePara']
  unless params['InstanceAdvancedSettings'].nil?
    @InstanceAdvancedSettings = InstanceAdvancedSettings.new
    @InstanceAdvancedSettings.deserialize(params['InstanceAdvancedSettings'])
  end
  @EnableAutoscale = params['EnableAutoscale']
  @Name = params['Name']
  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['Annotations'].nil?
    @Annotations = []
    params['Annotations'].each do |i|
      annotationvalue_tmp = AnnotationValue.new
      annotationvalue_tmp.deserialize(i)
      @Annotations << annotationvalue_tmp
    end
  end
  @ContainerRuntime = params['ContainerRuntime']
  @RuntimeVersion = params['RuntimeVersion']
  @NodePoolOs = params['NodePoolOs']
  @OsCustomizeType = params['OsCustomizeType']
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @Tags << tag_tmp
    end
  end
  @DeletionProtection = params['DeletionProtection']
end