@@ -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
0 commit comments