Method
search_groups
(
self,
*,
# Pagination required as of August 30, 2019.
count: int,
start_index: int,
filter: Optional[str] = None,
)
Source from the content-addressed store, hash-verified
| 178 | # ------------------------- |
| 179 | |
| 180 | async def search_groups( |
| 181 | self, |
| 182 | *, |
| 183 | # Pagination required as of August 30, 2019. |
| 184 | count: int, |
| 185 | start_index: int, |
| 186 | filter: Optional[str] = None, |
| 187 | ) -> SearchGroupsResponse: |
| 188 | return SearchGroupsResponse( |
| 189 | await self.api_call( |
| 190 | http_verb="GET", |
| 191 | path="Groups", |
| 192 | query_params={ |
| 193 | "filter": filter, |
| 194 | "count": count, |
| 195 | "startIndex": start_index, |
| 196 | }, |
| 197 | ) |
| 198 | ) |
| 199 | |
| 200 | async def read_group(self, id: str) -> ReadGroupResponse: |
| 201 | return ReadGroupResponse(await self.api_call(http_verb="GET", path=f"Groups/{quote(id)}")) |