Skip to content

Commit d71dc40

Browse files
Auto-generated code for main (#100)
Auto-generated API code
1 parent 79a734b commit d71dc40

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

elasticsearch_serverless/_async/client/security.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ async def has_privileges(
417417
"monitor_ml",
418418
"monitor_rollup",
419419
"monitor_snapshot",
420+
"monitor_stats",
420421
"monitor_text_structure",
421422
"monitor_transform",
422423
"monitor_watcher",
@@ -579,6 +580,7 @@ async def invalidate_api_key(
579580
"global_",
580581
"indices",
581582
"metadata",
583+
"remote_cluster",
582584
"remote_indices",
583585
"run_as",
584586
"transient_metadata",
@@ -639,6 +641,7 @@ async def put_role(
639641
"monitor_ml",
640642
"monitor_rollup",
641643
"monitor_snapshot",
644+
"monitor_stats",
642645
"monitor_text_structure",
643646
"monitor_transform",
644647
"monitor_watcher",
@@ -668,6 +671,7 @@ async def put_role(
668671
refresh: t.Optional[
669672
t.Union[bool, str, t.Literal["false", "true", "wait_for"]]
670673
] = None,
674+
remote_cluster: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
671675
remote_indices: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
672676
run_as: t.Optional[t.Sequence[str]] = None,
673677
transient_metadata: t.Optional[t.Mapping[str, t.Any]] = None,
@@ -698,6 +702,7 @@ async def put_role(
698702
:param refresh: If `true` (the default) then refresh the affected shards to make
699703
this operation visible to search, if `wait_for` then wait for a refresh to
700704
make this operation visible to search, if `false` then do nothing with refreshes.
705+
:param remote_cluster: A list of remote cluster permissions entries.
701706
:param remote_indices: A list of remote indices permissions entries.
702707
:param run_as: A list of users that the owners of this role can impersonate.
703708
*Note*: in Serverless, the run-as feature is disabled. For API compatibility,
@@ -739,6 +744,8 @@ async def put_role(
739744
__body["indices"] = indices
740745
if metadata is not None:
741746
__body["metadata"] = metadata
747+
if remote_cluster is not None:
748+
__body["remote_cluster"] = remote_cluster
742749
if remote_indices is not None:
743750
__body["remote_indices"] = remote_indices
744751
if run_as is not None:

elasticsearch_serverless/_sync/client/security.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ def has_privileges(
417417
"monitor_ml",
418418
"monitor_rollup",
419419
"monitor_snapshot",
420+
"monitor_stats",
420421
"monitor_text_structure",
421422
"monitor_transform",
422423
"monitor_watcher",
@@ -579,6 +580,7 @@ def invalidate_api_key(
579580
"global_",
580581
"indices",
581582
"metadata",
583+
"remote_cluster",
582584
"remote_indices",
583585
"run_as",
584586
"transient_metadata",
@@ -639,6 +641,7 @@ def put_role(
639641
"monitor_ml",
640642
"monitor_rollup",
641643
"monitor_snapshot",
644+
"monitor_stats",
642645
"monitor_text_structure",
643646
"monitor_transform",
644647
"monitor_watcher",
@@ -668,6 +671,7 @@ def put_role(
668671
refresh: t.Optional[
669672
t.Union[bool, str, t.Literal["false", "true", "wait_for"]]
670673
] = None,
674+
remote_cluster: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
671675
remote_indices: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
672676
run_as: t.Optional[t.Sequence[str]] = None,
673677
transient_metadata: t.Optional[t.Mapping[str, t.Any]] = None,
@@ -698,6 +702,7 @@ def put_role(
698702
:param refresh: If `true` (the default) then refresh the affected shards to make
699703
this operation visible to search, if `wait_for` then wait for a refresh to
700704
make this operation visible to search, if `false` then do nothing with refreshes.
705+
:param remote_cluster: A list of remote cluster permissions entries.
701706
:param remote_indices: A list of remote indices permissions entries.
702707
:param run_as: A list of users that the owners of this role can impersonate.
703708
*Note*: in Serverless, the run-as feature is disabled. For API compatibility,
@@ -739,6 +744,8 @@ def put_role(
739744
__body["indices"] = indices
740745
if metadata is not None:
741746
__body["metadata"] = metadata
747+
if remote_cluster is not None:
748+
__body["remote_cluster"] = remote_cluster
742749
if remote_indices is not None:
743750
__body["remote_indices"] = remote_indices
744751
if run_as is not None:

0 commit comments

Comments
 (0)