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.



18399
18400
18401
18402
18403
18404
18405
# File 'lib/v20180525/models.rb', line 18399

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



18397
18398
18399
# File 'lib/v20180525/models.rb', line 18397

def ClusterId
  @ClusterId
end

#ExistedInstancesForNodeObject

Parameters:

  • ClusterId:

    集群实例ID

  • RunInstancesForNode:

    新建节点参数

  • ExistedInstancesForNode:

    添加已有节点相关参数

  • InstanceAdvancedSettings:

    实例高级设置

  • ExtraArgs:

    集群master组件自定义参数



18397
18398
18399
# File 'lib/v20180525/models.rb', line 18397

def ExistedInstancesForNode
  @ExistedInstancesForNode
end

#ExtraArgsObject

Parameters:

  • ClusterId:

    集群实例ID

  • RunInstancesForNode:

    新建节点参数

  • ExistedInstancesForNode:

    添加已有节点相关参数

  • InstanceAdvancedSettings:

    实例高级设置

  • ExtraArgs:

    集群master组件自定义参数



18397
18398
18399
# File 'lib/v20180525/models.rb', line 18397

def ExtraArgs
  @ExtraArgs
end

#InstanceAdvancedSettingsObject

Parameters:

  • ClusterId:

    集群实例ID

  • RunInstancesForNode:

    新建节点参数

  • ExistedInstancesForNode:

    添加已有节点相关参数

  • InstanceAdvancedSettings:

    实例高级设置

  • ExtraArgs:

    集群master组件自定义参数



18397
18398
18399
# File 'lib/v20180525/models.rb', line 18397

def InstanceAdvancedSettings
  @InstanceAdvancedSettings
end

#RunInstancesForNodeObject

Parameters:

  • ClusterId:

    集群实例ID

  • RunInstancesForNode:

    新建节点参数

  • ExistedInstancesForNode:

    添加已有节点相关参数

  • InstanceAdvancedSettings:

    实例高级设置

  • ExtraArgs:

    集群master组件自定义参数



18397
18398
18399
# File 'lib/v20180525/models.rb', line 18397

def RunInstancesForNode
  @RunInstancesForNode
end

Instance Method Details

#deserialize(params) ⇒ Object



18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
# File 'lib/v20180525/models.rb', line 18407

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