Skip to content

Commit 07e66e3

Browse files
Auto-generated code for 8.13 (#2522)
1 parent d71267f commit 07e66e3

File tree

4 files changed

+52
-0
lines changed

4 files changed

+52
-0
lines changed

elasticsearch/_async/client/__init__.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1936,6 +1936,7 @@ async def get(
19361936
id: str,
19371937
error_trace: t.Optional[bool] = None,
19381938
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
1939+
force_synthetic_source: t.Optional[bool] = None,
19391940
human: t.Optional[bool] = None,
19401941
preference: t.Optional[str] = None,
19411942
pretty: t.Optional[bool] = None,
@@ -1958,6 +1959,10 @@ async def get(
19581959
19591960
:param index: Name of the index that contains the document.
19601961
:param id: Unique identifier of the document.
1962+
:param force_synthetic_source: Should this request force synthetic _source? Use
1963+
this to test if the mapping supports synthetic _source and to get a sense
1964+
of the worst case performance. Fetches with this enabled will be slower the
1965+
enabling synthetic source natively in the index.
19611966
:param preference: Specifies the node or shard the operation should be performed
19621967
on. Random by default.
19631968
:param realtime: If `true`, the request is real-time as opposed to near-real-time.
@@ -1989,6 +1994,8 @@ async def get(
19891994
__query["error_trace"] = error_trace
19901995
if filter_path is not None:
19911996
__query["filter_path"] = filter_path
1997+
if force_synthetic_source is not None:
1998+
__query["force_synthetic_source"] = force_synthetic_source
19921999
if human is not None:
19932000
__query["human"] = human
19942001
if preference is not None:
@@ -2578,6 +2585,7 @@ async def mget(
25782585
docs: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
25792586
error_trace: t.Optional[bool] = None,
25802587
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
2588+
force_synthetic_source: t.Optional[bool] = None,
25812589
human: t.Optional[bool] = None,
25822590
ids: t.Optional[t.Union[str, t.Sequence[str]]] = None,
25832591
preference: t.Optional[str] = None,
@@ -2600,6 +2608,10 @@ async def mget(
26002608
or when a document in the `docs` array does not specify an index.
26012609
:param docs: The documents you want to retrieve. Required if no index is specified
26022610
in the request URI.
2611+
:param force_synthetic_source: Should this request force synthetic _source? Use
2612+
this to test if the mapping supports synthetic _source and to get a sense
2613+
of the worst case performance. Fetches with this enabled will be slower the
2614+
enabling synthetic source natively in the index.
26032615
:param ids: The IDs of the documents you want to retrieve. Allowed when the index
26042616
is specified in the request URI.
26052617
:param preference: Specifies the node or shard the operation should be performed
@@ -2634,6 +2646,8 @@ async def mget(
26342646
__query["error_trace"] = error_trace
26352647
if filter_path is not None:
26362648
__query["filter_path"] = filter_path
2649+
if force_synthetic_source is not None:
2650+
__query["force_synthetic_source"] = force_synthetic_source
26372651
if human is not None:
26382652
__query["human"] = human
26392653
if preference is not None:
@@ -3677,6 +3691,7 @@ async def search(
36773691
ext: t.Optional[t.Mapping[str, t.Any]] = None,
36783692
fields: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
36793693
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
3694+
force_synthetic_source: t.Optional[bool] = None,
36803695
from_: t.Optional[int] = None,
36813696
highlight: t.Optional[t.Mapping[str, t.Any]] = None,
36823697
human: t.Optional[bool] = None,
@@ -3793,6 +3808,10 @@ async def search(
37933808
:param fields: Array of wildcard (`*`) patterns. The request returns values for
37943809
field names matching these patterns in the `hits.fields` property of the
37953810
response.
3811+
:param force_synthetic_source: Should this request force synthetic _source? Use
3812+
this to test if the mapping supports synthetic _source and to get a sense
3813+
of the worst case performance. Fetches with this enabled will be slower the
3814+
enabling synthetic source natively in the index.
37963815
:param from_: Starting document offset. Needs to be non-negative. By default,
37973816
you cannot page through more than 10,000 hits using the `from` and `size`
37983817
parameters. To page through more hits, use the `search_after` parameter.
@@ -3972,6 +3991,8 @@ async def search(
39723991
__query["expand_wildcards"] = expand_wildcards
39733992
if filter_path is not None:
39743993
__query["filter_path"] = filter_path
3994+
if force_synthetic_source is not None:
3995+
__query["force_synthetic_source"] = force_synthetic_source
39753996
if human is not None:
39763997
__query["human"] = human
39773998
if ignore_throttled is not None:

elasticsearch/_async/client/security.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2375,6 +2375,7 @@ async def query_api_keys(
23752375
t.Union[str, t.Mapping[str, t.Any]],
23762376
]
23772377
] = None,
2378+
typed_keys: t.Optional[bool] = None,
23782379
with_limited_by: t.Optional[bool] = None,
23792380
body: t.Optional[t.Dict[str, t.Any]] = None,
23802381
) -> ObjectApiResponse[t.Any]:
@@ -2412,6 +2413,8 @@ async def query_api_keys(
24122413
:param sort: Other than `id`, all public fields of an API key are eligible for
24132414
sorting. In addition, sort can also be applied to the `_doc` field to sort
24142415
by index order.
2416+
:param typed_keys: Determines whether aggregation names are prefixed by their
2417+
respective types in the response.
24152418
:param with_limited_by: Return the snapshot of the owner user's role descriptors
24162419
associated with the API key. An API key's actual permission is the intersection
24172420
of its assigned role descriptors and the owner user's role descriptors.
@@ -2439,6 +2442,8 @@ async def query_api_keys(
24392442
__query["human"] = human
24402443
if pretty is not None:
24412444
__query["pretty"] = pretty
2445+
if typed_keys is not None:
2446+
__query["typed_keys"] = typed_keys
24422447
if with_limited_by is not None:
24432448
__query["with_limited_by"] = with_limited_by
24442449
if not __body:

elasticsearch/_sync/client/__init__.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1934,6 +1934,7 @@ def get(
19341934
id: str,
19351935
error_trace: t.Optional[bool] = None,
19361936
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
1937+
force_synthetic_source: t.Optional[bool] = None,
19371938
human: t.Optional[bool] = None,
19381939
preference: t.Optional[str] = None,
19391940
pretty: t.Optional[bool] = None,
@@ -1956,6 +1957,10 @@ def get(
19561957
19571958
:param index: Name of the index that contains the document.
19581959
:param id: Unique identifier of the document.
1960+
:param force_synthetic_source: Should this request force synthetic _source? Use
1961+
this to test if the mapping supports synthetic _source and to get a sense
1962+
of the worst case performance. Fetches with this enabled will be slower the
1963+
enabling synthetic source natively in the index.
19591964
:param preference: Specifies the node or shard the operation should be performed
19601965
on. Random by default.
19611966
:param realtime: If `true`, the request is real-time as opposed to near-real-time.
@@ -1987,6 +1992,8 @@ def get(
19871992
__query["error_trace"] = error_trace
19881993
if filter_path is not None:
19891994
__query["filter_path"] = filter_path
1995+
if force_synthetic_source is not None:
1996+
__query["force_synthetic_source"] = force_synthetic_source
19901997
if human is not None:
19911998
__query["human"] = human
19921999
if preference is not None:
@@ -2576,6 +2583,7 @@ def mget(
25762583
docs: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
25772584
error_trace: t.Optional[bool] = None,
25782585
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
2586+
force_synthetic_source: t.Optional[bool] = None,
25792587
human: t.Optional[bool] = None,
25802588
ids: t.Optional[t.Union[str, t.Sequence[str]]] = None,
25812589
preference: t.Optional[str] = None,
@@ -2598,6 +2606,10 @@ def mget(
25982606
or when a document in the `docs` array does not specify an index.
25992607
:param docs: The documents you want to retrieve. Required if no index is specified
26002608
in the request URI.
2609+
:param force_synthetic_source: Should this request force synthetic _source? Use
2610+
this to test if the mapping supports synthetic _source and to get a sense
2611+
of the worst case performance. Fetches with this enabled will be slower the
2612+
enabling synthetic source natively in the index.
26012613
:param ids: The IDs of the documents you want to retrieve. Allowed when the index
26022614
is specified in the request URI.
26032615
:param preference: Specifies the node or shard the operation should be performed
@@ -2632,6 +2644,8 @@ def mget(
26322644
__query["error_trace"] = error_trace
26332645
if filter_path is not None:
26342646
__query["filter_path"] = filter_path
2647+
if force_synthetic_source is not None:
2648+
__query["force_synthetic_source"] = force_synthetic_source
26352649
if human is not None:
26362650
__query["human"] = human
26372651
if preference is not None:
@@ -3675,6 +3689,7 @@ def search(
36753689
ext: t.Optional[t.Mapping[str, t.Any]] = None,
36763690
fields: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
36773691
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
3692+
force_synthetic_source: t.Optional[bool] = None,
36783693
from_: t.Optional[int] = None,
36793694
highlight: t.Optional[t.Mapping[str, t.Any]] = None,
36803695
human: t.Optional[bool] = None,
@@ -3791,6 +3806,10 @@ def search(
37913806
:param fields: Array of wildcard (`*`) patterns. The request returns values for
37923807
field names matching these patterns in the `hits.fields` property of the
37933808
response.
3809+
:param force_synthetic_source: Should this request force synthetic _source? Use
3810+
this to test if the mapping supports synthetic _source and to get a sense
3811+
of the worst case performance. Fetches with this enabled will be slower the
3812+
enabling synthetic source natively in the index.
37943813
:param from_: Starting document offset. Needs to be non-negative. By default,
37953814
you cannot page through more than 10,000 hits using the `from` and `size`
37963815
parameters. To page through more hits, use the `search_after` parameter.
@@ -3970,6 +3989,8 @@ def search(
39703989
__query["expand_wildcards"] = expand_wildcards
39713990
if filter_path is not None:
39723991
__query["filter_path"] = filter_path
3992+
if force_synthetic_source is not None:
3993+
__query["force_synthetic_source"] = force_synthetic_source
39733994
if human is not None:
39743995
__query["human"] = human
39753996
if ignore_throttled is not None:

elasticsearch/_sync/client/security.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2375,6 +2375,7 @@ def query_api_keys(
23752375
t.Union[str, t.Mapping[str, t.Any]],
23762376
]
23772377
] = None,
2378+
typed_keys: t.Optional[bool] = None,
23782379
with_limited_by: t.Optional[bool] = None,
23792380
body: t.Optional[t.Dict[str, t.Any]] = None,
23802381
) -> ObjectApiResponse[t.Any]:
@@ -2412,6 +2413,8 @@ def query_api_keys(
24122413
:param sort: Other than `id`, all public fields of an API key are eligible for
24132414
sorting. In addition, sort can also be applied to the `_doc` field to sort
24142415
by index order.
2416+
:param typed_keys: Determines whether aggregation names are prefixed by their
2417+
respective types in the response.
24152418
:param with_limited_by: Return the snapshot of the owner user's role descriptors
24162419
associated with the API key. An API key's actual permission is the intersection
24172420
of its assigned role descriptors and the owner user's role descriptors.
@@ -2439,6 +2442,8 @@ def query_api_keys(
24392442
__query["human"] = human
24402443
if pretty is not None:
24412444
__query["pretty"] = pretty
2445+
if typed_keys is not None:
2446+
__query["typed_keys"] = typed_keys
24422447
if with_limited_by is not None:
24432448
__query["with_limited_by"] = with_limited_by
24442449
if not __body:

0 commit comments

Comments
 (0)