Class: TencentCloud::Cdb::V20170320::ClusterInfo

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20170320/models.rb

Overview

集群版节点信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(nodeid = nil, role = nil, zone = nil) ⇒ ClusterInfo

Returns a new instance of ClusterInfo.



2131
2132
2133
2134
2135
# File 'lib/v20170320/models.rb', line 2131

def initialize(nodeid=nil, role=nil, zone=nil)
  @NodeId = nodeid
  @Role = role
  @Zone = zone
end

Instance Attribute Details

#NodeIdObject

Parameters:

  • NodeId:

    节点id

  • Role:

    节点类型:主节点,从节点

  • Zone:

    地域



2129
2130
2131
# File 'lib/v20170320/models.rb', line 2129

def NodeId
  @NodeId
end

#RoleObject

Parameters:

  • NodeId:

    节点id

  • Role:

    节点类型:主节点,从节点

  • Zone:

    地域



2129
2130
2131
# File 'lib/v20170320/models.rb', line 2129

def Role
  @Role
end

#ZoneObject

Parameters:

  • NodeId:

    节点id

  • Role:

    节点类型:主节点,从节点

  • Zone:

    地域



2129
2130
2131
# File 'lib/v20170320/models.rb', line 2129

def Zone
  @Zone
end

Instance Method Details

#deserialize(params) ⇒ Object



2137
2138
2139
2140
2141
# File 'lib/v20170320/models.rb', line 2137

def deserialize(params)
  @NodeId = params['NodeId']
  @Role = params['Role']
  @Zone = params['Zone']
end