Class: TencentCloud::Dcdb::V20180411::ShardBriefInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dcdb::V20180411::ShardBriefInfo
- Defined in:
- lib/v20180411/models.rb
Overview
DCDB分片信息
Instance Attribute Summary collapse
- #Cpu ⇒ Object
- #CreateTime ⇒ Object
- #LogDisk ⇒ Object
- #Memory ⇒ Object
- #NodeCount ⇒ Object
- #NodesInfo ⇒ Object
- #ProxyVersion ⇒ Object
- #ShardInstanceId ⇒ Object
- #ShardMasterZone ⇒ Object
- #ShardSerialId ⇒ Object
- #ShardSlaveZones ⇒ Object
- #Status ⇒ Object
- #StatusDesc ⇒ Object
- #Storage ⇒ Object
- #StorageUsage ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(shardserialid = nil, shardinstanceid = nil, status = nil, statusdesc = nil, createtime = nil, memory = nil, storage = nil, logdisk = nil, nodecount = nil, storageusage = nil, proxyversion = nil, shardmasterzone = nil, shardslavezones = nil, cpu = nil, nodesinfo = nil) ⇒ ShardBriefInfo
constructor
A new instance of ShardBriefInfo.
Constructor Details
#initialize(shardserialid = nil, shardinstanceid = nil, status = nil, statusdesc = nil, createtime = nil, memory = nil, storage = nil, logdisk = nil, nodecount = nil, storageusage = nil, proxyversion = nil, shardmasterzone = nil, shardslavezones = nil, cpu = nil, nodesinfo = nil) ⇒ ShardBriefInfo
Returns a new instance of ShardBriefInfo.
5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 |
# File 'lib/v20180411/models.rb', line 5923 def initialize(shardserialid=nil, shardinstanceid=nil, status=nil, statusdesc=nil, createtime=nil, memory=nil, storage=nil, logdisk=nil, nodecount=nil, storageusage=nil, proxyversion=nil, shardmasterzone=nil, shardslavezones=nil, cpu=nil, nodesinfo=nil) @ShardSerialId = shardserialid @ShardInstanceId = shardinstanceid @Status = status @StatusDesc = statusdesc @CreateTime = createtime @Memory = memory @Storage = storage @LogDisk = logdisk @NodeCount = nodecount @StorageUsage = storageusage @ProxyVersion = proxyversion @ShardMasterZone = shardmasterzone @ShardSlaveZones = shardslavezones @Cpu = cpu @NodesInfo = nodesinfo end |
Instance Attribute Details
#Cpu ⇒ Object
5921 5922 5923 |
# File 'lib/v20180411/models.rb', line 5921 def Cpu @Cpu end |
#CreateTime ⇒ Object
5921 5922 5923 |
# File 'lib/v20180411/models.rb', line 5921 def CreateTime @CreateTime end |
#LogDisk ⇒ Object
5921 5922 5923 |
# File 'lib/v20180411/models.rb', line 5921 def LogDisk @LogDisk end |
#Memory ⇒ Object
5921 5922 5923 |
# File 'lib/v20180411/models.rb', line 5921 def Memory @Memory end |
#NodeCount ⇒ Object
5921 5922 5923 |
# File 'lib/v20180411/models.rb', line 5921 def NodeCount @NodeCount end |
#NodesInfo ⇒ Object
5921 5922 5923 |
# File 'lib/v20180411/models.rb', line 5921 def NodesInfo @NodesInfo end |
#ProxyVersion ⇒ Object
5921 5922 5923 |
# File 'lib/v20180411/models.rb', line 5921 def ProxyVersion @ProxyVersion end |
#ShardInstanceId ⇒ Object
5921 5922 5923 |
# File 'lib/v20180411/models.rb', line 5921 def ShardInstanceId @ShardInstanceId end |
#ShardMasterZone ⇒ Object
5921 5922 5923 |
# File 'lib/v20180411/models.rb', line 5921 def ShardMasterZone @ShardMasterZone end |
#ShardSerialId ⇒ Object
5921 5922 5923 |
# File 'lib/v20180411/models.rb', line 5921 def ShardSerialId @ShardSerialId end |
#ShardSlaveZones ⇒ Object
5921 5922 5923 |
# File 'lib/v20180411/models.rb', line 5921 def ShardSlaveZones @ShardSlaveZones end |
#Status ⇒ Object
5921 5922 5923 |
# File 'lib/v20180411/models.rb', line 5921 def Status @Status end |
#StatusDesc ⇒ Object
5921 5922 5923 |
# File 'lib/v20180411/models.rb', line 5921 def StatusDesc @StatusDesc end |
#Storage ⇒ Object
5921 5922 5923 |
# File 'lib/v20180411/models.rb', line 5921 def Storage @Storage end |
#StorageUsage ⇒ Object
5921 5922 5923 |
# File 'lib/v20180411/models.rb', line 5921 def StorageUsage @StorageUsage end |
Instance Method Details
#deserialize(params) ⇒ Object
5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 |
# File 'lib/v20180411/models.rb', line 5941 def deserialize(params) @ShardSerialId = params['ShardSerialId'] @ShardInstanceId = params['ShardInstanceId'] @Status = params['Status'] @StatusDesc = params['StatusDesc'] @CreateTime = params['CreateTime'] @Memory = params['Memory'] @Storage = params['Storage'] @LogDisk = params['LogDisk'] @NodeCount = params['NodeCount'] @StorageUsage = params['StorageUsage'] @ProxyVersion = params['ProxyVersion'] @ShardMasterZone = params['ShardMasterZone'] @ShardSlaveZones = params['ShardSlaveZones'] @Cpu = params['Cpu'] unless params['NodesInfo'].nil? @NodesInfo = [] params['NodesInfo'].each do |i| nodeinfo_tmp = NodeInfo.new nodeinfo_tmp.deserialize(i) @NodesInfo << nodeinfo_tmp end end end |