#NEWLINE# def api_representation( self ) : #NEWLINE# #INDENT# '\n        Gets a dict representing this resource which can be returned in an API response.\n        :rtype: dict [str, mixed]\n        ' #NEWLINE# executors_representation = [ executor . api_representation ( ) for executor in self . executors_by_id . values ( ) ] #NEWLINE# return { #NEWLINE# #INDENT# 'is_alive' : self . is_alive , #NEWLINE# 'master_url' : self . _master_url , #NEWLINE# 'current_build_id' : self . _current_build_id , #NEWLINE# 'slave_id' : self . _slave_id , #NEWLINE# 'executors' : executors_representation , #NEWLINE# 'session_id' : SessionId . get ( ) , #NEWLINE# #UNINDENT# }