Skip to content

Commit

Permalink
fix(specs): filter run list by type (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3577

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Pierre Millot <[email protected]>
  • Loading branch information
algolia-bot and millotp committed Aug 27, 2024
1 parent d8d8af3 commit 6504adc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions algoliasearch/ingestion/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
from algoliasearch.ingestion.models.run_source_payload import RunSourcePayload
from algoliasearch.ingestion.models.run_source_response import RunSourceResponse
from algoliasearch.ingestion.models.run_status import RunStatus
from algoliasearch.ingestion.models.run_type import RunType
from algoliasearch.ingestion.models.sort_keys import SortKeys
from algoliasearch.ingestion.models.source import Source
from algoliasearch.ingestion.models.source_create import SourceCreate
Expand Down Expand Up @@ -2532,6 +2533,10 @@ async def list_runs_with_http_info(
Optional[List[RunStatus]],
Field(description="Run status for filtering the list of task runs."),
] = None,
type: Annotated[
Optional[List[RunType]],
Field(description="Run type for filtering the list of task runs."),
] = None,
task_id: Annotated[
Optional[StrictStr],
Field(description="Task ID for filtering the list of task runs."),
Expand Down Expand Up @@ -2572,6 +2577,8 @@ async def list_runs_with_http_info(
:type page: int
:param status: Run status for filtering the list of task runs.
:type status: List[RunStatus]
:param type: Run type for filtering the list of task runs.
:type type: List[RunType]
:param task_id: Task ID for filtering the list of task runs.
:type task_id: str
:param sort: Property by which to sort the list of task runs.
Expand All @@ -2594,6 +2601,8 @@ async def list_runs_with_http_info(
_query_parameters.append(("page", page))
if status is not None:
_query_parameters.append(("status", status))
if type is not None:
_query_parameters.append(("type", type))
if task_id is not None:
_query_parameters.append(("taskID", task_id))
if sort is not None:
Expand Down Expand Up @@ -2629,6 +2638,10 @@ async def list_runs(
Optional[List[RunStatus]],
Field(description="Run status for filtering the list of task runs."),
] = None,
type: Annotated[
Optional[List[RunType]],
Field(description="Run type for filtering the list of task runs."),
] = None,
task_id: Annotated[
Optional[StrictStr],
Field(description="Task ID for filtering the list of task runs."),
Expand Down Expand Up @@ -2669,6 +2682,8 @@ async def list_runs(
:type page: int
:param status: Run status for filtering the list of task runs.
:type status: List[RunStatus]
:param type: Run type for filtering the list of task runs.
:type type: List[RunType]
:param task_id: Task ID for filtering the list of task runs.
:type task_id: str
:param sort: Property by which to sort the list of task runs.
Expand All @@ -2687,6 +2702,7 @@ async def list_runs(
items_per_page,
page,
status,
type,
task_id,
sort,
order,
Expand Down
2 changes: 2 additions & 0 deletions algoliasearch/ingestion/models/run_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class RunType(str, Enum):
REINDEX = "reindex"
UPDATE = "update"
DISCOVER = "discover"
VALIDATE = "validate"
PUSH = "push"

@classmethod
def from_json(cls, json_str: str) -> Self:
Expand Down

0 comments on commit 6504adc

Please sign in to comment.