summaryrefslogtreecommitdiff
path: root/gitlab/objects.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r--gitlab/objects.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py
index 367543b..51df97c 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"}
@@ -1308,6 +1321,7 @@ class ProjectMilestone(GitlabObject):
_url = '/projects/%(project_id)s/milestones'
canDelete = False
requiredUrlAttrs = ['project_id']
+ optionalListAttrs = ['iid', 'state']
requiredCreateAttrs = ['title']
optionalCreateAttrs = ['description', 'due_date', 'state_event']
optionalUpdateAttrs = requiredCreateAttrs + optionalCreateAttrs