File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 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(
17551755 self ,
17561756 * ,
17571757 job_id : str ,
1758- snapshot_id : t . Optional [ str ] = None ,
1758+ snapshot_id : str ,
17591759 allow_no_match : t .Optional [bool ] = None ,
17601760 error_trace : t .Optional [bool ] = None ,
17611761 filter_path : t .Optional [
@@ -1785,6 +1785,8 @@ async def get_model_snapshot_upgrade_stats(
17851785 """
17861786 if job_id in SKIP_IN_PATH :
17871787 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'" )
17881790 __path = f"/_ml/anomaly_detectors/{ _quote (job_id )} /model_snapshots/{ _quote (snapshot_id )} /_upgrade/_stats"
17891791 __query : t .Dict [str , t .Any ] = {}
17901792 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(
17551755 self ,
17561756 * ,
17571757 job_id : str ,
1758- snapshot_id : t . Optional [ str ] = None ,
1758+ snapshot_id : str ,
17591759 allow_no_match : t .Optional [bool ] = None ,
17601760 error_trace : t .Optional [bool ] = None ,
17611761 filter_path : t .Optional [
@@ -1785,6 +1785,8 @@ def get_model_snapshot_upgrade_stats(
17851785 """
17861786 if job_id in SKIP_IN_PATH :
17871787 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'" )
17881790 __path = f"/_ml/anomaly_detectors/{ _quote (job_id )} /model_snapshots/{ _quote (snapshot_id )} /_upgrade/_stats"
17891791 __query : t .Dict [str , t .Any ] = {}
17901792 if allow_no_match is not None :
You can’t perform that action at this time.
0 commit comments