Skip to content

Commit 2b297b2

Browse files
[8.6] Auto-generated API code
1 parent a788e55 commit 2b297b2

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

elasticsearch/_async/client/__init__.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2839,12 +2839,32 @@ async def open_point_in_time(
28392839
index: t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]],
28402840
keep_alive: t.Union["t.Literal[-1]", "t.Literal[0]", str],
28412841
error_trace: t.Optional[bool] = None,
2842+
expand_wildcards: t.Optional[
2843+
t.Union[
2844+
t.Union["t.Literal['all', 'closed', 'hidden', 'none', 'open']", str],
2845+
t.Union[
2846+
t.List[
2847+
t.Union[
2848+
"t.Literal['all', 'closed', 'hidden', 'none', 'open']", str
2849+
]
2850+
],
2851+
t.Tuple[
2852+
t.Union[
2853+
"t.Literal['all', 'closed', 'hidden', 'none', 'open']", str
2854+
],
2855+
...,
2856+
],
2857+
],
2858+
]
2859+
] = None,
28422860
filter_path: t.Optional[
28432861
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
28442862
] = None,
28452863
human: t.Optional[bool] = None,
28462864
ignore_unavailable: t.Optional[bool] = None,
2865+
preference: t.Optional[str] = None,
28472866
pretty: t.Optional[bool] = None,
2867+
routing: t.Optional[str] = None,
28482868
) -> ObjectApiResponse[t.Any]:
28492869
"""
28502870
Open a point in time that can be used in subsequent searches
@@ -2854,8 +2874,13 @@ async def open_point_in_time(
28542874
:param index: A comma-separated list of index names to open point in time; use
28552875
`_all` or empty string to perform the operation on all indices
28562876
:param keep_alive: Specific the time to live for the point in time
2877+
:param expand_wildcards: Whether to expand wildcard expression to concrete indices
2878+
that are open, closed or both.
28572879
:param ignore_unavailable: Whether specified concrete indices should be ignored
28582880
when unavailable (missing or closed)
2881+
:param preference: Specify the node or shard the operation should be performed
2882+
on (default: random)
2883+
:param routing: Specific routing value
28592884
"""
28602885
if index in SKIP_IN_PATH:
28612886
raise ValueError("Empty value passed for parameter 'index'")
@@ -2867,14 +2892,20 @@ async def open_point_in_time(
28672892
__query["keep_alive"] = keep_alive
28682893
if error_trace is not None:
28692894
__query["error_trace"] = error_trace
2895+
if expand_wildcards is not None:
2896+
__query["expand_wildcards"] = expand_wildcards
28702897
if filter_path is not None:
28712898
__query["filter_path"] = filter_path
28722899
if human is not None:
28732900
__query["human"] = human
28742901
if ignore_unavailable is not None:
28752902
__query["ignore_unavailable"] = ignore_unavailable
2903+
if preference is not None:
2904+
__query["preference"] = preference
28762905
if pretty is not None:
28772906
__query["pretty"] = pretty
2907+
if routing is not None:
2908+
__query["routing"] = routing
28782909
__headers = {"accept": "application/json"}
28792910
return await self.perform_request( # type: ignore[return-value]
28802911
"POST", __path, params=__query, headers=__headers

elasticsearch/_sync/client/__init__.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2837,12 +2837,32 @@ def open_point_in_time(
28372837
index: t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]],
28382838
keep_alive: t.Union["t.Literal[-1]", "t.Literal[0]", str],
28392839
error_trace: t.Optional[bool] = None,
2840+
expand_wildcards: t.Optional[
2841+
t.Union[
2842+
t.Union["t.Literal['all', 'closed', 'hidden', 'none', 'open']", str],
2843+
t.Union[
2844+
t.List[
2845+
t.Union[
2846+
"t.Literal['all', 'closed', 'hidden', 'none', 'open']", str
2847+
]
2848+
],
2849+
t.Tuple[
2850+
t.Union[
2851+
"t.Literal['all', 'closed', 'hidden', 'none', 'open']", str
2852+
],
2853+
...,
2854+
],
2855+
],
2856+
]
2857+
] = None,
28402858
filter_path: t.Optional[
28412859
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
28422860
] = None,
28432861
human: t.Optional[bool] = None,
28442862
ignore_unavailable: t.Optional[bool] = None,
2863+
preference: t.Optional[str] = None,
28452864
pretty: t.Optional[bool] = None,
2865+
routing: t.Optional[str] = None,
28462866
) -> ObjectApiResponse[t.Any]:
28472867
"""
28482868
Open a point in time that can be used in subsequent searches
@@ -2852,8 +2872,13 @@ def open_point_in_time(
28522872
:param index: A comma-separated list of index names to open point in time; use
28532873
`_all` or empty string to perform the operation on all indices
28542874
:param keep_alive: Specific the time to live for the point in time
2875+
:param expand_wildcards: Whether to expand wildcard expression to concrete indices
2876+
that are open, closed or both.
28552877
:param ignore_unavailable: Whether specified concrete indices should be ignored
28562878
when unavailable (missing or closed)
2879+
:param preference: Specify the node or shard the operation should be performed
2880+
on (default: random)
2881+
:param routing: Specific routing value
28572882
"""
28582883
if index in SKIP_IN_PATH:
28592884
raise ValueError("Empty value passed for parameter 'index'")
@@ -2865,14 +2890,20 @@ def open_point_in_time(
28652890
__query["keep_alive"] = keep_alive
28662891
if error_trace is not None:
28672892
__query["error_trace"] = error_trace
2893+
if expand_wildcards is not None:
2894+
__query["expand_wildcards"] = expand_wildcards
28682895
if filter_path is not None:
28692896
__query["filter_path"] = filter_path
28702897
if human is not None:
28712898
__query["human"] = human
28722899
if ignore_unavailable is not None:
28732900
__query["ignore_unavailable"] = ignore_unavailable
2901+
if preference is not None:
2902+
__query["preference"] = preference
28742903
if pretty is not None:
28752904
__query["pretty"] = pretty
2905+
if routing is not None:
2906+
__query["routing"] = routing
28762907
__headers = {"accept": "application/json"}
28772908
return self.perform_request( # type: ignore[return-value]
28782909
"POST", __path, params=__query, headers=__headers

0 commit comments

Comments
 (0)