Skip to content

iter_list_revision_assets async

iter_list_revision_assets(
    data_set_id: Id,
    revision_id: Id,
    *,
    config_overrides: Optional[AsyncDataExchangeClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[__string] = None,
) -> AsyncIterator[AssetEntry]
Source code in docs_src/capo_dataexchange/_services/async_data_exchange.py
async def iter_list_revision_assets(
    self,
    data_set_id: "capo_dataexchange.types.id.Id",
    revision_id: "capo_dataexchange.types.id.Id",
    *,
    config_overrides: Optional[AsyncDataExchangeClientConfig] = None,
    max_results: Optional["capo_dataexchange.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_dataexchange.types.__string.__string"] = None,
) -> "AsyncIterator[capo_dataexchange.types.asset_entry.AssetEntry]":
    _token = next_token
    while True:
        _response = await self.list_revision_assets(
            data_set_id,
            revision_id,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("assets",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break