| 201 | return ReadGroupResponse(await self.api_call(http_verb="GET", path=f"Groups/{quote(id)}")) |
| 202 | |
| 203 | async def create_group(self, group: Union[Dict[str, Any], Group]) -> GroupCreateResponse: |
| 204 | return GroupCreateResponse( |
| 205 | await self.api_call( |
| 206 | http_verb="POST", |
| 207 | path="Groups", |
| 208 | body_params=group.to_dict() if isinstance(group, Group) else _to_dict_without_not_given(group), |
| 209 | ) |
| 210 | ) |
| 211 | |
| 212 | async def patch_group(self, id: str, partial_group: Union[Dict[str, Any], Group]) -> GroupPatchResponse: |
| 213 | return GroupPatchResponse( |