Class: TencentCloud::Dcdb::V20180411::BriefNodeInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dcdb::V20180411::BriefNodeInfo
- Defined in:
- lib/v20180411/models.rb
Overview
描述分片DB节点信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(nodeid = nil, role = nil, shardid = nil, zone = nil) ⇒ BriefNodeInfo
constructor
A new instance of BriefNodeInfo.
Constructor Details
#initialize(nodeid = nil, role = nil, shardid = nil, zone = nil) ⇒ BriefNodeInfo
Returns a new instance of BriefNodeInfo.
206 207 208 209 210 211 |
# File 'lib/v20180411/models.rb', line 206 def initialize(nodeid=nil, role=nil, shardid=nil, zone=nil) @NodeId = nodeid @Role = role @ShardId = shardid @Zone = zone end |
Instance Attribute Details
#NodeId ⇒ Object
204 205 206 |
# File 'lib/v20180411/models.rb', line 204 def NodeId @NodeId end |
#Role ⇒ Object
204 205 206 |
# File 'lib/v20180411/models.rb', line 204 def Role @Role end |
#ShardId ⇒ Object
204 205 206 |
# File 'lib/v20180411/models.rb', line 204 def ShardId @ShardId end |
#Zone ⇒ Object
204 205 206 |
# File 'lib/v20180411/models.rb', line 204 def Zone @Zone end |
Instance Method Details
#deserialize(params) ⇒ Object
213 214 215 216 217 218 |
# File 'lib/v20180411/models.rb', line 213 def deserialize(params) @NodeId = params['NodeId'] @Role = params['Role'] @ShardId = params['ShardId'] @Zone = params['Zone'] end |