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.
2193 2194 2195 2196 |
# File 'lib/v20170320/models.rb', line 2193 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) 获取。
2191 2192 2193 |
# File 'lib/v20170320/models.rb', line 2191 def ReadOnlyNodes @ReadOnlyNodes end |
#ReadWriteNode ⇒ Object
说明:NodeId 可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 获取。说明:NodeId 可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 获取。
2191 2192 2193 |
# File 'lib/v20170320/models.rb', line 2191 def ReadWriteNode @ReadWriteNode end |
Instance Method Details
#deserialize(params) ⇒ Object
2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 |
# File 'lib/v20170320/models.rb', line 2198 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 |