Skip to content

Auto-generated code for 8.18 #2956

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

Open
wants to merge 1 commit into
base: 8.18
Choose a base branch
from
Open
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
11 changes: 4 additions & 7 deletions elasticsearch/_async/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3798,8 +3798,7 @@ async def open_point_in_time(
:param expand_wildcards: The type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether
wildcard expressions match hidden data streams. It supports comma-separated
values, such as `open,hidden`. Valid values are: `all`, `open`, `closed`,
`hidden`, `none`.
values, such as `open,hidden`.
:param ignore_unavailable: If `false`, the request returns an error if it targets
a missing or closed index.
:param index_filter: Filter indices if the provided query rewrites to `match_none`
Expand Down Expand Up @@ -5695,7 +5694,7 @@ async def search_shards(
:param expand_wildcards: Type of index that wildcard patterns can match. If the
request can target data streams, this argument determines whether wildcard
expressions match hidden data streams. Supports comma-separated values, such
as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
as `open,hidden`.
:param ignore_unavailable: If `false`, the request returns an error if it targets
a missing or closed index.
:param local: If `true`, the request retrieves information from the local node
Expand Down Expand Up @@ -5807,8 +5806,7 @@ async def search_template(
:param expand_wildcards: The type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether
wildcard expressions match hidden data streams. Supports comma-separated
values, such as `open,hidden`. Valid values are: `all`, `open`, `closed`,
`hidden`, `none`.
values, such as `open,hidden`.
:param explain: If `true`, returns detailed information about score calculation
as part of each hit. If you specify both this and the `explain` query parameter,
the API uses only the query parameter.
Expand Down Expand Up @@ -6519,8 +6517,7 @@ async def update_by_query(
:param expand_wildcards: The type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether
wildcard expressions match hidden data streams. It supports comma-separated
values, such as `open,hidden`. Valid values are: `all`, `open`, `closed`,
`hidden`, `none`.
values, such as `open,hidden`.
:param from_: Skips the specified number of documents.
:param ignore_unavailable: If `false`, the request returns an error if it targets
a missing or closed index.
Expand Down
208 changes: 201 additions & 7 deletions elasticsearch/_async/client/cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -1774,7 +1774,200 @@ async def nodes(
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
format: t.Optional[str] = None,
full_id: t.Optional[t.Union[bool, str]] = None,
h: t.Optional[t.Union[str, t.Sequence[str]]] = None,
h: t.Optional[
t.Union[
t.Sequence[
t.Union[
str,
t.Literal[
"build",
"completion.size",
"cpu",
"disk.avail",
"disk.total",
"disk.used",
"disk.used_percent",
"fielddata.evictions",
"fielddata.memory_size",
"file_desc.current",
"file_desc.max",
"file_desc.percent",
"flush.total",
"flush.total_time",
"get.current",
"get.exists_time",
"get.exists_total",
"get.missing_time",
"get.missing_total",
"get.time",
"get.total",
"heap.current",
"heap.max",
"heap.percent",
"http_address",
"id",
"indexing.delete_current",
"indexing.delete_time",
"indexing.delete_total",
"indexing.index_current",
"indexing.index_failed",
"indexing.index_failed_due_to_version_conflict",
"indexing.index_time",
"indexing.index_total",
"ip",
"jdk",
"load_15m",
"load_1m",
"load_5m",
"mappings.total_count",
"mappings.total_estimated_overhead_in_bytes",
"master",
"merges.current",
"merges.current_docs",
"merges.current_size",
"merges.total",
"merges.total_docs",
"merges.total_size",
"merges.total_time",
"name",
"node.role",
"pid",
"port",
"query_cache.evictions",
"query_cache.hit_count",
"query_cache.memory_size",
"query_cache.miss_count",
"ram.current",
"ram.max",
"ram.percent",
"refresh.time",
"refresh.total",
"request_cache.evictions",
"request_cache.hit_count",
"request_cache.memory_size",
"request_cache.miss_count",
"script.cache_evictions",
"script.compilations",
"search.fetch_current",
"search.fetch_time",
"search.fetch_total",
"search.open_contexts",
"search.query_current",
"search.query_time",
"search.query_total",
"search.scroll_current",
"search.scroll_time",
"search.scroll_total",
"segments.count",
"segments.fixed_bitset_memory",
"segments.index_writer_memory",
"segments.memory",
"segments.version_map_memory",
"shard_stats.total_count",
"suggest.current",
"suggest.time",
"suggest.total",
"uptime",
"version",
],
]
],
t.Union[
str,
t.Literal[
"build",
"completion.size",
"cpu",
"disk.avail",
"disk.total",
"disk.used",
"disk.used_percent",
"fielddata.evictions",
"fielddata.memory_size",
"file_desc.current",
"file_desc.max",
"file_desc.percent",
"flush.total",
"flush.total_time",
"get.current",
"get.exists_time",
"get.exists_total",
"get.missing_time",
"get.missing_total",
"get.time",
"get.total",
"heap.current",
"heap.max",
"heap.percent",
"http_address",
"id",
"indexing.delete_current",
"indexing.delete_time",
"indexing.delete_total",
"indexing.index_current",
"indexing.index_failed",
"indexing.index_failed_due_to_version_conflict",
"indexing.index_time",
"indexing.index_total",
"ip",
"jdk",
"load_15m",
"load_1m",
"load_5m",
"mappings.total_count",
"mappings.total_estimated_overhead_in_bytes",
"master",
"merges.current",
"merges.current_docs",
"merges.current_size",
"merges.total",
"merges.total_docs",
"merges.total_size",
"merges.total_time",
"name",
"node.role",
"pid",
"port",
"query_cache.evictions",
"query_cache.hit_count",
"query_cache.memory_size",
"query_cache.miss_count",
"ram.current",
"ram.max",
"ram.percent",
"refresh.time",
"refresh.total",
"request_cache.evictions",
"request_cache.hit_count",
"request_cache.memory_size",
"request_cache.miss_count",
"script.cache_evictions",
"script.compilations",
"search.fetch_current",
"search.fetch_time",
"search.fetch_total",
"search.open_contexts",
"search.query_current",
"search.query_time",
"search.query_total",
"search.scroll_current",
"search.scroll_time",
"search.scroll_total",
"segments.count",
"segments.fixed_bitset_memory",
"segments.index_writer_memory",
"segments.memory",
"segments.version_map_memory",
"shard_stats.total_count",
"suggest.current",
"suggest.time",
"suggest.total",
"uptime",
"version",
],
],
]
] = None,
help: t.Optional[bool] = None,
human: t.Optional[bool] = None,
include_unloaded_segments: t.Optional[bool] = None,
Expand All @@ -1801,16 +1994,17 @@ async def nodes(
to `text`, `json`, `cbor`, `yaml`, or `smile`.
:param full_id: If `true`, return the full node ID. If `false`, return the shortened
node ID.
:param h: List of columns to appear in the response. Supports simple wildcards.
:param h: A comma-separated list of columns names to display. It supports simple
wildcards.
:param help: When set to `true` will output available columns. This option can't
be combined with any other query string option.
:param include_unloaded_segments: If true, the response includes information
from segments that are not loaded into memory.
:param master_timeout: Period to wait for a connection to the master node.
:param s: List of columns that determine how the table should be sorted. Sorting
defaults to ascending and can be changed by setting `:asc` or `:desc` as
a suffix to the column name.
:param time: Unit used to display time values.
:param master_timeout: The period to wait for a connection to the master node.
:param s: A comma-separated list of column names or aliases that determines the
sort order. Sorting defaults to ascending and can be changed by setting `:asc`
or `:desc` as a suffix to the column name.
:param time: The unit used to display time values.
:param v: When set to `true` will enable verbose output.
"""
__path_parts: t.Dict[str, str] = {}
Expand Down
6 changes: 3 additions & 3 deletions elasticsearch/_async/client/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,9 +870,9 @@ async def put_settings(

:param flat_settings: Return settings in flat format (default: false)
:param master_timeout: Explicit operation timeout for connection to master node
:param persistent:
:param persistent: The settings that persist after the cluster restarts.
:param timeout: Explicit operation timeout
:param transient:
:param transient: The settings that do not persist after the cluster restarts.
"""
__path_parts: t.Dict[str, str] = {}
__path = "/_cluster/settings"
Expand Down Expand Up @@ -928,7 +928,7 @@ async def remote_info(
This API returns information that reflects current state on the local cluster.
The <code>connected</code> field does not necessarily reflect whether a remote cluster is down or unavailable, only whether there is currently an open connection to it.
Elasticsearch does not spontaneously try to reconnect to a disconnected remote cluster.
To trigger a reconnection, attempt a cross-cluster search, ES|QL cross-cluster search, or try the <a href="https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-resolve-cluster">resolve cluster endpoint</a>.</p>
To trigger a reconnection, attempt a cross-cluster search, ES|QL cross-cluster search, or try the <code>/_resolve/cluster</code> endpoint.</p>
</blockquote>


Expand Down
21 changes: 17 additions & 4 deletions elasticsearch/_async/client/esql.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ class EsqlClient(NamespacedClient):
"columnar",
"filter",
"include_ccs_metadata",
"keep_alive",
"keep_on_completion",
"locale",
"params",
"profile",
Expand Down Expand Up @@ -147,10 +149,6 @@ async def async_query(
__query["format"] = format
if human is not None:
__query["human"] = human
if keep_alive is not None:
__query["keep_alive"] = keep_alive
if keep_on_completion is not None:
__query["keep_on_completion"] = keep_on_completion
if pretty is not None:
__query["pretty"] = pretty
if not __body:
Expand All @@ -162,6 +160,10 @@ async def async_query(
__body["filter"] = filter
if include_ccs_metadata is not None:
__body["include_ccs_metadata"] = include_ccs_metadata
if keep_alive is not None:
__body["keep_alive"] = keep_alive
if keep_on_completion is not None:
__body["keep_on_completion"] = keep_on_completion
if locale is not None:
__body["locale"] = locale
if params is not None:
Expand Down Expand Up @@ -244,6 +246,14 @@ async def async_query_get(
drop_null_columns: t.Optional[bool] = None,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
format: t.Optional[
t.Union[
str,
t.Literal[
"arrow", "cbor", "csv", "json", "smile", "tsv", "txt", "yaml"
],
]
] = None,
human: t.Optional[bool] = None,
keep_alive: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
pretty: t.Optional[bool] = None,
Expand All @@ -269,6 +279,7 @@ async def async_query_get(
will be removed from the `columns` and `values` portion of the results. If
`true`, the response will include an extra section under the name `all_columns`
which has the name of all the columns.
:param format: A short version of the Accept header, for example `json` or `yaml`.
:param keep_alive: The period for which the query and its results are stored
in the cluster. When this period expires, the query and its results are deleted,
even if the query is still ongoing.
Expand All @@ -289,6 +300,8 @@ async def async_query_get(
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if format is not None:
__query["format"] = format
if human is not None:
__query["human"] = human
if keep_alive is not None:
Expand Down
Loading