#NEWLINE# def update_association( self , association , changes ) : #NEWLINE# #INDENT# 'Updates a association.\n\n        ' #NEWLINE# check_resource_type ( association , ASSOCIATION_PATH , message = 'An association id is needed.' ) #NEWLINE# association_id = get_association_id ( association ) #NEWLINE# if association_id : #NEWLINE# #INDENT# body = json . dumps ( changes ) #NEWLINE# return self . _update ( ( '%s%s' % ( self . url , association_id ) ) , body )