Class: TencentCloud::Tcaplusdb::V20190823::ModifyClusterMachineRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tcaplusdb::V20190823::ModifyClusterMachineRequest
- Defined in:
- lib/v20190823/models.rb
Overview
ModifyClusterMachine请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(clusterid = nil, serverlist = nil, proxylist = nil, clustertype = nil) ⇒ ModifyClusterMachineRequest
constructor
A new instance of ModifyClusterMachineRequest.
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
#ClusterId ⇒ Object
2862 2863 2864 |
# File 'lib/v20190823/models.rb', line 2862 def ClusterId @ClusterId end |
#ClusterType ⇒ Object
2862 2863 2864 |
# File 'lib/v20190823/models.rb', line 2862 def ClusterType @ClusterType end |
#ProxyList ⇒ Object
2862 2863 2864 |
# File 'lib/v20190823/models.rb', line 2862 def ProxyList @ProxyList end |
#ServerList ⇒ Object
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 |