File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -870,7 +870,9 @@ class GroupMember(GitlabObject):
870
870
canGet = 'from_list'
871
871
requiredUrlAttrs = ['group_id' ]
872
872
requiredCreateAttrs = ['access_level' , 'user_id' ]
873
+ optionalCreateAttrs = ['expires_at' ]
873
874
requiredUpdateAttrs = ['access_level' ]
875
+ optionalCreateAttrs = ['expires_at' ]
874
876
shortPrintAttr = 'username'
875
877
876
878
def _update (self , ** kwargs ):
@@ -1530,7 +1532,9 @@ class ProjectMember(GitlabObject):
1530
1532
_url = '/projects/%(project_id)s/members'
1531
1533
requiredUrlAttrs = ['project_id' ]
1532
1534
requiredCreateAttrs = ['access_level' , 'user_id' ]
1535
+ optionalCreateAttrs = ['expires_at' ]
1533
1536
requiredUpdateAttrs = ['access_level' ]
1537
+ optionalCreateAttrs = ['expires_at' ]
1534
1538
shortPrintAttr = 'username'
1535
1539
1536
1540
You can’t perform that action at this time.
0 commit comments