|
2 | 2 | GitLab API: |
3 | 3 | https://docs.gitlab.com/ee/api/audit_events.html |
4 | 4 | """ |
5 | | -importwarnings |
6 | | - |
7 | 5 | fromgitlab.baseimportRESTManager,RESTObject |
8 | 6 | fromgitlab.mixinsimportRetrieveMixin |
9 | 7 |
|
@@ -43,29 +41,13 @@ class GroupAuditEventManager(RetrieveMixin, RESTManager): |
43 | 41 | classProjectAuditEvent(RESTObject): |
44 | 42 | _id_attr="id" |
45 | 43 |
|
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 | | - |
54 | 44 |
|
55 | 45 | classProjectAuditEventManager(RetrieveMixin,RESTManager): |
56 | 46 | _path="/projects/%(project_id)s/audit_events" |
57 | 47 | _obj_cls=ProjectAuditEvent |
58 | 48 | _from_parent_attrs= {"project_id":"id"} |
59 | 49 | _list_filters= ("created_after","created_before") |
60 | 50 |
|
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 | | - |
69 | 51 |
|
70 | 52 | classProjectAudit(ProjectAuditEvent): |
71 | 53 | pass |
|