Class: TencentCloud::Cdb::V20170320::DescribeClusterInfoResponse

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

Overview

DescribeClusterInfo返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clustername = nil, readwriteaddress = nil, readonlyaddress = nil, nodelist = nil, readonlylimit = nil, nodecount = nil, requestid = nil) ⇒ DescribeClusterInfoResponse



5805
5806
5807
5808
5809
5810
5811
5812
5813
# File 'lib/v20170320/models.rb', line 5805

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

Instance Attribute Details

#ClusterNameObject



5803
5804
5805
# File 'lib/v20170320/models.rb', line 5803

def ClusterName
  @ClusterName
end

#NodeCountObject



5803
5804
5805
# File 'lib/v20170320/models.rb', line 5803

def NodeCount
  @NodeCount
end

#NodeListObject



5803
5804
5805
# File 'lib/v20170320/models.rb', line 5803

def NodeList
  @NodeList
end

#ReadOnlyAddressObject



5803
5804
5805
# File 'lib/v20170320/models.rb', line 5803

def ReadOnlyAddress
  @ReadOnlyAddress
end

#ReadonlyLimitObject



5803
5804
5805
# File 'lib/v20170320/models.rb', line 5803

def ReadonlyLimit
  @ReadonlyLimit
end

#ReadWriteAddressObject



5803
5804
5805
# File 'lib/v20170320/models.rb', line 5803

def ReadWriteAddress
  @ReadWriteAddress
end

#RequestIdObject



5803
5804
5805
# File 'lib/v20170320/models.rb', line 5803

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
# File 'lib/v20170320/models.rb', line 5815

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