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.



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

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

Instance Attribute Details

#NodeIdObject

Parameters:

  • NodeId:

    节点id

  • Role:

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

  • Zone:

    地域



2135
2136
2137
# File 'lib/v20170320/models.rb', line 2135

def NodeId
  @NodeId
end

#RoleObject

Parameters:

  • NodeId:

    节点id

  • Role:

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

  • Zone:

    地域



2135
2136
2137
# File 'lib/v20170320/models.rb', line 2135

def Role
  @Role
end

#ZoneObject

Parameters:

  • NodeId:

    节点id

  • Role:

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

  • Zone:

    地域



2135
2136
2137
# File 'lib/v20170320/models.rb', line 2135

def Zone
  @Zone
end

Instance Method Details

#deserialize(params) ⇒ Object



2143
2144
2145
2146
2147
# File 'lib/v20170320/models.rb', line 2143

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