Skip to content

Commit

Permalink
Auto-generated code for 8.13 (#2514)
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticmachine authored Mar 28, 2024
1 parent 833e779 commit 274b6d7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
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

0 comments on commit 274b6d7

Please sign in to comment.