Skip to content

Commit 61bc24f

Browse files
author
Gauvain Pocentek
committed
Add missing group creation parameters
description and visibility_level are optional parameters for group creation.
1 parent 9a9a4c4 commit 61bc24f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

gitlab/objects.py

+5
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ class Group(GitlabObject):
664664
canUpdate = False
665665
_constructorTypes = {'projects': 'Project'}
666666
requiredCreateAttrs = ['name', 'path']
667+
optionalCreateAttrs = ['description', 'visibility_level']
667668
shortPrintAttr = 'name'
668669
managers = [('members', GroupMemberManager, [('group_id', 'id')])]
669670

@@ -673,6 +674,10 @@ class Group(GitlabObject):
673674
MASTER_ACCESS = 40
674675
OWNER_ACCESS = 50
675676

677+
VISIBILITY_PRIVATE = 0
678+
VISIBILITY_INTERNAL = 10
679+
VISIBILITY_PUBLIC = 20
680+
676681
def Member(self, id=None, **kwargs):
677682
warnings.warn("`Member` is deprecated, use `members` instead",
678683
DeprecationWarning)

0 commit comments

Comments
 (0)