class TencentCloud::Cynosdb::V20190107::CynosdbCluster
集群信息
def deserialize(params)
def deserialize(params) @Status = params['Status'] @UpdateTime = params['UpdateTime'] @Zone = params['Zone'] @ClusterName = params['ClusterName'] @Region = params['Region'] @DbVersion = params['DbVersion'] @ClusterId = params['ClusterId'] @InstanceNum = params['InstanceNum'] @Uin = params['Uin'] @DbType = params['DbType'] @AppId = params['AppId'] @StatusDesc = params['StatusDesc'] @CreateTime = params['CreateTime'] @PayMode = params['PayMode'] @PeriodEndTime = params['PeriodEndTime'] @Vip = params['Vip'] @Vport = params['Vport'] @ProjectID = params['ProjectID'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] @CynosVersion = params['CynosVersion'] @StorageLimit = params['StorageLimit'] @RenewFlag = params['RenewFlag'] @ProcessingTask = params['ProcessingTask'] unless params['Tasks'].nil? @Tasks = [] params['Tasks'].each do |i| objecttask_tmp = ObjectTask.new objecttask_tmp.deserialize(i) @Tasks << objecttask_tmp end end unless params['ResourceTags'].nil? @ResourceTags = [] params['ResourceTags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @ResourceTags << tag_tmp end end @DbMode = params['DbMode'] @ServerlessStatus = params['ServerlessStatus'] @Storage = params['Storage'] @StorageId = params['StorageId'] @StoragePayMode = params['StoragePayMode'] @MinStorageSize = params['MinStorageSize'] @MaxStorageSize = params['MaxStorageSize'] unless params['NetAddrs'].nil? @NetAddrs = [] params['NetAddrs'].each do |i| netaddr_tmp = NetAddr.new netaddr_tmp.deserialize(i) @NetAddrs << netaddr_tmp end end @PhysicalZone = params['PhysicalZone'] @MasterZone = params['MasterZone'] @HasSlaveZone = params['HasSlaveZone'] @SlaveZones = params['SlaveZones'] @BusinessType = params['BusinessType'] @IsFreeze = params['IsFreeze'] @OrderSource = params['OrderSource'] unless params['Ability'].nil? @Ability = Ability.new @Ability.deserialize(params['Ability']) end unless params['ResourcePackages'].nil? @ResourcePackages = [] params['ResourcePackages'].each do |i| resourcepackage_tmp = ResourcePackage.new resourcepackage_tmp.deserialize(i) @ResourcePackages << resourcepackage_tmp end end end
def initialize(status=nil, updatetime=nil, zone=nil, clustername=nil, region=nil, dbversion=nil, clusterid=nil, instancenum=nil, uin=nil, dbtype=nil, appid=nil, statusdesc=nil, createtime=nil, paymode=nil, periodendtime=nil, vip=nil, vport=nil, projectid=nil, vpcid=nil, subnetid=nil, cynosversion=nil, storagelimit=nil, renewflag=nil, processingtask=nil, tasks=nil, resourcetags=nil, dbmode=nil, serverlessstatus=nil, storage=nil, storageid=nil, storagepaymode=nil, minstoragesize=nil, maxstoragesize=nil, netaddrs=nil, physicalzone=nil, masterzone=nil, hasslavezone=nil, slavezones=nil, businesstype=nil, isfreeze=nil, ordersource=nil, ability=nil, resourcepackages=nil)
def initialize(status=nil, updatetime=nil, zone=nil, clustername=nil, region=nil, dbversion=nil, clusterid=nil, instancenum=nil, uin=nil, dbtype=nil, appid=nil, statusdesc=nil, createtime=nil, paymode=nil, periodendtime=nil, vip=nil, vport=nil, projectid=nil, vpcid=nil, subnetid=nil, cynosversion=nil, storagelimit=nil, renewflag=nil, processingtask=nil, tasks=nil, resourcetags=nil, dbmode=nil, serverlessstatus=nil, storage=nil, storageid=nil, storagepaymode=nil, minstoragesize=nil, maxstoragesize=nil, netaddrs=nil, physicalzone=nil, masterzone=nil, hasslavezone=nil, slavezones=nil, businesstype=nil, isfreeze=nil, ordersource=nil, ability=nil, resourcepackages=nil) @Status = status @UpdateTime = updatetime @Zone = zone @ClusterName = clustername @Region = region @DbVersion = dbversion @ClusterId = clusterid @InstanceNum = instancenum @Uin = uin @DbType = dbtype @AppId = appid @StatusDesc = statusdesc @CreateTime = createtime @PayMode = paymode @PeriodEndTime = periodendtime @Vip = vip @Vport = vport @ProjectID = projectid @VpcId = vpcid @SubnetId = subnetid @CynosVersion = cynosversion @StorageLimit = storagelimit @RenewFlag = renewflag @ProcessingTask = processingtask @Tasks = tasks @ResourceTags = resourcetags @DbMode = dbmode @ServerlessStatus = serverlessstatus @Storage = storage @StorageId = storageid @StoragePayMode = storagepaymode @MinStorageSize = minstoragesize @MaxStorageSize = maxstoragesize @NetAddrs = netaddrs @PhysicalZone = physicalzone @MasterZone = masterzone @HasSlaveZone = hasslavezone @SlaveZones = slavezones @BusinessType = businesstype @IsFreeze = isfreeze @OrderSource = ordersource @Ability = ability @ResourcePackages = resourcepackages end