<s> """<STR_LIT>""" <EOL> import pecan <EOL> from pecan import rest <EOL> from wsme import types as wtypes <EOL> import wsmeext . pecan as wsme_pecan <EOL> from ironic_python_agent . api . controllers . v1 import base <EOL> from ironic_python_agent . api . controllers . v1 import command <EOL> from ironic_python_agent . api . controllers . v1 import link <EOL> from ironic_python_agent . api . controllers . v1 import status <EOL> class MediaType ( base . APIBase ) : <EOL> """<STR_LIT>""" <EOL> base = wtypes . text <EOL> type = wtypes . text <EOL> def __init__ ( self , base , type ) : <EOL> self . base = base <EOL> self . type = type <EOL> class V1 ( base . APIBase ) : <EOL> """<STR_LIT>""" <EOL> id = wtypes . text <EOL> "<STR_LIT>" <EOL> media_types = [ MediaType ] <EOL> "<STR_LIT>" <EOL> links = [ link . Link ] <EOL> "<STR_LIT>" <EOL> commands = [ link . Link ] <EOL> "<STR_LIT>" <EOL> status = [ link . Link ] <EOL> "<STR_LIT>" <EOL> @ classmethod <EOL> def convert ( self ) : <EOL> v1 = V1 ( ) <EOL> v1 . id = "<STR_LIT>" <EOL> v1 . links = [ <EOL> link . Link . make_link ( '<STR_LIT>' , <EOL> pecan . request . host_url , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> bookmark = True ) , <EOL> link . Link . make_link ( '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> bookmark = True , <EOL> type = '<STR_LIT>' ) <EOL> ] <EOL> v1 . commands = [ <EOL> link . Link . make_link ( '<STR_LIT>' , <EOL> pecan . request . host_url , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ) , <EOL> link . Link . make_link ( '<STR_LIT>' , <EOL> pecan . request . host_url , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> bookmark = True ) <EOL> ] <EOL> v1 . status = [ <EOL> link . Link . make_link ( '<STR_LIT>' , <EOL> pecan . request . host_url , <EOL> '<STR_LIT:status>' , <EOL> '<STR_LIT>' ) , <EOL> link . Link . make_link ( '<STR_LIT>' , <EOL> pecan . request . host_url , <EOL> '<STR_LIT:status>' , <EOL> '<STR_LIT>' , <EOL> bookmark = True ) <EOL> ] <EOL> v1 . media_types = [ MediaType ( '<STR_LIT:application/json>' , <EOL> ( '<STR_LIT>' <EOL> '<STR_LIT>' ) ) ] <EOL> return v1 <EOL> class Controller ( rest . RestController ) : <EOL> """<STR_LIT>""" <EOL> commands = command . CommandController ( ) <EOL> status = status . StatusController ( ) <EOL> @ wsme_pecan . wsexpose ( V1 ) <EOL> def get ( self ) : <EOL> return V1 . convert ( ) <EOL> __all__ = ( Controller ) </s>
