Class: TencentCloud::Tke::V20180525::ScaleInClusterMasterRequest

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

Overview

ScaleInClusterMaster请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, scaleinmasters = nil) ⇒ ScaleInClusterMasterRequest

Returns a new instance of ScaleInClusterMasterRequest.



17990
17991
17992
17993
# File 'lib/v20180525/models.rb', line 17990

def initialize(clusterid=nil, scaleinmasters=nil)
  @ClusterId = clusterid
  @ScaleInMasters = scaleinmasters
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • ClusterId:

    集群实例ID

  • ScaleInMasters:

    master缩容选项



17988
17989
17990
# File 'lib/v20180525/models.rb', line 17988

def ClusterId
  @ClusterId
end

#ScaleInMastersObject

Parameters:

  • ClusterId:

    集群实例ID

  • ScaleInMasters:

    master缩容选项



17988
17989
17990
# File 'lib/v20180525/models.rb', line 17988

def ScaleInMasters
  @ScaleInMasters
end

Instance Method Details

#deserialize(params) ⇒ Object



17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
# File 'lib/v20180525/models.rb', line 17995

def deserialize(params)
  @ClusterId = params['ClusterId']
  unless params['ScaleInMasters'].nil?
    @ScaleInMasters = []
    params['ScaleInMasters'].each do |i|
      scaleinmaster_tmp = ScaleInMaster.new
      scaleinmaster_tmp.deserialize(i)
      @ScaleInMasters << scaleinmaster_tmp
    end
  end
end