Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit61bc24f

Browse files
author
Gauvain Pocentek
committed
Add missing group creation parameters
description and visibility_level are optional parameters for groupcreation.
1 parent9a9a4c4 commit61bc24f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎gitlab/objects.py

Lines changed: 5 additions & 0 deletions
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
defMember(self,id=None,**kwargs):
677682
warnings.warn("`Member` is deprecated, use `members` instead",
678683
DeprecationWarning)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp