Class: TencentCloud::Postgres::V20170312::DBNode
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Postgres::V20170312::DBNode
- Defined in:
- lib/v20170312/models.rb
Overview
描述实例节点信息,包括节点类型、节点所在可用区、节点所在专属集群。
Instance Attribute Summary collapse
-
#DedicatedClusterId ⇒ Object
Primary,代表主节点; Standby,代表备节点。.
-
#Role ⇒ Object
Primary,代表主节点; Standby,代表备节点。.
-
#Zone ⇒ Object
Primary,代表主节点; Standby,代表备节点。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(role = nil, zone = nil, dedicatedclusterid = nil) ⇒ DBNode
constructor
A new instance of DBNode.
Constructor Details
#initialize(role = nil, zone = nil, dedicatedclusterid = nil) ⇒ DBNode
Returns a new instance of DBNode.
1843 1844 1845 1846 1847 |
# File 'lib/v20170312/models.rb', line 1843 def initialize(role=nil, zone=nil, dedicatedclusterid=nil) @Role = role @Zone = zone @DedicatedClusterId = dedicatedclusterid end |
Instance Attribute Details
#DedicatedClusterId ⇒ Object
Primary,代表主节点;Standby,代表备节点。
1841 1842 1843 |
# File 'lib/v20170312/models.rb', line 1841 def DedicatedClusterId @DedicatedClusterId end |
#Role ⇒ Object
Primary,代表主节点;Standby,代表备节点。
1841 1842 1843 |
# File 'lib/v20170312/models.rb', line 1841 def Role @Role end |
#Zone ⇒ Object
Primary,代表主节点;Standby,代表备节点。
1841 1842 1843 |
# File 'lib/v20170312/models.rb', line 1841 def Zone @Zone end |
Instance Method Details
#deserialize(params) ⇒ Object
1849 1850 1851 1852 1853 |
# File 'lib/v20170312/models.rb', line 1849 def deserialize(params) @Role = params['Role'] @Zone = params['Zone'] @DedicatedClusterId = params['DedicatedClusterId'] end |