Skip to content

Commit 686a228

Browse files
Auto-generated API code
1 parent b32e38e commit 686a228

26 files changed

+1624
-406
lines changed

elasticsearch/_async/client/__init__.py

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2652,7 +2652,6 @@ async def get_source(
26522652
source: t.Optional[t.Union[bool, t.Union[str, t.Sequence[str]]]] = None,
26532653
source_excludes: t.Optional[t.Union[str, t.Sequence[str]]] = None,
26542654
source_includes: t.Optional[t.Union[str, t.Sequence[str]]] = None,
2655-
stored_fields: t.Optional[t.Union[str, t.Sequence[str]]] = None,
26562655
version: t.Optional[int] = None,
26572656
version_type: t.Optional[
26582657
t.Union[str, t.Literal["external", "external_gte", "force", "internal"]]
@@ -2689,8 +2688,6 @@ async def get_source(
26892688
the response.
26902689
:param source_includes: A comma-separated list of source fields to include in
26912690
the response.
2692-
:param stored_fields: A comma-separated list of stored fields to return as part
2693-
of a hit.
26942691
:param version: The version number for concurrency control. It must match the
26952692
current version of the document for the request to succeed.
26962693
:param version_type: The version type.
@@ -2724,8 +2721,6 @@ async def get_source(
27242721
__query["_source_excludes"] = source_excludes
27252722
if source_includes is not None:
27262723
__query["_source_includes"] = source_includes
2727-
if stored_fields is not None:
2728-
__query["stored_fields"] = stored_fields
27292724
if version is not None:
27302725
__query["version"] = version
27312726
if version_type is not None:
@@ -2834,6 +2829,7 @@ async def index(
28342829
t.Union[bool, str, t.Literal["false", "true", "wait_for"]]
28352830
] = None,
28362831
require_alias: t.Optional[bool] = None,
2832+
require_data_stream: t.Optional[bool] = None,
28372833
routing: t.Optional[str] = None,
28382834
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
28392835
version: t.Optional[int] = None,
@@ -2969,6 +2965,8 @@ async def index(
29692965
this operation visible to search. If `wait_for`, it waits for a refresh to
29702966
make this operation visible to search. If `false`, it does nothing with refreshes.
29712967
:param require_alias: If `true`, the destination must be an index alias.
2968+
:param require_data_stream: If `true`, the request's actions must target a data
2969+
stream (existing or to be created).
29722970
:param routing: A custom value that is used to route operations to a specific
29732971
shard.
29742972
:param timeout: The period the request waits for the following operations: automatic
@@ -3030,6 +3028,8 @@ async def index(
30303028
__query["refresh"] = refresh
30313029
if require_alias is not None:
30323030
__query["require_alias"] = require_alias
3031+
if require_data_stream is not None:
3032+
__query["require_data_stream"] = require_data_stream
30333033
if routing is not None:
30343034
__query["routing"] = routing
30353035
if timeout is not None:
@@ -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.

0 commit comments

Comments
 (0)