File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1755,7 +1755,7 @@ async def get_model_snapshot_upgrade_stats(
1755
1755
self ,
1756
1756
* ,
1757
1757
job_id : str ,
1758
- snapshot_id : t . Optional [ str ] = None ,
1758
+ snapshot_id : str ,
1759
1759
allow_no_match : t .Optional [bool ] = None ,
1760
1760
error_trace : t .Optional [bool ] = None ,
1761
1761
filter_path : t .Optional [
@@ -1785,6 +1785,8 @@ async def get_model_snapshot_upgrade_stats(
1785
1785
"""
1786
1786
if job_id in SKIP_IN_PATH :
1787
1787
raise ValueError ("Empty value passed for parameter 'job_id'" )
1788
+ if snapshot_id in SKIP_IN_PATH :
1789
+ raise ValueError ("Empty value passed for parameter 'snapshot_id'" )
1788
1790
__path = f"/_ml/anomaly_detectors/{ _quote (job_id )} /model_snapshots/{ _quote (snapshot_id )} /_upgrade/_stats"
1789
1791
__query : t .Dict [str , t .Any ] = {}
1790
1792
if allow_no_match is not None :
Original file line number Diff line number Diff line change @@ -1755,7 +1755,7 @@ def get_model_snapshot_upgrade_stats(
1755
1755
self ,
1756
1756
* ,
1757
1757
job_id : str ,
1758
- snapshot_id : t . Optional [ str ] = None ,
1758
+ snapshot_id : str ,
1759
1759
allow_no_match : t .Optional [bool ] = None ,
1760
1760
error_trace : t .Optional [bool ] = None ,
1761
1761
filter_path : t .Optional [
@@ -1785,6 +1785,8 @@ def get_model_snapshot_upgrade_stats(
1785
1785
"""
1786
1786
if job_id in SKIP_IN_PATH :
1787
1787
raise ValueError ("Empty value passed for parameter 'job_id'" )
1788
+ if snapshot_id in SKIP_IN_PATH :
1789
+ raise ValueError ("Empty value passed for parameter 'snapshot_id'" )
1788
1790
__path = f"/_ml/anomaly_detectors/{ _quote (job_id )} /model_snapshots/{ _quote (snapshot_id )} /_upgrade/_stats"
1789
1791
__query : t .Dict [str , t .Any ] = {}
1790
1792
if allow_no_match is not None :
You can’t perform that action at this time.
0 commit comments