@@ -208,7 +208,6 @@ async def count(
208208 h : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
209209 help : t .Optional [bool ] = None ,
210210 human : t .Optional [bool ] = None ,
211- master_timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
212211 pretty : t .Optional [bool ] = None ,
213212 s : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
214213 v : t .Optional [bool ] = None ,
@@ -231,7 +230,6 @@ async def count(
231230 :param h: List of columns to appear in the response. Supports simple wildcards.
232231 :param help: When set to `true` will output available columns. This option can't
233232 be combined with any other query string option.
234- :param master_timeout: Period to wait for a connection to the master node.
235233 :param s: List of columns that determine how the table should be sorted. Sorting
236234 defaults to ascending and can be changed by setting `:asc` or `:desc` as
237235 a suffix to the column name.
@@ -257,8 +255,6 @@ async def count(
257255 __query ["help" ] = help
258256 if human is not None :
259257 __query ["human" ] = human
260- if master_timeout is not None :
261- __query ["master_timeout" ] = master_timeout
262258 if pretty is not None :
263259 __query ["pretty" ] = pretty
264260 if s is not None :
@@ -276,59 +272,15 @@ async def count(
276272 )
277273
278274 @_rewrite_parameters ()
279- async def help (
280- self ,
281- * ,
282- error_trace : t .Optional [bool ] = None ,
283- filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
284- format : t .Optional [str ] = None ,
285- h : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
286- help : t .Optional [bool ] = None ,
287- human : t .Optional [bool ] = None ,
288- master_timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
289- pretty : t .Optional [bool ] = None ,
290- s : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
291- v : t .Optional [bool ] = None ,
292- ) -> TextApiResponse :
275+ async def help (self ) -> TextApiResponse :
293276 """
294277 Get CAT help. Returns help for the CAT APIs.
295278
296279 `<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html>`_
297-
298- :param format: Specifies the format to return the columnar data in, can be set
299- to `text`, `json`, `cbor`, `yaml`, or `smile`.
300- :param h: List of columns to appear in the response. Supports simple wildcards.
301- :param help: When set to `true` will output available columns. This option can't
302- be combined with any other query string option.
303- :param master_timeout: Period to wait for a connection to the master node.
304- :param s: List of columns that determine how the table should be sorted. Sorting
305- defaults to ascending and can be changed by setting `:asc` or `:desc` as
306- a suffix to the column name.
307- :param v: When set to `true` will enable verbose output.
308280 """
309281 __path_parts : t .Dict [str , str ] = {}
310282 __path = "/_cat"
311283 __query : t .Dict [str , t .Any ] = {}
312- if error_trace is not None :
313- __query ["error_trace" ] = error_trace
314- if filter_path is not None :
315- __query ["filter_path" ] = filter_path
316- if format is not None :
317- __query ["format" ] = format
318- if h is not None :
319- __query ["h" ] = h
320- if help is not None :
321- __query ["help" ] = help
322- if human is not None :
323- __query ["human" ] = human
324- if master_timeout is not None :
325- __query ["master_timeout" ] = master_timeout
326- if pretty is not None :
327- __query ["pretty" ] = pretty
328- if s is not None :
329- __query ["s" ] = s
330- if v is not None :
331- __query ["v" ] = v
332284 __headers = {"accept" : "text/plain" }
333285 return await self .perform_request ( # type: ignore[return-value]
334286 "GET" ,
@@ -520,7 +472,6 @@ async def ml_data_frame_analytics(
520472 ] = None ,
521473 help : t .Optional [bool ] = None ,
522474 human : t .Optional [bool ] = None ,
523- master_timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
524475 pretty : t .Optional [bool ] = None ,
525476 s : t .Optional [
526477 t .Union [
@@ -570,7 +521,9 @@ async def ml_data_frame_analytics(
570521 ],
571522 ]
572523 ] = None ,
573- time : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
524+ time : t .Optional [
525+ t .Union [str , t .Literal ["d" , "h" , "m" , "micros" , "ms" , "nanos" , "s" ]]
526+ ] = None ,
574527 v : t .Optional [bool ] = None ,
575528 ) -> t .Union [ObjectApiResponse [t .Any ], TextApiResponse ]:
576529 """
@@ -591,7 +544,6 @@ async def ml_data_frame_analytics(
591544 :param h: Comma-separated list of column names to display.
592545 :param help: When set to `true` will output available columns. This option can't
593546 be combined with any other query string option.
594- :param master_timeout: Period to wait for a connection to the master node.
595547 :param s: Comma-separated list of column names or column aliases used to sort
596548 the response.
597549 :param time: Unit used to display time values.
@@ -621,8 +573,6 @@ async def ml_data_frame_analytics(
621573 __query ["help" ] = help
622574 if human is not None :
623575 __query ["human" ] = human
624- if master_timeout is not None :
625- __query ["master_timeout" ] = master_timeout
626576 if pretty is not None :
627577 __query ["pretty" ] = pretty
628578 if s is not None :
@@ -692,7 +642,6 @@ async def ml_datafeeds(
692642 ] = None ,
693643 help : t .Optional [bool ] = None ,
694644 human : t .Optional [bool ] = None ,
695- master_timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
696645 pretty : t .Optional [bool ] = None ,
697646 s : t .Optional [
698647 t .Union [
@@ -763,7 +712,6 @@ async def ml_datafeeds(
763712 :param h: Comma-separated list of column names to display.
764713 :param help: When set to `true` will output available columns. This option can't
765714 be combined with any other query string option.
766- :param master_timeout: Period to wait for a connection to the master node.
767715 :param s: Comma-separated list of column names or column aliases used to sort
768716 the response.
769717 :param time: The unit used to display time values.
@@ -791,8 +739,6 @@ async def ml_datafeeds(
791739 __query ["help" ] = help
792740 if human is not None :
793741 __query ["human" ] = human
794- if master_timeout is not None :
795- __query ["master_timeout" ] = master_timeout
796742 if pretty is not None :
797743 __query ["pretty" ] = pretty
798744 if s is not None :
@@ -961,7 +907,6 @@ async def ml_jobs(
961907 ] = None ,
962908 help : t .Optional [bool ] = None ,
963909 human : t .Optional [bool ] = None ,
964- master_timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
965910 pretty : t .Optional [bool ] = None ,
966911 s : t .Optional [
967912 t .Union [
@@ -1129,7 +1074,6 @@ async def ml_jobs(
11291074 :param h: Comma-separated list of column names to display.
11301075 :param help: When set to `true` will output available columns. This option can't
11311076 be combined with any other query string option.
1132- :param master_timeout: Period to wait for a connection to the master node.
11331077 :param s: Comma-separated list of column names or column aliases used to sort
11341078 the response.
11351079 :param time: The unit used to display time values.
@@ -1159,8 +1103,6 @@ async def ml_jobs(
11591103 __query ["help" ] = help
11601104 if human is not None :
11611105 __query ["human" ] = human
1162- if master_timeout is not None :
1163- __query ["master_timeout" ] = master_timeout
11641106 if pretty is not None :
11651107 __query ["pretty" ] = pretty
11661108 if s is not None :
@@ -1240,7 +1182,6 @@ async def ml_trained_models(
12401182 ] = None ,
12411183 help : t .Optional [bool ] = None ,
12421184 human : t .Optional [bool ] = None ,
1243- master_timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
12441185 pretty : t .Optional [bool ] = None ,
12451186 s : t .Optional [
12461187 t .Union [
@@ -1287,6 +1228,9 @@ async def ml_trained_models(
12871228 ]
12881229 ] = None ,
12891230 size : t .Optional [int ] = None ,
1231+ time : t .Optional [
1232+ t .Union [str , t .Literal ["d" , "h" , "m" , "micros" , "ms" , "nanos" , "s" ]]
1233+ ] = None ,
12901234 v : t .Optional [bool ] = None ,
12911235 ) -> t .Union [ObjectApiResponse [t .Any ], TextApiResponse ]:
12921236 """
@@ -1312,10 +1256,10 @@ async def ml_trained_models(
13121256 :param h: A comma-separated list of column names to display.
13131257 :param help: When set to `true` will output available columns. This option can't
13141258 be combined with any other query string option.
1315- :param master_timeout: Period to wait for a connection to the master node.
13161259 :param s: A comma-separated list of column names or aliases used to sort the
13171260 response.
13181261 :param size: The maximum number of transforms to display.
1262+ :param time: Unit used to display time values.
13191263 :param v: When set to `true` will enable verbose output.
13201264 """
13211265 __path_parts : t .Dict [str , str ]
@@ -1344,14 +1288,14 @@ async def ml_trained_models(
13441288 __query ["help" ] = help
13451289 if human is not None :
13461290 __query ["human" ] = human
1347- if master_timeout is not None :
1348- __query ["master_timeout" ] = master_timeout
13491291 if pretty is not None :
13501292 __query ["pretty" ] = pretty
13511293 if s is not None :
13521294 __query ["s" ] = s
13531295 if size is not None :
13541296 __query ["size" ] = size
1297+ if time is not None :
1298+ __query ["time" ] = time
13551299 if v is not None :
13561300 __query ["v" ] = v
13571301 __headers = {"accept" : "text/plain,application/json" }
@@ -1460,7 +1404,6 @@ async def transforms(
14601404 ] = None ,
14611405 help : t .Optional [bool ] = None ,
14621406 human : t .Optional [bool ] = None ,
1463- master_timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
14641407 pretty : t .Optional [bool ] = None ,
14651408 s : t .Optional [
14661409 t .Union [
@@ -1574,7 +1517,6 @@ async def transforms(
15741517 :param h: Comma-separated list of column names to display.
15751518 :param help: When set to `true` will output available columns. This option can't
15761519 be combined with any other query string option.
1577- :param master_timeout: Period to wait for a connection to the master node.
15781520 :param s: Comma-separated list of column names or column aliases used to sort
15791521 the response.
15801522 :param size: The maximum number of transforms to obtain.
@@ -1605,8 +1547,6 @@ async def transforms(
16051547 __query ["help" ] = help
16061548 if human is not None :
16071549 __query ["human" ] = human
1608- if master_timeout is not None :
1609- __query ["master_timeout" ] = master_timeout
16101550 if pretty is not None :
16111551 __query ["pretty" ] = pretty
16121552 if s is not None :
0 commit comments