| 174 | |
| 175 | |
| 176 | class SearchGroupsResponse(SCIMResponse): |
| 177 | groups: List[Group] |
| 178 | |
| 179 | @property |
| 180 | def groups(self) -> List[Group]: |
| 181 | return [Group(**r) for r in self.snake_cased_body.get("resources")] |
| 182 | |
| 183 | def __init__(self, underlying: SCIMResponse): |
| 184 | self.underlying = underlying |
| 185 | self.url = underlying.url |
| 186 | self.status_code = underlying.status_code |
| 187 | self.headers = underlying.headers |
| 188 | self.raw_body = underlying.raw_body |
| 189 | self.body = underlying.body |
| 190 | self._snake_cased_body = None |
| 191 | |
| 192 | |
| 193 | class ReadGroupResponse(SCIMResponse): |
no outgoing calls
no test coverage detected