Skip to content

Commit

Permalink
Auto-generated API code
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticmachine committed Jun 7, 2024
1 parent 8d381ac commit 9c18001
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions elasticsearch/_async/client/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ async def delete(
str,
]
] = None,
dry_run: t.Optional[bool] = None,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
force: t.Optional[bool] = None,
human: t.Optional[bool] = None,
pretty: t.Optional[bool] = None,
) -> ObjectApiResponse[t.Any]:
Expand All @@ -48,6 +50,10 @@ async def delete(
:param inference_id: The inference Id
:param task_type: The task type
:param dry_run: When true, the endpoint is not deleted, and a list of ingest
processors which reference this endpoint is returned
:param force: When true, the inference endpoint is forcefully deleted even if
it is still being used by ingest processors or semantic text fields
"""
if inference_id in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'inference_id'")
Expand All @@ -64,10 +70,14 @@ async def delete(
else:
raise ValueError("Couldn't find a path for the given parameters")
__query: t.Dict[str, t.Any] = {}
if dry_run is not None:
__query["dry_run"] = dry_run
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if force is not None:
__query["force"] = force
if human is not None:
__query["human"] = human
if pretty is not None:
Expand Down
10 changes: 10 additions & 0 deletions elasticsearch/_sync/client/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ def delete(
str,
]
] = None,
dry_run: t.Optional[bool] = None,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
force: t.Optional[bool] = None,
human: t.Optional[bool] = None,
pretty: t.Optional[bool] = None,
) -> ObjectApiResponse[t.Any]:
Expand All @@ -48,6 +50,10 @@ def delete(
:param inference_id: The inference Id
:param task_type: The task type
:param dry_run: When true, the endpoint is not deleted, and a list of ingest
processors which reference this endpoint is returned
:param force: When true, the inference endpoint is forcefully deleted even if
it is still being used by ingest processors or semantic text fields
"""
if inference_id in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'inference_id'")
Expand All @@ -64,10 +70,14 @@ def delete(
else:
raise ValueError("Couldn't find a path for the given parameters")
__query: t.Dict[str, t.Any] = {}
if dry_run is not None:
__query["dry_run"] = dry_run
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if force is not None:
__query["force"] = force
if human is not None:
__query["human"] = human
if pretty is not None:
Expand Down

0 comments on commit 9c18001

Please sign in to comment.