Skip to content

Commit 47def74

Browse files
Auto-generated API code
1 parent b32e38e commit 47def74

File tree

18 files changed

+1558
-340
lines changed

18 files changed

+1558
-340
lines changed

elasticsearch/_async/client/__init__.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3798,8 +3798,7 @@ async def open_point_in_time(
37983798
:param expand_wildcards: The type of index that wildcard patterns can match.
37993799
If the request can target data streams, this argument determines whether
38003800
wildcard expressions match hidden data streams. It supports comma-separated
3801-
values, such as `open,hidden`. Valid values are: `all`, `open`, `closed`,
3802-
`hidden`, `none`.
3801+
values, such as `open,hidden`.
38033802
:param ignore_unavailable: If `false`, the request returns an error if it targets
38043803
a missing or closed index.
38053804
:param index_filter: Filter indices if the provided query rewrites to `match_none`
@@ -5695,7 +5694,7 @@ async def search_shards(
56955694
:param expand_wildcards: Type of index that wildcard patterns can match. If the
56965695
request can target data streams, this argument determines whether wildcard
56975696
expressions match hidden data streams. Supports comma-separated values, such
5698-
as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
5697+
as `open,hidden`.
56995698
:param ignore_unavailable: If `false`, the request returns an error if it targets
57005699
a missing or closed index.
57015700
:param local: If `true`, the request retrieves information from the local node
@@ -5807,8 +5806,7 @@ async def search_template(
58075806
:param expand_wildcards: The type of index that wildcard patterns can match.
58085807
If the request can target data streams, this argument determines whether
58095808
wildcard expressions match hidden data streams. Supports comma-separated
5810-
values, such as `open,hidden`. Valid values are: `all`, `open`, `closed`,
5811-
`hidden`, `none`.
5809+
values, such as `open,hidden`.
58125810
:param explain: If `true`, returns detailed information about score calculation
58135811
as part of each hit. If you specify both this and the `explain` query parameter,
58145812
the API uses only the query parameter.
@@ -6519,8 +6517,7 @@ async def update_by_query(
65196517
:param expand_wildcards: The type of index that wildcard patterns can match.
65206518
If the request can target data streams, this argument determines whether
65216519
wildcard expressions match hidden data streams. It supports comma-separated
6522-
values, such as `open,hidden`. Valid values are: `all`, `open`, `closed`,
6523-
`hidden`, `none`.
6520+
values, such as `open,hidden`.
65246521
:param from_: Skips the specified number of documents.
65256522
:param ignore_unavailable: If `false`, the request returns an error if it targets
65266523
a missing or closed index.

elasticsearch/_async/client/cat.py

Lines changed: 667 additions & 31 deletions
Large diffs are not rendered by default.

elasticsearch/_async/client/cluster.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -870,9 +870,9 @@ async def put_settings(
870870
871871
:param flat_settings: Return settings in flat format (default: false)
872872
:param master_timeout: Explicit operation timeout for connection to master node
873-
:param persistent:
873+
:param persistent: The settings that persist after the cluster restarts.
874874
:param timeout: Explicit operation timeout
875-
:param transient:
875+
:param transient: The settings that do not persist after the cluster restarts.
876876
"""
877877
__path_parts: t.Dict[str, str] = {}
878878
__path = "/_cluster/settings"
@@ -928,7 +928,7 @@ async def remote_info(
928928
This API returns information that reflects current state on the local cluster.
929929
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.
930930
Elasticsearch does not spontaneously try to reconnect to a disconnected remote cluster.
931-
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>
931+
To trigger a reconnection, attempt a cross-cluster search, ES|QL cross-cluster search, or try the <code>/_resolve/cluster</code> endpoint.</p>
932932
</blockquote>
933933
934934

elasticsearch/_async/client/esql.py

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ class EsqlClient(NamespacedClient):
3131
"columnar",
3232
"filter",
3333
"include_ccs_metadata",
34+
"keep_alive",
35+
"keep_on_completion",
3436
"locale",
3537
"params",
3638
"profile",
@@ -147,10 +149,6 @@ async def async_query(
147149
__query["format"] = format
148150
if human is not None:
149151
__query["human"] = human
150-
if keep_alive is not None:
151-
__query["keep_alive"] = keep_alive
152-
if keep_on_completion is not None:
153-
__query["keep_on_completion"] = keep_on_completion
154152
if pretty is not None:
155153
__query["pretty"] = pretty
156154
if not __body:
@@ -162,6 +160,10 @@ async def async_query(
162160
__body["filter"] = filter
163161
if include_ccs_metadata is not None:
164162
__body["include_ccs_metadata"] = include_ccs_metadata
163+
if keep_alive is not None:
164+
__body["keep_alive"] = keep_alive
165+
if keep_on_completion is not None:
166+
__body["keep_on_completion"] = keep_on_completion
165167
if locale is not None:
166168
__body["locale"] = locale
167169
if params is not None:
@@ -244,6 +246,14 @@ async def async_query_get(
244246
drop_null_columns: t.Optional[bool] = None,
245247
error_trace: t.Optional[bool] = None,
246248
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
249+
format: t.Optional[
250+
t.Union[
251+
str,
252+
t.Literal[
253+
"arrow", "cbor", "csv", "json", "smile", "tsv", "txt", "yaml"
254+
],
255+
]
256+
] = None,
247257
human: t.Optional[bool] = None,
248258
keep_alive: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
249259
pretty: t.Optional[bool] = None,
@@ -269,6 +279,7 @@ async def async_query_get(
269279
will be removed from the `columns` and `values` portion of the results. If
270280
`true`, the response will include an extra section under the name `all_columns`
271281
which has the name of all the columns.
282+
:param format: A short version of the Accept header, for example `json` or `yaml`.
272283
:param keep_alive: The period for which the query and its results are stored
273284
in the cluster. When this period expires, the query and its results are deleted,
274285
even if the query is still ongoing.
@@ -289,6 +300,8 @@ async def async_query_get(
289300
__query["error_trace"] = error_trace
290301
if filter_path is not None:
291302
__query["filter_path"] = filter_path
303+
if format is not None:
304+
__query["format"] = format
292305
if human is not None:
293306
__query["human"] = human
294307
if keep_alive is not None:

elasticsearch/_async/client/fleet.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ async def msearch(
138138
"""
139139
.. raw:: html
140140
141-
<p>Executes several <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/fleet-search.html">fleet searches</a> with a single API request.
142-
The API follows the same structure as the <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html">multi search</a> API. However, similar to the fleet search API, it
143-
supports the wait_for_checkpoints parameter.</p>
141+
<p>Executes several fleet searches with a single API request.</p>
142+
<p>The API follows the same structure as the multi search (<code>_msearch</code>) API.
143+
However, similar to the fleet search API, it supports the <code>wait_for_checkpoints</code> parameter.</p>
144144
145145
146146
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/fleet-multi-search.html>`_
@@ -154,9 +154,9 @@ async def msearch(
154154
example, a request targeting foo*,bar* returns an error if an index starts
155155
with foo but no index starts with bar.
156156
:param allow_partial_search_results: If true, returns partial results if there
157-
are shard request timeouts or [shard failures](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-replication.html#shard-failures).
158-
If false, returns an error with no partial results. Defaults to the configured
159-
cluster setting `search.default_allow_partial_results` which is true by default.
157+
are shard request timeouts or shard failures. If false, returns an error
158+
with no partial results. Defaults to the configured cluster setting `search.default_allow_partial_results`
159+
which is true by default.
160160
:param ccs_minimize_roundtrips: If true, network roundtrips between the coordinating
161161
node and remote clusters are minimized for cross-cluster search requests.
162162
:param expand_wildcards: Type of index that wildcard expressions can match. If
@@ -400,9 +400,9 @@ async def search(
400400
:param aggs:
401401
:param allow_no_indices:
402402
:param allow_partial_search_results: If true, returns partial results if there
403-
are shard request timeouts or [shard failures](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-replication.html#shard-failures).
404-
If false, returns an error with no partial results. Defaults to the configured
405-
cluster setting `search.default_allow_partial_results` which is true by default.
403+
are shard request timeouts or shard failures. If false, returns an error
404+
with no partial results. Defaults to the configured cluster setting `search.default_allow_partial_results`
405+
which is true by default.
406406
:param analyze_wildcard:
407407
:param analyzer:
408408
:param batched_reduce_size:

0 commit comments

Comments
 (0)