@objects.objectify(objects.event_suppression)
def event_suppression_get(self, id):
    query = model_query(models.EventSuppression)
    if uuidutils.is_uuid_like(id):
        query = query.filter_by(uuid=id)
    else:
        query = query.filter_by(id=id)
    try:
        result = query.one()
    except NoResultFound:
        raise exceptions.InvalidParameterValue(err=('No event suppression entry found for %s' % id))
    return result
@objects.objectify(objects.event_suppression)
def event_suppression_get(self, id):
    query = model_query(models.EventSuppression)
    if uuidutils.is_uuid_like(id):
        query = query.filter_by(uuid=id)
    else:
        query = query.filter_by(id=id)
    try:
        result = query.one()
    except NoResultFound:
        raise exceptions.InvalidParameterValue(err=('No event suppression entry found for %s' % id))
    return result