From 61bc24fd341e53718f8b9c06c3ac1bbcd55d2530 Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Tue, 22 Mar 2016 21:14:58 +0100 Subject: Add missing group creation parameters description and visibility_level are optional parameters for group creation. --- gitlab/objects.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gitlab/objects.py') diff --git a/gitlab/objects.py b/gitlab/objects.py index 8b9e275..2ceb37f 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -664,6 +664,7 @@ class Group(GitlabObject): canUpdate = False _constructorTypes = {'projects': 'Project'} requiredCreateAttrs = ['name', 'path'] + optionalCreateAttrs = ['description', 'visibility_level'] shortPrintAttr = 'name' managers = [('members', GroupMemberManager, [('group_id', 'id')])] @@ -673,6 +674,10 @@ class Group(GitlabObject): MASTER_ACCESS = 40 OWNER_ACCESS = 50 + VISIBILITY_PRIVATE = 0 + VISIBILITY_INTERNAL = 10 + VISIBILITY_PUBLIC = 20 + def Member(self, id=None, **kwargs): warnings.warn("`Member` is deprecated, use `members` instead", DeprecationWarning) -- cgit v1.2.1