diff options
author | idanbensha <idan.b@polyrize.com> | 2019-12-02 12:51:39 +0200 |
---|---|---|
committer | idanbensha <idan.b@polyrize.com> | 2019-12-02 12:59:49 +0200 |
commit | 2534020b1832f28339ef466d6dd3edc21a521260 (patch) | |
tree | 912781596ed24b9dfcd16b0846aab70c9472f115 /gitlab/v4/objects.py | |
parent | e4cad490b9cd16aa20ea84bb4bd24a6d25b19411 (diff) | |
download | gitlab-2534020b1832f28339ef466d6dd3edc21a521260.tar.gz |
feat: add audit endpoint
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r-- | gitlab/v4/objects.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index 62e8d4a..5125ff4 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -118,6 +118,16 @@ class Event(RESTObject): _short_print_attr = "target_title" +class AuditEvent(RESTObject): + _id_attr = "id" + + +class AuditEventManager(ListMixin, RESTManager): + _path = "/audit_events" + _obj_cls = AuditEvent + _list_filters = ("created_after", "created_before", "entity_type", "entity_id") + + class EventManager(ListMixin, RESTManager): _path = "/events" _obj_cls = Event |