Skip to content

Commit 6504adc

Browse files
algolia-botmillotp
andcommitted
fix(specs): filter run list by type (generated)
algolia/api-clients-automation#3577 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent d8d8af3 commit 6504adc

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

algoliasearch/ingestion/client.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
from algoliasearch.ingestion.models.run_source_payload import RunSourcePayload
8181
from algoliasearch.ingestion.models.run_source_response import RunSourceResponse
8282
from algoliasearch.ingestion.models.run_status import RunStatus
83+
from algoliasearch.ingestion.models.run_type import RunType
8384
from algoliasearch.ingestion.models.sort_keys import SortKeys
8485
from algoliasearch.ingestion.models.source import Source
8586
from algoliasearch.ingestion.models.source_create import SourceCreate
@@ -2532,6 +2533,10 @@ async def list_runs_with_http_info(
25322533
Optional[List[RunStatus]],
25332534
Field(description="Run status for filtering the list of task runs."),
25342535
] = None,
2536+
type: Annotated[
2537+
Optional[List[RunType]],
2538+
Field(description="Run type for filtering the list of task runs."),
2539+
] = None,
25352540
task_id: Annotated[
25362541
Optional[StrictStr],
25372542
Field(description="Task ID for filtering the list of task runs."),
@@ -2572,6 +2577,8 @@ async def list_runs_with_http_info(
25722577
:type page: int
25732578
:param status: Run status for filtering the list of task runs.
25742579
:type status: List[RunStatus]
2580+
:param type: Run type for filtering the list of task runs.
2581+
:type type: List[RunType]
25752582
:param task_id: Task ID for filtering the list of task runs.
25762583
:type task_id: str
25772584
:param sort: Property by which to sort the list of task runs.
@@ -2594,6 +2601,8 @@ async def list_runs_with_http_info(
25942601
_query_parameters.append(("page", page))
25952602
if status is not None:
25962603
_query_parameters.append(("status", status))
2604+
if type is not None:
2605+
_query_parameters.append(("type", type))
25972606
if task_id is not None:
25982607
_query_parameters.append(("taskID", task_id))
25992608
if sort is not None:
@@ -2629,6 +2638,10 @@ async def list_runs(
26292638
Optional[List[RunStatus]],
26302639
Field(description="Run status for filtering the list of task runs."),
26312640
] = None,
2641+
type: Annotated[
2642+
Optional[List[RunType]],
2643+
Field(description="Run type for filtering the list of task runs."),
2644+
] = None,
26322645
task_id: Annotated[
26332646
Optional[StrictStr],
26342647
Field(description="Task ID for filtering the list of task runs."),
@@ -2669,6 +2682,8 @@ async def list_runs(
26692682
:type page: int
26702683
:param status: Run status for filtering the list of task runs.
26712684
:type status: List[RunStatus]
2685+
:param type: Run type for filtering the list of task runs.
2686+
:type type: List[RunType]
26722687
:param task_id: Task ID for filtering the list of task runs.
26732688
:type task_id: str
26742689
:param sort: Property by which to sort the list of task runs.
@@ -2687,6 +2702,7 @@ async def list_runs(
26872702
items_per_page,
26882703
page,
26892704
status,
2705+
type,
26902706
task_id,
26912707
sort,
26922708
order,

algoliasearch/ingestion/models/run_type.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ class RunType(str, Enum):
2222
REINDEX = "reindex"
2323
UPDATE = "update"
2424
DISCOVER = "discover"
25+
VALIDATE = "validate"
26+
PUSH = "push"
2527

2628
@classmethod
2729
def from_json(cls, json_str: str) -> Self:

0 commit comments

Comments
 (0)