Class: TencentCloud::Tke::V20180525::CheckInstancesUpgradeAbleRequest

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

Overview

CheckInstancesUpgradeAble请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, instanceids = nil, upgradetype = nil, offset = nil, limit = nil, filter = nil) ⇒ CheckInstancesUpgradeAbleRequest

Returns a new instance of CheckInstancesUpgradeAbleRequest.



673
674
675
676
677
678
679
680
# File 'lib/v20180525/models.rb', line 673

def initialize(clusterid=nil, instanceids=nil, upgradetype=nil, offset=nil, limit=nil, filter=nil)
  @ClusterId = clusterid
  @InstanceIds = instanceids
  @UpgradeType = upgradetype
  @Offset = offset
  @Limit = limit
  @Filter = filter
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • ClusterId:

    集群ID

  • InstanceIds:

    节点列表,空为全部节点

  • UpgradeType:

    升级类型,枚举值:reset(重装升级,支持大版本和小版本),hot(原地滚动小版本升级),major(原地滚动大版本升级)

  • Offset:

    分页Offset

  • Limit:

    分页Limit

  • Filter:

    过滤



671
672
673
# File 'lib/v20180525/models.rb', line 671

def ClusterId
  @ClusterId
end

#FilterObject

Parameters:

  • ClusterId:

    集群ID

  • InstanceIds:

    节点列表,空为全部节点

  • UpgradeType:

    升级类型,枚举值:reset(重装升级,支持大版本和小版本),hot(原地滚动小版本升级),major(原地滚动大版本升级)

  • Offset:

    分页Offset

  • Limit:

    分页Limit

  • Filter:

    过滤



671
672
673
# File 'lib/v20180525/models.rb', line 671

def Filter
  @Filter
end

#InstanceIdsObject

Parameters:

  • ClusterId:

    集群ID

  • InstanceIds:

    节点列表,空为全部节点

  • UpgradeType:

    升级类型,枚举值:reset(重装升级,支持大版本和小版本),hot(原地滚动小版本升级),major(原地滚动大版本升级)

  • Offset:

    分页Offset

  • Limit:

    分页Limit

  • Filter:

    过滤



671
672
673
# File 'lib/v20180525/models.rb', line 671

def InstanceIds
  @InstanceIds
end

#LimitObject

Parameters:

  • ClusterId:

    集群ID

  • InstanceIds:

    节点列表,空为全部节点

  • UpgradeType:

    升级类型,枚举值:reset(重装升级,支持大版本和小版本),hot(原地滚动小版本升级),major(原地滚动大版本升级)

  • Offset:

    分页Offset

  • Limit:

    分页Limit

  • Filter:

    过滤



671
672
673
# File 'lib/v20180525/models.rb', line 671

def Limit
  @Limit
end

#OffsetObject

Parameters:

  • ClusterId:

    集群ID

  • InstanceIds:

    节点列表,空为全部节点

  • UpgradeType:

    升级类型,枚举值:reset(重装升级,支持大版本和小版本),hot(原地滚动小版本升级),major(原地滚动大版本升级)

  • Offset:

    分页Offset

  • Limit:

    分页Limit

  • Filter:

    过滤



671
672
673
# File 'lib/v20180525/models.rb', line 671

def Offset
  @Offset
end

#UpgradeTypeObject

Parameters:

  • ClusterId:

    集群ID

  • InstanceIds:

    节点列表,空为全部节点

  • UpgradeType:

    升级类型,枚举值:reset(重装升级,支持大版本和小版本),hot(原地滚动小版本升级),major(原地滚动大版本升级)

  • Offset:

    分页Offset

  • Limit:

    分页Limit

  • Filter:

    过滤



671
672
673
# File 'lib/v20180525/models.rb', line 671

def UpgradeType
  @UpgradeType
end

Instance Method Details

#deserialize(params) ⇒ Object



682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
# File 'lib/v20180525/models.rb', line 682

def deserialize(params)
  @ClusterId = params['ClusterId']
  @InstanceIds = params['InstanceIds']
  @UpgradeType = params['UpgradeType']
  @Offset = params['Offset']
  @Limit = params['Limit']
  unless params['Filter'].nil?
    @Filter = []
    params['Filter'].each do |i|
      filter_tmp = Filter.new
      filter_tmp.deserialize(i)
      @Filter << filter_tmp
    end
  end
end