From 79feb87bd98caac008da2337c01fd7e3624d37f6 Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Sun, 19 Jun 2016 21:15:50 +0200 Subject: add support for namespaces --- gitlab/objects.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gitlab/objects.py') diff --git a/gitlab/objects.py b/gitlab/objects.py index 2ea875b..96fffde 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -782,6 +782,19 @@ class LicenseManager(BaseManager): obj_cls = License +class Namespace(GitlabObject): + _url = '/namespaces' + canGet = 'from_list' + canUpdate = False + canDelete = False + canCreate = False + optionalListAttrs = ['search'] + + +class NamespaceManager(BaseManager): + obj_cls = Namespace + + class ProjectBranch(GitlabObject): _url = '/projects/%(project_id)s/repository/branches' _constructorTypes = {'author': 'User', "committer": "User"} -- cgit v1.2.1