@objects.objectify(objects.event_suppression)
def event_suppression_update(self, uuid, values):
    with _session_for_write() as session:
        query = model_query(models.EventSuppression, session=session)
        query = query.filter_by(uuid=uuid)
        count = query.update(values, synchronize_session='fetch')
        if (count != 1):
            raise exceptions.NotFound(id)
        return query.one()
@objects.objectify(objects.event_suppression)
def event_suppression_update(self, uuid, values):
    with _session_for_write() as session:
        query = model_query(models.EventSuppression, session=session)
        query = query.filter_by(uuid=uuid)
        count = query.update(values, synchronize_session='fetch')
        if (count != 1):
            raise exceptions.NotFound(id)
        return query.one()