Class: TencentCloud::Cdb::V20170320::ClusterTopology
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdb::V20170320::ClusterTopology
- Defined in:
- lib/v20170320/models.rb
Overview
集群版的节点拓扑配置。
Instance Attribute Summary collapse
-
#ReadOnlyNodes ⇒ Object
说明:NodeId 可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 获取。 说明:NodeId 可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 获取。.
-
#ReadWriteNode ⇒ Object
说明:NodeId 可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 获取。 说明:NodeId 可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 获取。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(readwritenode = nil, readonlynodes = nil) ⇒ ClusterTopology
constructor
A new instance of ClusterTopology.
Constructor Details
#initialize(readwritenode = nil, readonlynodes = nil) ⇒ ClusterTopology
Returns a new instance of ClusterTopology.
2159 2160 2161 2162 |
# File 'lib/v20170320/models.rb', line 2159 def initialize(readwritenode=nil, readonlynodes=nil) @ReadWriteNode = readwritenode @ReadOnlyNodes = readonlynodes end |
Instance Attribute Details
#ReadOnlyNodes ⇒ Object
说明:NodeId 可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 获取。说明:NodeId 可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 获取。
2157 2158 2159 |
# File 'lib/v20170320/models.rb', line 2157 def ReadOnlyNodes @ReadOnlyNodes end |
#ReadWriteNode ⇒ Object
说明:NodeId 可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 获取。说明:NodeId 可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 获取。
2157 2158 2159 |
# File 'lib/v20170320/models.rb', line 2157 def ReadWriteNode @ReadWriteNode end |
Instance Method Details
#deserialize(params) ⇒ Object
2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 |
# File 'lib/v20170320/models.rb', line 2164 def deserialize(params) unless params['ReadWriteNode'].nil? @ReadWriteNode = ReadWriteNode.new @ReadWriteNode.deserialize(params['ReadWriteNode']) end unless params['ReadOnlyNodes'].nil? @ReadOnlyNodes = [] params['ReadOnlyNodes'].each do |i| readonlynode_tmp = ReadonlyNode.new readonlynode_tmp.deserialize(i) @ReadOnlyNodes << readonlynode_tmp end end end |