Skip to content

[8.11] Auto-generated API code #2401

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions elasticsearch/_async/client/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -1837,6 +1837,7 @@ async def put_role_mapping(
refresh: t.Optional[
t.Union["t.Literal['false', 'true', 'wait_for']", bool, str]
] = None,
role_templates: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
roles: t.Optional[t.Sequence[str]] = None,
rules: t.Optional[t.Mapping[str, t.Any]] = None,
run_as: t.Optional[t.Sequence[str]] = None,
Expand All @@ -1852,6 +1853,7 @@ async def put_role_mapping(
:param refresh: If `true` (the default) then refresh the affected shards to make
this operation visible to search, if `wait_for` then wait for a refresh to
make this operation visible to search, if `false` then do nothing with refreshes.
:param role_templates:
:param roles:
:param rules:
:param run_as:
Expand All @@ -1875,6 +1877,8 @@ async def put_role_mapping(
__query["pretty"] = pretty
if refresh is not None:
__query["refresh"] = refresh
if role_templates is not None:
__body["role_templates"] = role_templates
if roles is not None:
__body["roles"] = roles
if rules is not None:
Expand Down
4 changes: 4 additions & 0 deletions elasticsearch/_sync/client/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -1837,6 +1837,7 @@ def put_role_mapping(
refresh: t.Optional[
t.Union["t.Literal['false', 'true', 'wait_for']", bool, str]
] = None,
role_templates: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
roles: t.Optional[t.Sequence[str]] = None,
rules: t.Optional[t.Mapping[str, t.Any]] = None,
run_as: t.Optional[t.Sequence[str]] = None,
Expand All @@ -1852,6 +1853,7 @@ def put_role_mapping(
:param refresh: If `true` (the default) then refresh the affected shards to make
this operation visible to search, if `wait_for` then wait for a refresh to
make this operation visible to search, if `false` then do nothing with refreshes.
:param role_templates:
:param roles:
:param rules:
:param run_as:
Expand All @@ -1875,6 +1877,8 @@ def put_role_mapping(
__query["pretty"] = pretty
if refresh is not None:
__query["refresh"] = refresh
if role_templates is not None:
__body["role_templates"] = role_templates
if roles is not None:
__body["roles"] = roles
if rules is not None:
Expand Down