Skip to content

iter_list_schemas async

iter_list_schemas(
    registry_name: __string,
    *,
    config_overrides: Optional[AsyncschemasClientConfig] = None,
    limit: Optional[__integer] = None,
    next_token: Optional[__string] = None,
    schema_name_prefix: Optional[__string] = None,
) -> AsyncIterator[SchemaSummary]
Source code in docs_src/capo_schemas/_services/async_schemas.py
async def iter_list_schemas(
    self,
    registry_name: "capo_schemas.types.__string.__string",
    *,
    config_overrides: Optional[AsyncschemasClientConfig] = None,
    limit: Optional["capo_schemas.types.__integer.__integer"] = None,
    next_token: Optional["capo_schemas.types.__string.__string"] = None,
    schema_name_prefix: Optional["capo_schemas.types.__string.__string"] = None,
) -> "AsyncIterator[capo_schemas.types.schema_summary.SchemaSummary]":
    _token = next_token
    while True:
        _response = await self.list_schemas(
            registry_name,
            config_overrides=config_overrides,
            limit=limit,
            next_token=_token,
            schema_name_prefix=schema_name_prefix,
        )
        _page = _resolve_path(_response, ("schemas",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break