File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,22 +22,20 @@ async def list_templates(
2222 workspace : str ,
2323 limit : int = 100 ,
2424 pipeline_type : PipelineType | str | None = None ,
25- after : str | None = None ,
25+ # after: str | None = None TODO
2626) -> PaginatedResponse [PipelineTemplate ] | str :
2727 """Retrieves a list of all available pipeline and indexing templates.
2828
2929 :param client: The async client for API requests.
3030 :param workspace: The workspace to list templates from.
3131 :param limit: Maximum number of templates to return (default: 100).
3232 :param pipeline_type: The type of pipeline to return.
33- :param after: The cursor to fetch the next page of results.
34- If there are more results to fetch, the cursor will appear as `next_cursor` on the response.
3533
3634 :returns: List of pipeline templates or error message.
3735 """
3836 try :
3937 return await client .pipeline_templates (workspace = workspace ).list (
40- limit = limit , filter = f"pipeline_type eq '{ pipeline_type } '" if pipeline_type else None , after = after
38+ limit = limit , filter = f"pipeline_type eq '{ pipeline_type } '" if pipeline_type else None , # TODO: after=after
4139 )
4240 except ResourceNotFoundError :
4341 return f"There is no workspace named '{ workspace } '. Did you mean to configure it?"
You can’t perform that action at this time.
0 commit comments