<s> import time <EOL> from webob import exc <EOL> from nova . api . openstack import wsgi <EOL> def _translate_keys ( inst ) : <EOL> """<STR_LIT>""" <EOL> return dict ( backupSchedule = inst ) <EOL> class Controller ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self ) : <EOL> pass <EOL> def index ( self , req , server_id , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> raise exc . HTTPNotImplemented ( ) <EOL> def show ( self , req , server_id , id , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> raise exc . HTTPNotImplemented ( ) <EOL> def create ( self , req , server_id , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> raise exc . HTTPNotImplemented ( ) <EOL> def delete ( self , req , server_id , id , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> raise exc . HTTPNotImplemented ( ) <EOL> def create_resource ( ) : <EOL> metadata = { <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT>' : [ ] , <EOL> } , <EOL> } <EOL> body_serializers = { <EOL> '<STR_LIT>' : wsgi . XMLDictSerializer ( xmlns = wsgi . XMLNS_V10 , <EOL> metadata = metadata ) , <EOL> } <EOL> serializer = wsgi . ResponseSerializer ( body_serializers ) <EOL> return wsgi . Resource ( Controller ( ) , serializer = serializer ) </s>
