Class: TencentCloud::Tke::V20180525::ModifyClusterRuntimeConfigRequest

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

Overview

ModifyClusterRuntimeConfig请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, dstk8sversion = nil, clusterruntimeconfig = nil, nodepoolruntimeconfig = nil) ⇒ ModifyClusterRuntimeConfigRequest

Returns a new instance of ModifyClusterRuntimeConfigRequest.



14173
14174
14175
14176
14177
14178
# File 'lib/v20180525/models.rb', line 14173

def initialize(clusterid=nil, dstk8sversion=nil, clusterruntimeconfig=nil, nodepoolruntimeconfig=nil)
  @ClusterId = clusterid
  @DstK8SVersion = dstk8sversion
  @ClusterRuntimeConfig = clusterruntimeconfig
  @NodePoolRuntimeConfig = nodepoolruntimeconfig
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • ClusterId:

    集群ID,必填

  • DstK8SVersion:

    当需要修改运行时版本是根据另外的K8S版本获取时,需填写。例如升级校验有冲突后修改场景

  • ClusterRuntimeConfig:

    需要修改集群运行时时填写

  • NodePoolRuntimeConfig:

    需要修改节点池运行时时,填需要修改的部分



14171
14172
14173
# File 'lib/v20180525/models.rb', line 14171

def ClusterId
  @ClusterId
end

#ClusterRuntimeConfigObject

Parameters:

  • ClusterId:

    集群ID,必填

  • DstK8SVersion:

    当需要修改运行时版本是根据另外的K8S版本获取时,需填写。例如升级校验有冲突后修改场景

  • ClusterRuntimeConfig:

    需要修改集群运行时时填写

  • NodePoolRuntimeConfig:

    需要修改节点池运行时时,填需要修改的部分



14171
14172
14173
# File 'lib/v20180525/models.rb', line 14171

def ClusterRuntimeConfig
  @ClusterRuntimeConfig
end

#DstK8SVersionObject

Parameters:

  • ClusterId:

    集群ID,必填

  • DstK8SVersion:

    当需要修改运行时版本是根据另外的K8S版本获取时,需填写。例如升级校验有冲突后修改场景

  • ClusterRuntimeConfig:

    需要修改集群运行时时填写

  • NodePoolRuntimeConfig:

    需要修改节点池运行时时,填需要修改的部分



14171
14172
14173
# File 'lib/v20180525/models.rb', line 14171

def DstK8SVersion
  @DstK8SVersion
end

#NodePoolRuntimeConfigObject

Parameters:

  • ClusterId:

    集群ID,必填

  • DstK8SVersion:

    当需要修改运行时版本是根据另外的K8S版本获取时,需填写。例如升级校验有冲突后修改场景

  • ClusterRuntimeConfig:

    需要修改集群运行时时填写

  • NodePoolRuntimeConfig:

    需要修改节点池运行时时,填需要修改的部分



14171
14172
14173
# File 'lib/v20180525/models.rb', line 14171

def NodePoolRuntimeConfig
  @NodePoolRuntimeConfig
end

Instance Method Details

#deserialize(params) ⇒ Object



14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
# File 'lib/v20180525/models.rb', line 14180

def deserialize(params)
  @ClusterId = params['ClusterId']
  @DstK8SVersion = params['DstK8SVersion']
  unless params['ClusterRuntimeConfig'].nil?
    @ClusterRuntimeConfig = RuntimeConfig.new
    @ClusterRuntimeConfig.deserialize(params['ClusterRuntimeConfig'])
  end
  unless params['NodePoolRuntimeConfig'].nil?
    @NodePoolRuntimeConfig = []
    params['NodePoolRuntimeConfig'].each do |i|
      nodepoolruntime_tmp = NodePoolRuntime.new
      nodepoolruntime_tmp.deserialize(i)
      @NodePoolRuntimeConfig << nodepoolruntime_tmp
    end
  end
end