Skip to content

Commit

Permalink
Update API to 8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
miriam-eid committed Aug 22, 2022
1 parent c65fa8f commit 5c820f2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion elasticsearch/_async/client/ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -1755,7 +1755,7 @@ async def get_model_snapshot_upgrade_stats(
self,
*,
job_id: str,
snapshot_id: t.Optional[str] = None,
snapshot_id: str,
allow_no_match: t.Optional[bool] = None,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
Expand Down Expand Up @@ -1785,6 +1785,8 @@ async def get_model_snapshot_upgrade_stats(
"""
if job_id in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'job_id'")
if snapshot_id in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'snapshot_id'")
__path = f"/_ml/anomaly_detectors/{_quote(job_id)}/model_snapshots/{_quote(snapshot_id)}/_upgrade/_stats"
__query: t.Dict[str, t.Any] = {}
if allow_no_match is not None:
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch/_async/client/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,7 @@ async def get_user_profile(
pretty: t.Optional[bool] = None,
) -> ObjectApiResponse[t.Any]:
"""
Retrieves user profile for the given unique ID.
Retrieves user profiles for the given unique ID(s).
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-get-user-profile.html>`_
Expand Down
4 changes: 3 additions & 1 deletion elasticsearch/_sync/client/ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -1755,7 +1755,7 @@ def get_model_snapshot_upgrade_stats(
self,
*,
job_id: str,
snapshot_id: t.Optional[str] = None,
snapshot_id: str,
allow_no_match: t.Optional[bool] = None,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
Expand Down Expand Up @@ -1785,6 +1785,8 @@ def get_model_snapshot_upgrade_stats(
"""
if job_id in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'job_id'")
if snapshot_id in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'snapshot_id'")
__path = f"/_ml/anomaly_detectors/{_quote(job_id)}/model_snapshots/{_quote(snapshot_id)}/_upgrade/_stats"
__query: t.Dict[str, t.Any] = {}
if allow_no_match is not None:
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch/_sync/client/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,7 @@ def get_user_profile(
pretty: t.Optional[bool] = None,
) -> ObjectApiResponse[t.Any]:
"""
Retrieves user profile for the given unique ID.
Retrieves user profiles for the given unique ID(s).
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-get-user-profile.html>`_
Expand Down

0 comments on commit 5c820f2

Please sign in to comment.