@@ -77,11 +77,11 @@ async def get(
77
77
error_trace : t .Optional [bool ] = None ,
78
78
filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
79
79
human : t .Optional [bool ] = None ,
80
- keep_alive : t .Optional [t .Union [" t.Literal[-1]" , " t.Literal[0]" , str ]] = None ,
80
+ keep_alive : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
81
81
pretty : t .Optional [bool ] = None ,
82
82
typed_keys : t .Optional [bool ] = None ,
83
83
wait_for_completion_timeout : t .Optional [
84
- t .Union [" t.Literal[-1]" , " t.Literal[0]" , str ]
84
+ t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]
85
85
] = None ,
86
86
) -> ObjectApiResponse [t .Any ]:
87
87
"""
@@ -236,16 +236,16 @@ async def submit(
236
236
batched_reduce_size : t .Optional [int ] = None ,
237
237
ccs_minimize_roundtrips : t .Optional [bool ] = None ,
238
238
collapse : t .Optional [t .Mapping [str , t .Any ]] = None ,
239
- default_operator : t .Optional [t .Union [" t.Literal[' and', 'or']" , str ]] = None ,
239
+ default_operator : t .Optional [t .Union [str , t .Literal [" and" , "or" ] ]] = None ,
240
240
df : t .Optional [str ] = None ,
241
241
docvalue_fields : t .Optional [t .Sequence [t .Mapping [str , t .Any ]]] = None ,
242
242
error_trace : t .Optional [bool ] = None ,
243
243
expand_wildcards : t .Optional [
244
244
t .Union [
245
245
t .Sequence [
246
- t .Union [" t.Literal[' all', ' closed', ' hidden', ' none', ' open']" , str ]
246
+ t .Union [str , t .Literal [" all" , " closed" , " hidden" , " none" , " open" ] ]
247
247
],
248
- t .Union [" t.Literal[' all', ' closed', ' hidden', ' none', ' open']" , str ],
248
+ t .Union [str , t .Literal [" all" , " closed" , " hidden" , " none" , " open" ] ],
249
249
]
250
250
] = None ,
251
251
explain : t .Optional [bool ] = None ,
@@ -258,7 +258,7 @@ async def submit(
258
258
ignore_throttled : t .Optional [bool ] = None ,
259
259
ignore_unavailable : t .Optional [bool ] = None ,
260
260
indices_boost : t .Optional [t .Sequence [t .Mapping [str , float ]]] = None ,
261
- keep_alive : t .Optional [t .Union [" t.Literal[-1]" , " t.Literal[0]" , str ]] = None ,
261
+ keep_alive : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
262
262
keep_on_completion : t .Optional [bool ] = None ,
263
263
knn : t .Optional [
264
264
t .Union [t .Mapping [str , t .Any ], t .Sequence [t .Mapping [str , t .Any ]]]
@@ -283,12 +283,12 @@ async def submit(
283
283
routing : t .Optional [str ] = None ,
284
284
runtime_mappings : t .Optional [t .Mapping [str , t .Mapping [str , t .Any ]]] = None ,
285
285
script_fields : t .Optional [t .Mapping [str , t .Mapping [str , t .Any ]]] = None ,
286
- scroll : t .Optional [t .Union [" t.Literal[-1]" , " t.Literal[0]" , str ]] = None ,
286
+ scroll : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
287
287
search_after : t .Optional [
288
288
t .Sequence [t .Union [None , bool , float , int , str , t .Any ]]
289
289
] = None ,
290
290
search_type : t .Optional [
291
- t .Union [" t.Literal[' dfs_query_then_fetch', ' query_then_fetch']" , str ]
291
+ t .Union [str , t .Literal [" dfs_query_then_fetch" , " query_then_fetch" ] ]
292
292
] = None ,
293
293
seq_no_primary_term : t .Optional [bool ] = None ,
294
294
size : t .Optional [int ] = None ,
@@ -307,7 +307,7 @@ async def submit(
307
307
suggest : t .Optional [t .Mapping [str , t .Any ]] = None ,
308
308
suggest_field : t .Optional [str ] = None ,
309
309
suggest_mode : t .Optional [
310
- t .Union [" t.Literal[' always', ' missing', ' popular']" , str ]
310
+ t .Union [str , t .Literal [" always" , " missing" , " popular" ] ]
311
311
] = None ,
312
312
suggest_size : t .Optional [int ] = None ,
313
313
suggest_text : t .Optional [str ] = None ,
@@ -318,7 +318,7 @@ async def submit(
318
318
typed_keys : t .Optional [bool ] = None ,
319
319
version : t .Optional [bool ] = None ,
320
320
wait_for_completion_timeout : t .Optional [
321
- t .Union [" t.Literal[-1]" , " t.Literal[0]" , str ]
321
+ t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]
322
322
] = None ,
323
323
body : t .Optional [t .Dict [str , t .Any ]] = None ,
324
324
) -> ObjectApiResponse [t .Any ]:
0 commit comments