Class: TencentCloud::Tke::V20180525::UpdateClusterVersionRequest

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

Overview

UpdateClusterVersion请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, dstversion = nil, extraargs = nil, maxnotreadypercent = nil, skipprecheck = nil) ⇒ UpdateClusterVersionRequest

Returns a new instance of UpdateClusterVersionRequest.



18898
18899
18900
18901
18902
18903
18904
# File 'lib/v20180525/models.rb', line 18898

def initialize(clusterid=nil, dstversion=nil, extraargs=nil, maxnotreadypercent=nil, skipprecheck=nil)
  @ClusterId = clusterid
  @DstVersion = dstversion
  @ExtraArgs = extraargs
  @MaxNotReadyPercent = maxnotreadypercent
  @SkipPreCheck = skipprecheck
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • ClusterId:

    集群 Id

  • DstVersion:

    需要升级到的版本

  • ExtraArgs:

    集群自定义参数

  • MaxNotReadyPercent:

    可容忍的最大不可用pod数目

  • SkipPreCheck:

    是否跳过预检查阶段



18896
18897
18898
# File 'lib/v20180525/models.rb', line 18896

def ClusterId
  @ClusterId
end

#DstVersionObject

Parameters:

  • ClusterId:

    集群 Id

  • DstVersion:

    需要升级到的版本

  • ExtraArgs:

    集群自定义参数

  • MaxNotReadyPercent:

    可容忍的最大不可用pod数目

  • SkipPreCheck:

    是否跳过预检查阶段



18896
18897
18898
# File 'lib/v20180525/models.rb', line 18896

def DstVersion
  @DstVersion
end

#ExtraArgsObject

Parameters:

  • ClusterId:

    集群 Id

  • DstVersion:

    需要升级到的版本

  • ExtraArgs:

    集群自定义参数

  • MaxNotReadyPercent:

    可容忍的最大不可用pod数目

  • SkipPreCheck:

    是否跳过预检查阶段



18896
18897
18898
# File 'lib/v20180525/models.rb', line 18896

def ExtraArgs
  @ExtraArgs
end

#MaxNotReadyPercentObject

Parameters:

  • ClusterId:

    集群 Id

  • DstVersion:

    需要升级到的版本

  • ExtraArgs:

    集群自定义参数

  • MaxNotReadyPercent:

    可容忍的最大不可用pod数目

  • SkipPreCheck:

    是否跳过预检查阶段



18896
18897
18898
# File 'lib/v20180525/models.rb', line 18896

def MaxNotReadyPercent
  @MaxNotReadyPercent
end

#SkipPreCheckObject

Parameters:

  • ClusterId:

    集群 Id

  • DstVersion:

    需要升级到的版本

  • ExtraArgs:

    集群自定义参数

  • MaxNotReadyPercent:

    可容忍的最大不可用pod数目

  • SkipPreCheck:

    是否跳过预检查阶段



18896
18897
18898
# File 'lib/v20180525/models.rb', line 18896

def SkipPreCheck
  @SkipPreCheck
end

Instance Method Details

#deserialize(params) ⇒ Object



18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
# File 'lib/v20180525/models.rb', line 18906

def deserialize(params)
  @ClusterId = params['ClusterId']
  @DstVersion = params['DstVersion']
  unless params['ExtraArgs'].nil?
    @ExtraArgs = ClusterExtraArgs.new
    @ExtraArgs.deserialize(params['ExtraArgs'])
  end
  @MaxNotReadyPercent = params['MaxNotReadyPercent']
  @SkipPreCheck = params['SkipPreCheck']
end