diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2016-07-16 17:18:53 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2016-07-16 17:18:53 +0200 |
commit | 24578231fabf79659ed5c8277a7a9f2af856cac9 (patch) | |
tree | 9a41254dd3f6e92f2269bd34c006e7190524c0f2 /gitlab/objects.py | |
parent | 0be4761961cf145cf66a456d910596aa32912492 (diff) | |
download | gitlab-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.py | 4 |
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) |