summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects/projects.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/v4/objects/projects.py')
-rw-r--r--gitlab/v4/objects/projects.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/gitlab/v4/objects/projects.py b/gitlab/v4/objects/projects.py
index b008dda..e46e53d 100644
--- a/gitlab/v4/objects/projects.py
+++ b/gitlab/v4/objects/projects.py
@@ -103,6 +103,8 @@ __all__ = [
"ProjectRemoteMirrorManager",
"ProjectStorage",
"ProjectStorageManager",
+ "SharedProject",
+ "SharedProjectManager",
]
@@ -1081,3 +1083,26 @@ class ProjectStorageManager(GetWithoutIdMixin, RESTManager):
def get(self, **kwargs: Any) -> ProjectStorage:
return cast(ProjectStorage, super().get(**kwargs))
+
+
+class SharedProject(RESTObject):
+ pass
+
+
+class SharedProjectManager(ListMixin, RESTManager):
+ _path = "/groups/{group_id}/projects/shared"
+ _obj_cls = SharedProject
+ _from_parent_attrs = {"group_id": "id"}
+ _list_filters = (
+ "archived",
+ "visibility",
+ "order_by",
+ "sort",
+ "search",
+ "simple",
+ "starred",
+ "with_issues_enabled",
+ "with_merge_requests_enabled",
+ "min_access_level",
+ "with_custom_attributes",
+ )