File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Expand file tree Collapse file tree 4 files changed +8
-4
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 @@ -1419,7 +1419,7 @@ async def get_user_profile(
14191419 pretty : t .Optional [bool ] = None ,
14201420 ) -> ObjectApiResponse [t .Any ]:
14211421 """
1422- Retrieves user profile for the given unique ID.
1422+ Retrieves user profiles for the given unique ID(s) .
14231423
14241424 `<https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-get-user-profile.html>`_
14251425
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 :
Original file line number Diff line number Diff line change @@ -1419,7 +1419,7 @@ def get_user_profile(
14191419 pretty : t .Optional [bool ] = None ,
14201420 ) -> ObjectApiResponse [t .Any ]:
14211421 """
1422- Retrieves user profile for the given unique ID.
1422+ Retrieves user profiles for the given unique ID(s) .
14231423
14241424 `<https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-get-user-profile.html>`_
14251425
You can’t perform that action at this time.
0 commit comments