diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2016-06-19 21:15:50 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2016-06-19 21:15:50 +0200 |
commit | 79feb87bd98caac008da2337c01fd7e3624d37f6 (patch) | |
tree | 2797e167205203807daca1fc7cd00a286add97a5 /gitlab/objects.py | |
parent | dbad3bd007aaa0e4a19a9f3bc87924018f311290 (diff) | |
download | gitlab-79feb87bd98caac008da2337c01fd7e3624d37f6.tar.gz |
add support for namespaces
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r-- | gitlab/objects.py | 13 |
1 files changed, 13 insertions, 0 deletions
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"} |