#NEWLINE# @ classmethod #NEWLINE# def updateResourceWithParams( cls , resource , params ) : #NEWLINE# #INDENT# resource = bunch . bunchify ( key ) #NEWLINE# for ( key , val ) in params . iteritems ( ) : #NEWLINE# #INDENT# if ( val is not None ) : #NEWLINE# #INDENT# resource [ key ] = val #NEWLINE# #UNINDENT# #UNINDENT# return resource