summaryrefslogtreecommitdiff
path: root/gitlab/objects.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2016-07-16 17:18:53 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2016-07-16 17:18:53 +0200
commit24578231fabf79659ed5c8277a7a9f2af856cac9 (patch)
tree9a41254dd3f6e92f2269bd34c006e7190524c0f2 /gitlab/objects.py
parent0be4761961cf145cf66a456d910596aa32912492 (diff)
downloadgitlab-24578231fabf79659ed5c8277a7a9f2af856cac9.tar.gz
Project: add VISIBILITY_* constants
They should be there instead of having them in the Group class. Variables in Group are keeped for compatibility.
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r--gitlab/objects.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py
index 1827595..6f2fac0 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -1580,6 +1580,10 @@ class Project(GitlabObject):
('variables', ProjectVariableManager, [('project_id', 'id')]),
]
+ VISIBILITY_PRIVATE = 0
+ VISIBILITY_INTERNAL = 10
+ VISIBILITY_PUBLIC = 20
+
def Branch(self, id=None, **kwargs):
warnings.warn("`Branch` is deprecated, use `branches` instead",
DeprecationWarning)