#NEWLINE# def api_serialize_impl( self , withClean = False ) : #NEWLINE# #INDENT# Util . validate_type ( withClean , 'bool' ) #NEWLINE# ret = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( withClean or self . n_id ) : #NEWLINE# #INDENT# Util . set_by_path ( ret , 'ID' , self . m_id ) #NEWLINE# #UNINDENT# if ( withClean or self . n_name ) : #NEWLINE# #INDENT# Util . set_by_path ( ret , 'Name' , self . m_name ) #NEWLINE# #UNINDENT# if ( withClean or self . n_cpu ) : #NEWLINE# #INDENT# Util . set_by_path ( ret , 'CPU' , self . m_cpu ) #NEWLINE# #UNINDENT# if ( withClean or self . n_memory_mib ) : #NEWLINE# #INDENT# Util . set_by_path ( ret , 'MemoryMB' , self . m_memory_mib ) #NEWLINE# #UNINDENT# if ( withClean or self . n_service_class ) : #NEWLINE# #INDENT# Util . set_by_path ( ret , 'ServiceClass' , self . m_service_class ) #NEWLINE# #UNINDENT# return ret