51
51
"GroupProjectManager" ,
52
52
"Project" ,
53
53
"ProjectManager" ,
54
+ "ProjectAudit" ,
55
+ "ProjectAuditManager" ,
54
56
"ProjectFork" ,
55
57
"ProjectForkManager" ,
56
58
"ProjectRemoteMirror" ,
@@ -85,6 +87,17 @@ class GroupProjectManager(ListMixin, RESTManager):
85
87
)
86
88
87
89
90
+ class ProjectAudit (RESTObject ):
91
+ _id_attr = "id"
92
+
93
+
94
+ class ProjectAuditManager (ListMixin , RESTManager ):
95
+ _path = "/projects/%(project_id)s/audit_events"
96
+ _obj_cls = ProjectAudit
97
+ _from_parent_attrs = {"project_id" : "id" }
98
+ _list_filters = ("created_after" , "created_before" )
99
+
100
+
88
101
class Project (SaveMixin , ObjectDeleteMixin , RESTObject ):
89
102
_short_print_attr = "path"
90
103
_managers = (
@@ -100,6 +113,7 @@ class Project(SaveMixin, ObjectDeleteMixin, RESTObject):
100
113
("deployments" , "ProjectDeploymentManager" ),
101
114
("environments" , "ProjectEnvironmentManager" ),
102
115
("events" , "ProjectEventManager" ),
116
+ ("audit_events" , "ProjectAuditManager" ),
103
117
("exports" , "ProjectExportManager" ),
104
118
("files" , "ProjectFileManager" ),
105
119
("forks" , "ProjectForkManager" ),
0 commit comments