def update_action_description(self, action_id, values): try: return self._update(models.ActionDescription, action_id, values) except exception.ResourceNotFound: raise exception.ActionDescriptionNotFound( action_id=action_id)
def _get_action_description(self, context, fieldname, value, eager): try: return self._get(context, model=models.ActionDescription, fieldname=fieldname, value=value, eager=eager) except exception.ResourceNotFound: raise exception.ActionDescriptionNotFound(action_id=value)
def soft_delete_action_description(self, action_id): try: return self._soft_delete(models.ActionDescription, action_id) except exception.ResourceNotFound: raise exception.ActionDescriptionNotFound( action_id=action_id)
def destroy_action_description(self, action_id): try: return self._destroy(models.ActionDescription, action_id) except exception.ResourceNotFound: raise exception.ActionDescriptionNotFound( action_id=action_id)