diff options
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r-- | gitlab/objects.py | 5 |
1 files changed, 5 insertions, 0 deletions
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) |