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.



18063
18064
18065
18066
18067
18068
18069
# File 'lib/v20180525/models.rb', line 18063

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组件自定义参数



18061
18062
18063
# File 'lib/v20180525/models.rb', line 18061

def ClusterId
  @ClusterId
end

#ExistedInstancesForNodeObject

Parameters:

  • ClusterId:

    集群实例ID

  • RunInstancesForNode:

    新建节点参数

  • ExistedInstancesForNode:

    添加已有节点相关参数

  • InstanceAdvancedSettings:

    实例高级设置

  • ExtraArgs:

    集群master组件自定义参数



18061
18062
18063
# File 'lib/v20180525/models.rb', line 18061

def ExistedInstancesForNode
  @ExistedInstancesForNode
end

#ExtraArgsObject

Parameters:

  • ClusterId:

    集群实例ID

  • RunInstancesForNode:

    新建节点参数

  • ExistedInstancesForNode:

    添加已有节点相关参数

  • InstanceAdvancedSettings:

    实例高级设置

  • ExtraArgs:

    集群master组件自定义参数



18061
18062
18063
# File 'lib/v20180525/models.rb', line 18061

def ExtraArgs
  @ExtraArgs
end

#InstanceAdvancedSettingsObject

Parameters:

  • ClusterId:

    集群实例ID

  • RunInstancesForNode:

    新建节点参数

  • ExistedInstancesForNode:

    添加已有节点相关参数

  • InstanceAdvancedSettings:

    实例高级设置

  • ExtraArgs:

    集群master组件自定义参数



18061
18062
18063
# File 'lib/v20180525/models.rb', line 18061

def InstanceAdvancedSettings
  @InstanceAdvancedSettings
end

#RunInstancesForNodeObject

Parameters:

  • ClusterId:

    集群实例ID

  • RunInstancesForNode:

    新建节点参数

  • ExistedInstancesForNode:

    添加已有节点相关参数

  • InstanceAdvancedSettings:

    实例高级设置

  • ExtraArgs:

    集群master组件自定义参数



18061
18062
18063
# File 'lib/v20180525/models.rb', line 18061

def RunInstancesForNode
  @RunInstancesForNode
end

Instance Method Details

#deserialize(params) ⇒ Object



18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
# File 'lib/v20180525/models.rb', line 18071

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