| 107 | |
| 108 | |
| 109 | class UserCreateResponse(SCIMResponse): |
| 110 | user: User |
| 111 | |
| 112 | @property |
| 113 | def user(self) -> User: |
| 114 | return User(**self.snake_cased_body) |
| 115 | |
| 116 | def __init__(self, underlying: SCIMResponse): |
| 117 | self.underlying = underlying |
| 118 | self.url = underlying.url |
| 119 | self.status_code = underlying.status_code |
| 120 | self.headers = underlying.headers |
| 121 | self.raw_body = underlying.raw_body |
| 122 | self.body = underlying.body |
| 123 | self._snake_cased_body = None |
| 124 | |
| 125 | |
| 126 | class UserPatchResponse(SCIMResponse): |
no outgoing calls
no test coverage detected