Skip to content

Commit 5c820f2

Browse files
authored
Update API to 8.5
1 parent c65fa8f commit 5c820f2

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

elasticsearch/_async/client/ml.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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:

elasticsearch/_async/client/security.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

elasticsearch/_sync/client/ml.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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:

elasticsearch/_sync/client/security.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)