Class: TencentCloud::Tcaplusdb::V20190823::ModifyClusterMachineRequest

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

Overview

ModifyClusterMachine请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, serverlist = nil, proxylist = nil, clustertype = nil) ⇒ ModifyClusterMachineRequest

Returns a new instance of ModifyClusterMachineRequest.



2825
2826
2827
2828
2829
2830
# File 'lib/v20190823/models.rb', line 2825

def initialize(clusterid=nil, serverlist=nil, proxylist=nil, clustertype=nil)
  @ClusterId = clusterid
  @ServerList = serverlist
  @ProxyList = proxylist
  @ClusterType = clustertype
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • ClusterId:

    集群id

  • ServerList:

    svr占用的机器

  • ProxyList:

    proxy占用的机器

  • ClusterType:

    集群类型1共享集群2独占集群



2823
2824
2825
# File 'lib/v20190823/models.rb', line 2823

def ClusterId
  @ClusterId
end

#ClusterTypeObject

Parameters:

  • ClusterId:

    集群id

  • ServerList:

    svr占用的机器

  • ProxyList:

    proxy占用的机器

  • ClusterType:

    集群类型1共享集群2独占集群



2823
2824
2825
# File 'lib/v20190823/models.rb', line 2823

def ClusterType
  @ClusterType
end

#ProxyListObject

Parameters:

  • ClusterId:

    集群id

  • ServerList:

    svr占用的机器

  • ProxyList:

    proxy占用的机器

  • ClusterType:

    集群类型1共享集群2独占集群



2823
2824
2825
# File 'lib/v20190823/models.rb', line 2823

def ProxyList
  @ProxyList
end

#ServerListObject

Parameters:

  • ClusterId:

    集群id

  • ServerList:

    svr占用的机器

  • ProxyList:

    proxy占用的机器

  • ClusterType:

    集群类型1共享集群2独占集群



2823
2824
2825
# File 'lib/v20190823/models.rb', line 2823

def ServerList
  @ServerList
end

Instance Method Details

#deserialize(params) ⇒ Object



2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
# File 'lib/v20190823/models.rb', line 2832

def deserialize(params)
  @ClusterId = params['ClusterId']
  unless params['ServerList'].nil?
    @ServerList = []
    params['ServerList'].each do |i|
      machineinfo_tmp = MachineInfo.new
      machineinfo_tmp.deserialize(i)
      @ServerList << machineinfo_tmp
    end
  end
  unless params['ProxyList'].nil?
    @ProxyList = []
    params['ProxyList'].each do |i|
      machineinfo_tmp = MachineInfo.new
      machineinfo_tmp.deserialize(i)
      @ProxyList << machineinfo_tmp
    end
  end
  @ClusterType = params['ClusterType']
end