def list_roles(self): url = "roles" roles = [] for r in self._api._get(url): roles.append(Role(**r)) return roles
def get_role(self, role_id): url = "roles/%s" % role_id return Role(**self._api._get(url))
def get_role(self, role_id): url = 'roles/%s' % role_id return Role(**self._api._get(url)['roles'])