Skip to content

Commit

Permalink
Auto-generated code for main (#100)
Browse files Browse the repository at this point in the history
Auto-generated API code
  • Loading branch information
elasticmachine authored Nov 22, 2024
1 parent 79a734b commit d71dc40
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions elasticsearch_serverless/_async/client/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ async def has_privileges(
"monitor_ml",
"monitor_rollup",
"monitor_snapshot",
"monitor_stats",
"monitor_text_structure",
"monitor_transform",
"monitor_watcher",
Expand Down Expand Up @@ -579,6 +580,7 @@ async def invalidate_api_key(
"global_",
"indices",
"metadata",
"remote_cluster",
"remote_indices",
"run_as",
"transient_metadata",
Expand Down Expand Up @@ -639,6 +641,7 @@ async def put_role(
"monitor_ml",
"monitor_rollup",
"monitor_snapshot",
"monitor_stats",
"monitor_text_structure",
"monitor_transform",
"monitor_watcher",
Expand Down Expand Up @@ -668,6 +671,7 @@ async def put_role(
refresh: t.Optional[
t.Union[bool, str, t.Literal["false", "true", "wait_for"]]
] = None,
remote_cluster: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
remote_indices: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
run_as: t.Optional[t.Sequence[str]] = None,
transient_metadata: t.Optional[t.Mapping[str, t.Any]] = None,
Expand Down Expand Up @@ -698,6 +702,7 @@ async def put_role(
: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 remote_cluster: A list of remote cluster permissions entries.
:param remote_indices: A list of remote indices permissions entries.
:param run_as: A list of users that the owners of this role can impersonate.
*Note*: in Serverless, the run-as feature is disabled. For API compatibility,
Expand Down Expand Up @@ -739,6 +744,8 @@ async def put_role(
__body["indices"] = indices
if metadata is not None:
__body["metadata"] = metadata
if remote_cluster is not None:
__body["remote_cluster"] = remote_cluster
if remote_indices is not None:
__body["remote_indices"] = remote_indices
if run_as is not None:
Expand Down
7 changes: 7 additions & 0 deletions elasticsearch_serverless/_sync/client/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ def has_privileges(
"monitor_ml",
"monitor_rollup",
"monitor_snapshot",
"monitor_stats",
"monitor_text_structure",
"monitor_transform",
"monitor_watcher",
Expand Down Expand Up @@ -579,6 +580,7 @@ def invalidate_api_key(
"global_",
"indices",
"metadata",
"remote_cluster",
"remote_indices",
"run_as",
"transient_metadata",
Expand Down Expand Up @@ -639,6 +641,7 @@ def put_role(
"monitor_ml",
"monitor_rollup",
"monitor_snapshot",
"monitor_stats",
"monitor_text_structure",
"monitor_transform",
"monitor_watcher",
Expand Down Expand Up @@ -668,6 +671,7 @@ def put_role(
refresh: t.Optional[
t.Union[bool, str, t.Literal["false", "true", "wait_for"]]
] = None,
remote_cluster: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
remote_indices: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
run_as: t.Optional[t.Sequence[str]] = None,
transient_metadata: t.Optional[t.Mapping[str, t.Any]] = None,
Expand Down Expand Up @@ -698,6 +702,7 @@ def put_role(
: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 remote_cluster: A list of remote cluster permissions entries.
:param remote_indices: A list of remote indices permissions entries.
:param run_as: A list of users that the owners of this role can impersonate.
*Note*: in Serverless, the run-as feature is disabled. For API compatibility,
Expand Down Expand Up @@ -739,6 +744,8 @@ def put_role(
__body["indices"] = indices
if metadata is not None:
__body["metadata"] = metadata
if remote_cluster is not None:
__body["remote_cluster"] = remote_cluster
if remote_indices is not None:
__body["remote_indices"] = remote_indices
if run_as is not None:
Expand Down

0 comments on commit d71dc40

Please sign in to comment.