#NEWLINE# def generate( self , generate_for_resource = None ) : #NEWLINE# #INDENT# if generate_for_resource : #NEWLINE# #INDENT# self . resource_name = self #NEWLINE# #UNINDENT# return dumps ( self . visit ( self . spec ) )