class TencentCloud::Cdwpg::V20201230::InstanceInfo
云原生实例详情
def deserialize(params)
def deserialize(params) @ID = params['ID'] @InstanceType = params['InstanceType'] @InstanceName = params['InstanceName'] @Status = params['Status'] @StatusDesc = params['StatusDesc'] unless params['InstanceStateInfo'].nil? @InstanceStateInfo = InstanceStateInfo.new @InstanceStateInfo.deserialize(params['InstanceStateInfo']) end @InstanceID = params['InstanceID'] @CreateTime = params['CreateTime'] @Region = params['Region'] @Zone = params['Zone'] @RegionDesc = params['RegionDesc'] @ZoneDesc = params['ZoneDesc'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end @Version = params['Version'] @Charset = params['Charset'] @EngineVersion = params['EngineVersion'] unless params['GTMNodes'].nil? @GTMNodes = [] params['GTMNodes'].each do |i| instancenodegroup_tmp = InstanceNodeGroup.new instancenodegroup_tmp.deserialize(i) @GTMNodes << instancenodegroup_tmp end end unless params['CNNodes'].nil? @CNNodes = [] params['CNNodes'].each do |i| instancenodegroup_tmp = InstanceNodeGroup.new instancenodegroup_tmp.deserialize(i) @CNNodes << instancenodegroup_tmp end end unless params['DNNodes'].nil? @DNNodes = [] params['DNNodes'].each do |i| instancenodegroup_tmp = InstanceNodeGroup.new instancenodegroup_tmp.deserialize(i) @DNNodes << instancenodegroup_tmp end end unless params['BackupStorage'].nil? @BackupStorage = [] params['BackupStorage'].each do |i| instancenodegroup_tmp = InstanceNodeGroup.new instancenodegroup_tmp.deserialize(i) @BackupStorage << instancenodegroup_tmp end end unless params['FNNodes'].nil? @FNNodes = [] params['FNNodes'].each do |i| instancenodegroup_tmp = InstanceNodeGroup.new instancenodegroup_tmp.deserialize(i) @FNNodes << instancenodegroup_tmp end end end
def initialize(id=nil, instancetype=nil, instancename=nil, status=nil, statusdesc=nil, instancestateinfo=nil, instanceid=nil, createtime=nil, region=nil, zone=nil, regiondesc=nil, zonedesc=nil, tags=nil, version=nil, charset=nil, engineversion=nil, gtmnodes=nil, cnnodes=nil, dnnodes=nil, backupstorage=nil, fnnodes=nil)
def initialize(id=nil, instancetype=nil, instancename=nil, status=nil, statusdesc=nil, instancestateinfo=nil, instanceid=nil, createtime=nil, region=nil, zone=nil, regiondesc=nil, zonedesc=nil, tags=nil, version=nil, charset=nil, engineversion=nil, gtmnodes=nil, cnnodes=nil, dnnodes=nil, backupstorage=nil, fnnodes=nil) @ID = id @InstanceType = instancetype @InstanceName = instancename @Status = status @StatusDesc = statusdesc @InstanceStateInfo = instancestateinfo @InstanceID = instanceid @CreateTime = createtime @Region = region @Zone = zone @RegionDesc = regiondesc @ZoneDesc = zonedesc @Tags = tags @Version = version @Charset = charset @EngineVersion = engineversion @GTMNodes = gtmnodes @CNNodes = cnnodes @DNNodes = dnnodes @BackupStorage = backupstorage @FNNodes = fnnodes end