#NEWLINE# @ staticmethod #NEWLINE# def convert_with_links( name , hosts ) : #NEWLINE# #INDENT# driver = Driver ( ) #NEWLINE# driver . name = name #NEWLINE# driver . hosts = hosts #NEWLINE# driver . links = [ link . Link . make_link ( 'self' , pecan . request . public_url , 'drivers' , name ) , link . Link . make_link ( 'bookmark' , pecan . request . public_url , 'drivers' , name , bookmark = True ) ] #NEWLINE# if api_utils . allow_links_node_states_and_driver_properties ( ) : #NEWLINE# #INDENT# driver . properties = [ link . Link . make_link ( 'self' , pecan . request . public_url , 'drivers' , ( name + '/properties' ) ) , link . Link . make_link ( 'bookmark' , pecan . request . public_url , 'drivers' , ( name + '/properties' ) , bookmark = True ) ] #NEWLINE# #UNINDENT# return driver