Skip to content

Commit a7bfc73

Browse files
authored
[8.11] Auto-generated API code (#2401)
1 parent d1ac2db commit a7bfc73

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

elasticsearch/_async/client/security.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,6 +1837,7 @@ async def put_role_mapping(
18371837
refresh: t.Optional[
18381838
t.Union["t.Literal['false', 'true', 'wait_for']", bool, str]
18391839
] = None,
1840+
role_templates: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
18401841
roles: t.Optional[t.Sequence[str]] = None,
18411842
rules: t.Optional[t.Mapping[str, t.Any]] = None,
18421843
run_as: t.Optional[t.Sequence[str]] = None,
@@ -1852,6 +1853,7 @@ async def put_role_mapping(
18521853
:param refresh: If `true` (the default) then refresh the affected shards to make
18531854
this operation visible to search, if `wait_for` then wait for a refresh to
18541855
make this operation visible to search, if `false` then do nothing with refreshes.
1856+
:param role_templates:
18551857
:param roles:
18561858
:param rules:
18571859
:param run_as:
@@ -1875,6 +1877,8 @@ async def put_role_mapping(
18751877
__query["pretty"] = pretty
18761878
if refresh is not None:
18771879
__query["refresh"] = refresh
1880+
if role_templates is not None:
1881+
__body["role_templates"] = role_templates
18781882
if roles is not None:
18791883
__body["roles"] = roles
18801884
if rules is not None:

elasticsearch/_sync/client/security.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,6 +1837,7 @@ def put_role_mapping(
18371837
refresh: t.Optional[
18381838
t.Union["t.Literal['false', 'true', 'wait_for']", bool, str]
18391839
] = None,
1840+
role_templates: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
18401841
roles: t.Optional[t.Sequence[str]] = None,
18411842
rules: t.Optional[t.Mapping[str, t.Any]] = None,
18421843
run_as: t.Optional[t.Sequence[str]] = None,
@@ -1852,6 +1853,7 @@ def put_role_mapping(
18521853
:param refresh: If `true` (the default) then refresh the affected shards to make
18531854
this operation visible to search, if `wait_for` then wait for a refresh to
18541855
make this operation visible to search, if `false` then do nothing with refreshes.
1856+
:param role_templates:
18551857
:param roles:
18561858
:param rules:
18571859
:param run_as:
@@ -1875,6 +1877,8 @@ def put_role_mapping(
18751877
__query["pretty"] = pretty
18761878
if refresh is not None:
18771879
__query["refresh"] = refresh
1880+
if role_templates is not None:
1881+
__body["role_templates"] = role_templates
18781882
if roles is not None:
18791883
__body["roles"] = roles
18801884
if rules is not None:

0 commit comments

Comments
 (0)