Skip to content

Commit c3de878

Browse files
Auto-generated code for main (#2713)
1 parent ec0f167 commit c3de878

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Diff for: elasticsearch/_async/client/security.py

+7
Original file line numberDiff line numberDiff line change
@@ -2050,6 +2050,7 @@ async def has_privileges(
20502050
"monitor_ml",
20512051
"monitor_rollup",
20522052
"monitor_snapshot",
2053+
"monitor_stats",
20532054
"monitor_text_structure",
20542055
"monitor_transform",
20552056
"monitor_watcher",
@@ -2390,6 +2391,7 @@ async def put_privileges(
23902391
"global_",
23912392
"indices",
23922393
"metadata",
2394+
"remote_cluster",
23932395
"remote_indices",
23942396
"run_as",
23952397
"transient_metadata",
@@ -2450,6 +2452,7 @@ async def put_role(
24502452
"monitor_ml",
24512453
"monitor_rollup",
24522454
"monitor_snapshot",
2455+
"monitor_stats",
24532456
"monitor_text_structure",
24542457
"monitor_transform",
24552458
"monitor_watcher",
@@ -2479,6 +2482,7 @@ async def put_role(
24792482
refresh: t.Optional[
24802483
t.Union[bool, str, t.Literal["false", "true", "wait_for"]]
24812484
] = None,
2485+
remote_cluster: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
24822486
remote_indices: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
24832487
run_as: t.Optional[t.Sequence[str]] = None,
24842488
transient_metadata: t.Optional[t.Mapping[str, t.Any]] = None,
@@ -2509,6 +2513,7 @@ async def put_role(
25092513
:param refresh: If `true` (the default) then refresh the affected shards to make
25102514
this operation visible to search, if `wait_for` then wait for a refresh to
25112515
make this operation visible to search, if `false` then do nothing with refreshes.
2516+
:param remote_cluster: A list of remote cluster permissions entries.
25122517
:param remote_indices: A list of remote indices permissions entries.
25132518
:param run_as: A list of users that the owners of this role can impersonate.
25142519
*Note*: in Serverless, the run-as feature is disabled. For API compatibility,
@@ -2550,6 +2555,8 @@ async def put_role(
25502555
__body["indices"] = indices
25512556
if metadata is not None:
25522557
__body["metadata"] = metadata
2558+
if remote_cluster is not None:
2559+
__body["remote_cluster"] = remote_cluster
25532560
if remote_indices is not None:
25542561
__body["remote_indices"] = remote_indices
25552562
if run_as is not None:

Diff for: elasticsearch/_sync/client/security.py

+7
Original file line numberDiff line numberDiff line change
@@ -2050,6 +2050,7 @@ def has_privileges(
20502050
"monitor_ml",
20512051
"monitor_rollup",
20522052
"monitor_snapshot",
2053+
"monitor_stats",
20532054
"monitor_text_structure",
20542055
"monitor_transform",
20552056
"monitor_watcher",
@@ -2390,6 +2391,7 @@ def put_privileges(
23902391
"global_",
23912392
"indices",
23922393
"metadata",
2394+
"remote_cluster",
23932395
"remote_indices",
23942396
"run_as",
23952397
"transient_metadata",
@@ -2450,6 +2452,7 @@ def put_role(
24502452
"monitor_ml",
24512453
"monitor_rollup",
24522454
"monitor_snapshot",
2455+
"monitor_stats",
24532456
"monitor_text_structure",
24542457
"monitor_transform",
24552458
"monitor_watcher",
@@ -2479,6 +2482,7 @@ def put_role(
24792482
refresh: t.Optional[
24802483
t.Union[bool, str, t.Literal["false", "true", "wait_for"]]
24812484
] = None,
2485+
remote_cluster: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
24822486
remote_indices: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
24832487
run_as: t.Optional[t.Sequence[str]] = None,
24842488
transient_metadata: t.Optional[t.Mapping[str, t.Any]] = None,
@@ -2509,6 +2513,7 @@ def put_role(
25092513
:param refresh: If `true` (the default) then refresh the affected shards to make
25102514
this operation visible to search, if `wait_for` then wait for a refresh to
25112515
make this operation visible to search, if `false` then do nothing with refreshes.
2516+
:param remote_cluster: A list of remote cluster permissions entries.
25122517
:param remote_indices: A list of remote indices permissions entries.
25132518
:param run_as: A list of users that the owners of this role can impersonate.
25142519
*Note*: in Serverless, the run-as feature is disabled. For API compatibility,
@@ -2550,6 +2555,8 @@ def put_role(
25502555
__body["indices"] = indices
25512556
if metadata is not None:
25522557
__body["metadata"] = metadata
2558+
if remote_cluster is not None:
2559+
__body["remote_cluster"] = remote_cluster
25532560
if remote_indices is not None:
25542561
__body["remote_indices"] = remote_indices
25552562
if run_as is not None:

0 commit comments

Comments
 (0)