Skip to content

Commit

Permalink
feat(usergroup): supports user group role in projects
Browse files Browse the repository at this point in the history
  • Loading branch information
pallabpain committed Sep 14, 2023
1 parent 723ecdd commit 4077051
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rapyuta_io/clients/user_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def __int__(self, guid=None, name=None, description=None,
self.members = members
self.admins = admins
self.projects = projects
self.role_in_projects = []

@staticmethod
def validate(self, guid, name, description, creator, members, admins, projects):
Expand All @@ -58,7 +59,8 @@ def get_serialize_map(self):
'creator': 'creator',
'members': 'members',
'admins': 'admins',
'projects': 'projects'
'projects': 'projects',
'userGroupRoleInProjects': 'role_in_projects',
}

def get_deserialize_map(self):
Expand All @@ -69,5 +71,6 @@ def get_deserialize_map(self):
'creator': 'creator',
'members': list_field('members', User),
'admins': list_field('admins', User),
'projects': list_field('projects', Project)
'projects': list_field('projects', Project),
'role_in_projects': 'userGroupRoleInProjects'
}

0 comments on commit 4077051

Please sign in to comment.