Skip to content

iter_list_private_graph_endpoints async

iter_list_private_graph_endpoints(
    graph_identifier: GraphIdentifier,
    *,
    config_overrides: Optional[AsyncNeptuneGraphClientConfig] = None,
    next_token: Optional[PaginationToken] = None,
    max_results: Optional[MaxResults] = None,
) -> AsyncIterator[PrivateGraphEndpointSummary]
Source code in docs_src/capo_neptune_graph/_services/async_neptune_graph.py
async def iter_list_private_graph_endpoints(
    self,
    graph_identifier: "capo_neptune_graph.types.graph_identifier.GraphIdentifier",
    *,
    config_overrides: Optional[AsyncNeptuneGraphClientConfig] = None,
    next_token: Optional[
        "capo_neptune_graph.types.pagination_token.PaginationToken"
    ] = None,
    max_results: Optional["capo_neptune_graph.types.max_results.MaxResults"] = None,
) -> "AsyncIterator[capo_neptune_graph.types.private_graph_endpoint_summary.PrivateGraphEndpointSummary]":
    _token = next_token
    while True:
        _response = await self.list_private_graph_endpoints(
            graph_identifier,
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
        )
        _page = _resolve_path(_response, ("private_graph_endpoints",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break