lib/v20180525/models.rb in tencentcloud-sdk-tke-3.0.454 vs lib/v20180525/models.rb in tencentcloud-sdk-tke-3.0.455

- old
+ new

@@ -10798,36 +10798,48 @@ # @type EnableAutoscale: Boolean # @param OsName: 操作系统名称 # @type OsName: String # @param OsCustomizeType: 镜像版本,"DOCKER_CUSTOMIZE"(容器定制版),"GENERAL"(普通版本,默认值) # @type OsCustomizeType: String + # @param GPUArgs: GPU驱动版本,CUDA版本,cuDNN版本以及是否启用MIG特性 + # @type GPUArgs: :class:`Tencentcloud::Tke.v20180525.models.GPUArgs` + # @param UserScript: base64编码后的自定义脚本 + # @type UserScript: String + # @param IgnoreExistedNode: 更新label和taint时忽略存量节点 + # @type IgnoreExistedNode: Boolean # @param ExtraArgs: 节点自定义参数 # @type ExtraArgs: :class:`Tencentcloud::Tke.v20180525.models.InstanceExtraArgs` # @param Tags: 资源标签 # @type Tags: Array # @param Unschedulable: 设置加入的节点是否参与调度,默认值为0,表示参与调度;非0表示不参与调度, 待节点初始化完成之后, 可执行kubectl uncordon nodename使node加入调度. # @type Unschedulable: Integer # @param DeletionProtection: 删除保护开关 # @type DeletionProtection: Boolean + # @param DockerGraphPath: dockerd --graph 指定值, 默认为 /var/lib/docker + # @type DockerGraphPath: String - attr_accessor :ClusterId, :NodePoolId, :Name, :MaxNodesNum, :MinNodesNum, :Labels, :Taints, :EnableAutoscale, :OsName, :OsCustomizeType, :ExtraArgs, :Tags, :Unschedulable, :DeletionProtection + attr_accessor :ClusterId, :NodePoolId, :Name, :MaxNodesNum, :MinNodesNum, :Labels, :Taints, :EnableAutoscale, :OsName, :OsCustomizeType, :GPUArgs, :UserScript, :IgnoreExistedNode, :ExtraArgs, :Tags, :Unschedulable, :DeletionProtection, :DockerGraphPath - def initialize(clusterid=nil, nodepoolid=nil, name=nil, maxnodesnum=nil, minnodesnum=nil, labels=nil, taints=nil, enableautoscale=nil, osname=nil, oscustomizetype=nil, extraargs=nil, tags=nil, unschedulable=nil, deletionprotection=nil) + def initialize(clusterid=nil, nodepoolid=nil, name=nil, maxnodesnum=nil, minnodesnum=nil, labels=nil, taints=nil, enableautoscale=nil, osname=nil, oscustomizetype=nil, gpuargs=nil, userscript=nil, ignoreexistednode=nil, extraargs=nil, tags=nil, unschedulable=nil, deletionprotection=nil, dockergraphpath=nil) @ClusterId = clusterid @NodePoolId = nodepoolid @Name = name @MaxNodesNum = maxnodesnum @MinNodesNum = minnodesnum @Labels = labels @Taints = taints @EnableAutoscale = enableautoscale @OsName = osname @OsCustomizeType = oscustomizetype + @GPUArgs = gpuargs + @UserScript = userscript + @IgnoreExistedNode = ignoreexistednode @ExtraArgs = extraargs @Tags = tags @Unschedulable = unschedulable @DeletionProtection = deletionprotection + @DockerGraphPath = dockergraphpath end def deserialize(params) @ClusterId = params['ClusterId'] @NodePoolId = params['NodePoolId'] @@ -10851,10 +10863,16 @@ end end @EnableAutoscale = params['EnableAutoscale'] @OsName = params['OsName'] @OsCustomizeType = params['OsCustomizeType'] + unless params['GPUArgs'].nil? + @GPUArgs = GPUArgs.new + @GPUArgs.deserialize(params['GPUArgs']) + end + @UserScript = params['UserScript'] + @IgnoreExistedNode = params['IgnoreExistedNode'] unless params['ExtraArgs'].nil? @ExtraArgs = InstanceExtraArgs.new @ExtraArgs.deserialize(params['ExtraArgs']) end unless params['Tags'].nil? @@ -10865,9 +10883,10 @@ @Tags << tag_tmp end end @Unschedulable = params['Unschedulable'] @DeletionProtection = params['DeletionProtection'] + @DockerGraphPath = params['DockerGraphPath'] end end # ModifyClusterNodePool返回参数结构体 class ModifyClusterNodePoolResponse < TencentCloud::Common::AbstractModel