Class: TencentCloud::Tke::V20180525::ScaleOutClusterMasterRequest

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

Overview

ScaleOutClusterMaster请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, runinstancesfornode = nil, existedinstancesfornode = nil, instanceadvancedsettings = nil, extraargs = nil) ⇒ ScaleOutClusterMasterRequest

Returns a new instance of ScaleOutClusterMasterRequest.



19851
19852
19853
19854
19855
19856
19857
# File 'lib/v20180525/models.rb', line 19851

def initialize(clusterid=nil, runinstancesfornode=nil, existedinstancesfornode=nil, instanceadvancedsettings=nil, extraargs=nil)
  @ClusterId = clusterid
  @RunInstancesForNode = runinstancesfornode
  @ExistedInstancesForNode = existedinstancesfornode
  @InstanceAdvancedSettings = instanceadvancedsettings
  @ExtraArgs = extraargs
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • ClusterId:

    集群实例ID

  • RunInstancesForNode:

    新建节点参数

  • ExistedInstancesForNode:

    添加已有节点相关参数

  • InstanceAdvancedSettings:

    实例高级设置

  • ExtraArgs:

    集群master组件自定义参数



19849
19850
19851
# File 'lib/v20180525/models.rb', line 19849

def ClusterId
  @ClusterId
end

#ExistedInstancesForNodeObject

Parameters:

  • ClusterId:

    集群实例ID

  • RunInstancesForNode:

    新建节点参数

  • ExistedInstancesForNode:

    添加已有节点相关参数

  • InstanceAdvancedSettings:

    实例高级设置

  • ExtraArgs:

    集群master组件自定义参数



19849
19850
19851
# File 'lib/v20180525/models.rb', line 19849

def ExistedInstancesForNode
  @ExistedInstancesForNode
end

#ExtraArgsObject

Parameters:

  • ClusterId:

    集群实例ID

  • RunInstancesForNode:

    新建节点参数

  • ExistedInstancesForNode:

    添加已有节点相关参数

  • InstanceAdvancedSettings:

    实例高级设置

  • ExtraArgs:

    集群master组件自定义参数



19849
19850
19851
# File 'lib/v20180525/models.rb', line 19849

def ExtraArgs
  @ExtraArgs
end

#InstanceAdvancedSettingsObject

Parameters:

  • ClusterId:

    集群实例ID

  • RunInstancesForNode:

    新建节点参数

  • ExistedInstancesForNode:

    添加已有节点相关参数

  • InstanceAdvancedSettings:

    实例高级设置

  • ExtraArgs:

    集群master组件自定义参数



19849
19850
19851
# File 'lib/v20180525/models.rb', line 19849

def InstanceAdvancedSettings
  @InstanceAdvancedSettings
end

#RunInstancesForNodeObject

Parameters:

  • ClusterId:

    集群实例ID

  • RunInstancesForNode:

    新建节点参数

  • ExistedInstancesForNode:

    添加已有节点相关参数

  • InstanceAdvancedSettings:

    实例高级设置

  • ExtraArgs:

    集群master组件自定义参数



19849
19850
19851
# File 'lib/v20180525/models.rb', line 19849

def RunInstancesForNode
  @RunInstancesForNode
end

Instance Method Details

#deserialize(params) ⇒ Object



19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
# File 'lib/v20180525/models.rb', line 19859

def deserialize(params)
  @ClusterId = params['ClusterId']
  unless params['RunInstancesForNode'].nil?
    @RunInstancesForNode = []
    params['RunInstancesForNode'].each do |i|
      runinstancesfornode_tmp = RunInstancesForNode.new
      runinstancesfornode_tmp.deserialize(i)
      @RunInstancesForNode << runinstancesfornode_tmp
    end
  end
  unless params['ExistedInstancesForNode'].nil?
    @ExistedInstancesForNode = []
    params['ExistedInstancesForNode'].each do |i|
      existedinstancesfornode_tmp = ExistedInstancesForNode.new
      existedinstancesfornode_tmp.deserialize(i)
      @ExistedInstancesForNode << existedinstancesfornode_tmp
    end
  end
  unless params['InstanceAdvancedSettings'].nil?
    @InstanceAdvancedSettings = InstanceAdvancedSettings.new
    @InstanceAdvancedSettings.deserialize(params['InstanceAdvancedSettings'])
  end
  unless params['ExtraArgs'].nil?
    @ExtraArgs = ClusterExtraArgs.new
    @ExtraArgs.deserialize(params['ExtraArgs'])
  end
end