class TencentCloud::Sqlserver::V20180328::CreateMigrationRequest
CreateMigration请求参数结构体
def deserialize(params)
def deserialize(params) @MigrateName = params['MigrateName'] @MigrateType = params['MigrateType'] @SourceType = params['SourceType'] unless params['Source'].nil? @Source = MigrateSource.new @Source.deserialize(params['Source']) end unless params['Target'].nil? @Target = MigrateTarget.new @Target.deserialize(params['Target']) end unless params['MigrateDBSet'].nil? @MigrateDBSet = [] params['MigrateDBSet'].each do |i| migratedb_tmp = MigrateDB.new migratedb_tmp.deserialize(i) @MigrateDBSet << migratedb_tmp end end unless params['RenameRestore'].nil? @RenameRestore = [] params['RenameRestore'].each do |i| renamerestoredatabase_tmp = RenameRestoreDatabase.new renamerestoredatabase_tmp.deserialize(i) @RenameRestore << renamerestoredatabase_tmp end end end
def initialize(migratename=nil, migratetype=nil, sourcetype=nil, source=nil, target=nil, migratedbset=nil, renamerestore=nil)
def initialize(migratename=nil, migratetype=nil, sourcetype=nil, source=nil, target=nil, migratedbset=nil, renamerestore=nil) @MigrateName = migratename @MigrateType = migratetype @SourceType = sourcetype @Source = source @Target = target @MigrateDBSet = migratedbset @RenameRestore = renamerestore end