summaryrefslogtreecommitdiff
path: root/gitlab/objects.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r--gitlab/objects.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py
index 2ceb37f..15799e3 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -717,6 +717,19 @@ class GroupManager(BaseManager):
url = '/groups?search=' + query
return self.gitlab._raw_list(url, self.obj_cls, **kwargs)
+ def list_projects(self, gid, **kwargs):
+ """List all projects in a group
+
+ Attrs:
+ gid (int): ID of the group
+
+ Raises:
+ GitlabConnectionError: if the server cannot be reached.
+ GitlabListError: If the server fails to perform the request.
+ """
+ url = '/groups/%d/projects' % gid
+ return self.gitlab._raw_list(url, self.obj_cls, **kwargs)
+
class Hook(GitlabObject):
_url = '/hooks'