Skip to content

Commit

Permalink
{Project,Group}Member: support expires_at attribute
Browse files Browse the repository at this point in the history
Fixes #224
  • Loading branch information
Gauvain Pocentek committed Feb 21, 2017
1 parent 41ca449 commit a273a17
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gitlab/objects.py
Expand Up @@ -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):
Expand Down Expand Up @@ -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'


Expand Down

0 comments on commit a273a17

Please sign in to comment.