<s> from novaclient import api_versions <EOL> from novaclient import base <EOL> class ServerMigration ( base . Resource ) : <EOL> def __repr__ ( self ) : <EOL> return "<STR_LIT>" <EOL> class ServerMigrationsManager ( base . ManagerWithFind ) : <EOL> resource_class = ServerMigration <EOL> @ api_versions . wraps ( "<STR_LIT>" ) <EOL> def live_migrate_force_complete ( self , server , migration ) : <EOL> """<STR_LIT>""" <EOL> body = { '<STR_LIT>' : None } <EOL> resp , body = self . api . client . post ( <EOL> '<STR_LIT>' % ( base . getid ( server ) , <EOL> base . getid ( migration ) ) , <EOL> body = body ) <EOL> return self . convert_into_with_meta ( body , resp ) <EOL> @ api_versions . wraps ( "<STR_LIT>" ) <EOL> def get ( self , server , migration ) : <EOL> """<STR_LIT>""" <EOL> return self . _get ( '<STR_LIT>' % <EOL> ( base . getid ( server ) , base . getid ( migration ) ) , <EOL> '<STR_LIT>' ) <EOL> @ api_versions . wraps ( "<STR_LIT>" ) <EOL> def list ( self , server ) : <EOL> """<STR_LIT>""" <EOL> return self . _list ( <EOL> '<STR_LIT>' % ( base . getid ( server ) ) , "<STR_LIT>" ) <EOL> @ api_versions . wraps ( "<STR_LIT>" ) <EOL> def live_migration_abort ( self , server , migration ) : <EOL> """<STR_LIT>""" <EOL> return self . _delete ( <EOL> '<STR_LIT>' % ( base . getid ( server ) , <EOL> base . getid ( migration ) ) ) </s>
