Skip to content

Auto-generated code for main #2513

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions elasticsearch/_async/client/ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -3653,6 +3653,7 @@ async def put_trained_model(
prefix_strings: t.Optional[t.Mapping[str, t.Any]] = None,
pretty: t.Optional[bool] = None,
tags: t.Optional[t.Sequence[str]] = None,
wait_for_completion: t.Optional[bool] = None,
body: t.Optional[t.Dict[str, t.Any]] = None,
) -> ObjectApiResponse[t.Any]:
"""
Expand Down Expand Up @@ -3690,6 +3691,8 @@ async def put_trained_model(
this field unset.
:param prefix_strings: Optional prefix strings applied at inference
:param tags: An array of tags to organize the model.
:param wait_for_completion: Whether to wait for all child operations (e.g. model
download) to complete.
"""
if model_id in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'model_id'")
Expand All @@ -3707,6 +3710,8 @@ async def put_trained_model(
__query["human"] = human
if pretty is not None:
__query["pretty"] = pretty
if wait_for_completion is not None:
__query["wait_for_completion"] = wait_for_completion
if not __body:
if compressed_definition is not None:
__body["compressed_definition"] = compressed_definition
Expand Down
5 changes: 5 additions & 0 deletions elasticsearch/_sync/client/ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -3653,6 +3653,7 @@ def put_trained_model(
prefix_strings: t.Optional[t.Mapping[str, t.Any]] = None,
pretty: t.Optional[bool] = None,
tags: t.Optional[t.Sequence[str]] = None,
wait_for_completion: t.Optional[bool] = None,
body: t.Optional[t.Dict[str, t.Any]] = None,
) -> ObjectApiResponse[t.Any]:
"""
Expand Down Expand Up @@ -3690,6 +3691,8 @@ def put_trained_model(
this field unset.
:param prefix_strings: Optional prefix strings applied at inference
:param tags: An array of tags to organize the model.
:param wait_for_completion: Whether to wait for all child operations (e.g. model
download) to complete.
"""
if model_id in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'model_id'")
Expand All @@ -3707,6 +3710,8 @@ def put_trained_model(
__query["human"] = human
if pretty is not None:
__query["pretty"] = pretty
if wait_for_completion is not None:
__query["wait_for_completion"] = wait_for_completion
if not __body:
if compressed_definition is not None:
__body["compressed_definition"] = compressed_definition
Expand Down