Skip to content

Commit 274b6d7

Browse files
Auto-generated code for 8.13 (#2514)
1 parent 833e779 commit 274b6d7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

elasticsearch/_async/client/ml.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3653,6 +3653,7 @@ async def put_trained_model(
36533653
prefix_strings: t.Optional[t.Mapping[str, t.Any]] = None,
36543654
pretty: t.Optional[bool] = None,
36553655
tags: t.Optional[t.Sequence[str]] = None,
3656+
wait_for_completion: t.Optional[bool] = None,
36563657
body: t.Optional[t.Dict[str, t.Any]] = None,
36573658
) -> ObjectApiResponse[t.Any]:
36583659
"""
@@ -3690,6 +3691,8 @@ async def put_trained_model(
36903691
this field unset.
36913692
:param prefix_strings: Optional prefix strings applied at inference
36923693
:param tags: An array of tags to organize the model.
3694+
:param wait_for_completion: Whether to wait for all child operations (e.g. model
3695+
download) to complete.
36933696
"""
36943697
if model_id in SKIP_IN_PATH:
36953698
raise ValueError("Empty value passed for parameter 'model_id'")
@@ -3707,6 +3710,8 @@ async def put_trained_model(
37073710
__query["human"] = human
37083711
if pretty is not None:
37093712
__query["pretty"] = pretty
3713+
if wait_for_completion is not None:
3714+
__query["wait_for_completion"] = wait_for_completion
37103715
if not __body:
37113716
if compressed_definition is not None:
37123717
__body["compressed_definition"] = compressed_definition

elasticsearch/_sync/client/ml.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3653,6 +3653,7 @@ def put_trained_model(
36533653
prefix_strings: t.Optional[t.Mapping[str, t.Any]] = None,
36543654
pretty: t.Optional[bool] = None,
36553655
tags: t.Optional[t.Sequence[str]] = None,
3656+
wait_for_completion: t.Optional[bool] = None,
36563657
body: t.Optional[t.Dict[str, t.Any]] = None,
36573658
) -> ObjectApiResponse[t.Any]:
36583659
"""
@@ -3690,6 +3691,8 @@ def put_trained_model(
36903691
this field unset.
36913692
:param prefix_strings: Optional prefix strings applied at inference
36923693
:param tags: An array of tags to organize the model.
3694+
:param wait_for_completion: Whether to wait for all child operations (e.g. model
3695+
download) to complete.
36933696
"""
36943697
if model_id in SKIP_IN_PATH:
36953698
raise ValueError("Empty value passed for parameter 'model_id'")
@@ -3707,6 +3710,8 @@ def put_trained_model(
37073710
__query["human"] = human
37083711
if pretty is not None:
37093712
__query["pretty"] = pretty
3713+
if wait_for_completion is not None:
3714+
__query["wait_for_completion"] = wait_for_completion
37103715
if not __body:
37113716
if compressed_definition is not None:
37123717
__body["compressed_definition"] = compressed_definition

0 commit comments

Comments
 (0)