File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -3653,6 +3653,7 @@ async def put_trained_model(
3653
3653
prefix_strings : t .Optional [t .Mapping [str , t .Any ]] = None ,
3654
3654
pretty : t .Optional [bool ] = None ,
3655
3655
tags : t .Optional [t .Sequence [str ]] = None ,
3656
+ wait_for_completion : t .Optional [bool ] = None ,
3656
3657
body : t .Optional [t .Dict [str , t .Any ]] = None ,
3657
3658
) -> ObjectApiResponse [t .Any ]:
3658
3659
"""
@@ -3690,6 +3691,8 @@ async def put_trained_model(
3690
3691
this field unset.
3691
3692
:param prefix_strings: Optional prefix strings applied at inference
3692
3693
: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.
3693
3696
"""
3694
3697
if model_id in SKIP_IN_PATH :
3695
3698
raise ValueError ("Empty value passed for parameter 'model_id'" )
@@ -3707,6 +3710,8 @@ async def put_trained_model(
3707
3710
__query ["human" ] = human
3708
3711
if pretty is not None :
3709
3712
__query ["pretty" ] = pretty
3713
+ if wait_for_completion is not None :
3714
+ __query ["wait_for_completion" ] = wait_for_completion
3710
3715
if not __body :
3711
3716
if compressed_definition is not None :
3712
3717
__body ["compressed_definition" ] = compressed_definition
Original file line number Diff line number Diff line change @@ -3653,6 +3653,7 @@ def put_trained_model(
3653
3653
prefix_strings : t .Optional [t .Mapping [str , t .Any ]] = None ,
3654
3654
pretty : t .Optional [bool ] = None ,
3655
3655
tags : t .Optional [t .Sequence [str ]] = None ,
3656
+ wait_for_completion : t .Optional [bool ] = None ,
3656
3657
body : t .Optional [t .Dict [str , t .Any ]] = None ,
3657
3658
) -> ObjectApiResponse [t .Any ]:
3658
3659
"""
@@ -3690,6 +3691,8 @@ def put_trained_model(
3690
3691
this field unset.
3691
3692
:param prefix_strings: Optional prefix strings applied at inference
3692
3693
: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.
3693
3696
"""
3694
3697
if model_id in SKIP_IN_PATH :
3695
3698
raise ValueError ("Empty value passed for parameter 'model_id'" )
@@ -3707,6 +3710,8 @@ def put_trained_model(
3707
3710
__query ["human" ] = human
3708
3711
if pretty is not None :
3709
3712
__query ["pretty" ] = pretty
3713
+ if wait_for_completion is not None :
3714
+ __query ["wait_for_completion" ] = wait_for_completion
3710
3715
if not __body :
3711
3716
if compressed_definition is not None :
3712
3717
__body ["compressed_definition" ] = compressed_definition
You can’t perform that action at this time.
0 commit comments