Skip to content

iter_list_workflows async

iter_list_workflows(
    *,
    config_overrides: Optional[AsyncOmicsClientConfig] = None,
    type: Optional[WorkflowType] = None,
    name: Optional[WorkflowName] = None,
    starting_token: Optional[WorkflowListToken] = None,
    max_results: Optional[int] = None,
) -> AsyncIterator[WorkflowListItem]
Source code in docs_src/capo_omics/_services/async_omics.py
async def iter_list_workflows(
    self,
    *,
    config_overrides: Optional[AsyncOmicsClientConfig] = None,
    type: Optional["capo_omics.types.workflow_type.WorkflowType"] = None,
    name: Optional["capo_omics.types.workflow_name.WorkflowName"] = None,
    starting_token: Optional[
        "capo_omics.types.workflow_list_token.WorkflowListToken"
    ] = None,
    max_results: Optional[int] = None,
) -> "AsyncIterator[capo_omics.types.workflow_list_item.WorkflowListItem]":
    _token = starting_token
    while True:
        _response = await self.list_workflows(
            config_overrides=config_overrides,
            type=type,
            name=name,
            starting_token=_token,
            max_results=max_results,
        )
        _page = _resolve_path(_response, ("items",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break