Skip to content

iter_list_contact_versions async

iter_list_contact_versions(
    contact_id: Uuid,
    *,
    config_overrides: Optional[AsyncGroundStationClientConfig] = None,
    max_results: Optional[PaginationMaxResults] = None,
    next_token: Optional[PaginationToken] = None,
) -> AsyncIterator[ContactVersion]
Source code in docs_src/capo_groundstation/_services/async_ground_station.py
async def iter_list_contact_versions(
    self,
    contact_id: "capo_groundstation.types.uuid.Uuid",
    *,
    config_overrides: Optional[AsyncGroundStationClientConfig] = None,
    max_results: Optional[
        "capo_groundstation.types.pagination_max_results.PaginationMaxResults"
    ] = None,
    next_token: Optional[
        "capo_groundstation.types.pagination_token.PaginationToken"
    ] = None,
) -> "AsyncIterator[capo_groundstation.types.contact_version.ContactVersion]":
    _token = next_token
    while True:
        _response = await self.list_contact_versions(
            contact_id,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("contact_versions_list",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break