class TencentCloud::Cynosdb::V20190107::RollbackData
回档任务信息
def deserialize(params)
def deserialize(params) @Cpu = params['Cpu'] @Memory = params['Memory'] @StorageLimit = params['StorageLimit'] @OriginalClusterId = params['OriginalClusterId'] @OriginalClusterName = params['OriginalClusterName'] @RollbackStrategy = params['RollbackStrategy'] @SnapshotTime = params['SnapshotTime'] @MinCpu = params['MinCpu'] @MaxCpu = params['MaxCpu'] @SnapShotId = params['SnapShotId'] unless params['RollbackDatabases'].nil? @RollbackDatabases = [] params['RollbackDatabases'].each do |i| rollbackdatabase_tmp = RollbackDatabase.new rollbackdatabase_tmp.deserialize(i) @RollbackDatabases << rollbackdatabase_tmp end end unless params['RollbackTables'].nil? @RollbackTables = [] params['RollbackTables'].each do |i| rollbacktable_tmp = RollbackTable.new rollbacktable_tmp.deserialize(i) @RollbackTables << rollbacktable_tmp end end @BackupFileName = params['BackupFileName'] unless params['RollbackProcess'].nil? @RollbackProcess = RollbackProcessInfo.new @RollbackProcess.deserialize(params['RollbackProcess']) end end
def initialize(cpu=nil, memory=nil, storagelimit=nil, originalclusterid=nil, originalclustername=nil, rollbackstrategy=nil, snapshottime=nil, mincpu=nil, maxcpu=nil, snapshotid=nil, rollbackdatabases=nil, rollbacktables=nil, backupfilename=nil, rollbackprocess=nil)
def initialize(cpu=nil, memory=nil, storagelimit=nil, originalclusterid=nil, originalclustername=nil, rollbackstrategy=nil, snapshottime=nil, mincpu=nil, maxcpu=nil, snapshotid=nil, rollbackdatabases=nil, rollbacktables=nil, backupfilename=nil, rollbackprocess=nil) @Cpu = cpu @Memory = memory @StorageLimit = storagelimit @OriginalClusterId = originalclusterid @OriginalClusterName = originalclustername @RollbackStrategy = rollbackstrategy @SnapshotTime = snapshottime @MinCpu = mincpu @MaxCpu = maxcpu @SnapShotId = snapshotid @RollbackDatabases = rollbackdatabases @RollbackTables = rollbacktables @BackupFileName = backupfilename @RollbackProcess = rollbackprocess end