class TencentCloud::Cdb::V20170320::DescribeClusterInfoResponse
DescribeClusterInfo返回参数结构体
def deserialize(params)
def deserialize(params) @ClusterName = params['ClusterName'] unless params['ReadWriteAddress'].nil? @ReadWriteAddress = AddressInfo.new @ReadWriteAddress.deserialize(params['ReadWriteAddress']) end unless params['ReadOnlyAddress'].nil? @ReadOnlyAddress = [] params['ReadOnlyAddress'].each do |i| addressinfo_tmp = AddressInfo.new addressinfo_tmp.deserialize(i) @ReadOnlyAddress << addressinfo_tmp end end unless params['NodeList'].nil? @NodeList = [] params['NodeList'].each do |i| clusternodeinfo_tmp = ClusterNodeInfo.new clusternodeinfo_tmp.deserialize(i) @NodeList << clusternodeinfo_tmp end end @ReadonlyLimit = params['ReadonlyLimit'] @NodeCount = params['NodeCount'] @RequestId = params['RequestId'] end
def initialize(clustername=nil, readwriteaddress=nil, readonlyaddress=nil, nodelist=nil, readonlylimit=nil, nodecount=nil, requestid=nil)
def initialize(clustername=nil, readwriteaddress=nil, readonlyaddress=nil, nodelist=nil, readonlylimit=nil, nodecount=nil, requestid=nil) @ClusterName = clustername @ReadWriteAddress = readwriteaddress @ReadOnlyAddress = readonlyaddress @NodeList = nodelist @ReadonlyLimit = readonlylimit @NodeCount = nodecount @RequestId = requestid end