summaryrefslogtreecommitdiff
path: root/gitlab/objects.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r--gitlab/objects.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py
index 4f5a394..ea40b6f 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -870,7 +870,9 @@ class GroupMember(GitlabObject):
canGet = 'from_list'
requiredUrlAttrs = ['group_id']
requiredCreateAttrs = ['access_level', 'user_id']
+ optionalCreateAttrs = ['expires_at']
requiredUpdateAttrs = ['access_level']
+ optionalCreateAttrs = ['expires_at']
shortPrintAttr = 'username'
def _update(self, **kwargs):
@@ -1530,7 +1532,9 @@ class ProjectMember(GitlabObject):
_url = '/projects/%(project_id)s/members'
requiredUrlAttrs = ['project_id']
requiredCreateAttrs = ['access_level', 'user_id']
+ optionalCreateAttrs = ['expires_at']
requiredUpdateAttrs = ['access_level']
+ optionalCreateAttrs = ['expires_at']
shortPrintAttr = 'username'