File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change 22GitLab API:
33https://docs.gitlab.com/ee/api/audit_events.html
44"""
5- import warnings
6-
75from gitlab .base import RESTManager , RESTObject
86from gitlab .mixins import RetrieveMixin
97
@@ -43,29 +41,13 @@ class GroupAuditEventManager(RetrieveMixin, RESTManager):
4341class ProjectAuditEvent (RESTObject ):
4442 _id_attr = "id"
4543
46- def __init_subclass__ (self ):
47- warnings .warn (
48- "This class has been renamed to ProjectAuditEvent "
49- "and will be removed in a future release." ,
50- DeprecationWarning ,
51- 2 ,
52- )
53-
5444
5545class ProjectAuditEventManager (RetrieveMixin , RESTManager ):
5646 _path = "/projects/%(project_id)s/audit_events"
5747 _obj_cls = ProjectAuditEvent
5848 _from_parent_attrs = {"project_id" : "id" }
5949 _list_filters = ("created_after" , "created_before" )
6050
61- def __init_subclass__ (self ):
62- warnings .warn (
63- "This class has been renamed to ProjectAuditEventManager "
64- "and will be removed in a future release." ,
65- DeprecationWarning ,
66- 2 ,
67- )
68-
6951
7052class ProjectAudit (ProjectAuditEvent ):
7153 pass
You can’t perform that action at this time.
0 commit comments