diff --git a/rapyuta_io/clients/user_group.py b/rapyuta_io/clients/user_group.py index 528c3c62..b9b9279d 100644 --- a/rapyuta_io/clients/user_group.py +++ b/rapyuta_io/clients/user_group.py @@ -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): @@ -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): @@ -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' }