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.



2864
2865
2866
2867
2868
2869
# File 'lib/v20190823/models.rb', line 2864

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独占集群



2862
2863
2864
# File 'lib/v20190823/models.rb', line 2862

def ClusterId
  @ClusterId
end

#ClusterTypeObject

Parameters:

  • ClusterId:

    集群id

  • ServerList:

    svr占用的机器

  • ProxyList:

    proxy占用的机器

  • ClusterType:

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



2862
2863
2864
# File 'lib/v20190823/models.rb', line 2862

def ClusterType
  @ClusterType
end

#ProxyListObject

Parameters:

  • ClusterId:

    集群id

  • ServerList:

    svr占用的机器

  • ProxyList:

    proxy占用的机器

  • ClusterType:

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



2862
2863
2864
# File 'lib/v20190823/models.rb', line 2862

def ProxyList
  @ProxyList
end

#ServerListObject

Parameters:

  • ClusterId:

    集群id

  • ServerList:

    svr占用的机器

  • ProxyList:

    proxy占用的机器

  • ClusterType:

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



2862
2863
2864
# File 'lib/v20190823/models.rb', line 2862

def ServerList
  @ServerList
end

Instance Method Details

#deserialize(params) ⇒ Object



2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
# File 'lib/v20190823/models.rb', line 2871

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