@@ -208,7 +208,6 @@ async def count(
208
208
h : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
209
209
help : t .Optional [bool ] = None ,
210
210
human : t .Optional [bool ] = None ,
211
- master_timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
212
211
pretty : t .Optional [bool ] = None ,
213
212
s : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
214
213
v : t .Optional [bool ] = None ,
@@ -231,7 +230,6 @@ async def count(
231
230
:param h: List of columns to appear in the response. Supports simple wildcards.
232
231
:param help: When set to `true` will output available columns. This option can't
233
232
be combined with any other query string option.
234
- :param master_timeout: Period to wait for a connection to the master node.
235
233
:param s: List of columns that determine how the table should be sorted. Sorting
236
234
defaults to ascending and can be changed by setting `:asc` or `:desc` as
237
235
a suffix to the column name.
@@ -257,8 +255,6 @@ async def count(
257
255
__query ["help" ] = help
258
256
if human is not None :
259
257
__query ["human" ] = human
260
- if master_timeout is not None :
261
- __query ["master_timeout" ] = master_timeout
262
258
if pretty is not None :
263
259
__query ["pretty" ] = pretty
264
260
if s is not None :
@@ -276,59 +272,15 @@ async def count(
276
272
)
277
273
278
274
@_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 :
293
276
"""
294
277
Get CAT help. Returns help for the CAT APIs.
295
278
296
279
`<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.
308
280
"""
309
281
__path_parts : t .Dict [str , str ] = {}
310
282
__path = "/_cat"
311
283
__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
332
284
__headers = {"accept" : "text/plain" }
333
285
return await self .perform_request ( # type: ignore[return-value]
334
286
"GET" ,
@@ -520,7 +472,6 @@ async def ml_data_frame_analytics(
520
472
] = None ,
521
473
help : t .Optional [bool ] = None ,
522
474
human : t .Optional [bool ] = None ,
523
- master_timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
524
475
pretty : t .Optional [bool ] = None ,
525
476
s : t .Optional [
526
477
t .Union [
@@ -570,7 +521,9 @@ async def ml_data_frame_analytics(
570
521
],
571
522
]
572
523
] = 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 ,
574
527
v : t .Optional [bool ] = None ,
575
528
) -> t .Union [ObjectApiResponse [t .Any ], TextApiResponse ]:
576
529
"""
@@ -591,7 +544,6 @@ async def ml_data_frame_analytics(
591
544
:param h: Comma-separated list of column names to display.
592
545
:param help: When set to `true` will output available columns. This option can't
593
546
be combined with any other query string option.
594
- :param master_timeout: Period to wait for a connection to the master node.
595
547
:param s: Comma-separated list of column names or column aliases used to sort
596
548
the response.
597
549
:param time: Unit used to display time values.
@@ -621,8 +573,6 @@ async def ml_data_frame_analytics(
621
573
__query ["help" ] = help
622
574
if human is not None :
623
575
__query ["human" ] = human
624
- if master_timeout is not None :
625
- __query ["master_timeout" ] = master_timeout
626
576
if pretty is not None :
627
577
__query ["pretty" ] = pretty
628
578
if s is not None :
@@ -692,7 +642,6 @@ async def ml_datafeeds(
692
642
] = None ,
693
643
help : t .Optional [bool ] = None ,
694
644
human : t .Optional [bool ] = None ,
695
- master_timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
696
645
pretty : t .Optional [bool ] = None ,
697
646
s : t .Optional [
698
647
t .Union [
@@ -763,7 +712,6 @@ async def ml_datafeeds(
763
712
:param h: Comma-separated list of column names to display.
764
713
:param help: When set to `true` will output available columns. This option can't
765
714
be combined with any other query string option.
766
- :param master_timeout: Period to wait for a connection to the master node.
767
715
:param s: Comma-separated list of column names or column aliases used to sort
768
716
the response.
769
717
:param time: The unit used to display time values.
@@ -791,8 +739,6 @@ async def ml_datafeeds(
791
739
__query ["help" ] = help
792
740
if human is not None :
793
741
__query ["human" ] = human
794
- if master_timeout is not None :
795
- __query ["master_timeout" ] = master_timeout
796
742
if pretty is not None :
797
743
__query ["pretty" ] = pretty
798
744
if s is not None :
@@ -961,7 +907,6 @@ async def ml_jobs(
961
907
] = None ,
962
908
help : t .Optional [bool ] = None ,
963
909
human : t .Optional [bool ] = None ,
964
- master_timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
965
910
pretty : t .Optional [bool ] = None ,
966
911
s : t .Optional [
967
912
t .Union [
@@ -1129,7 +1074,6 @@ async def ml_jobs(
1129
1074
:param h: Comma-separated list of column names to display.
1130
1075
:param help: When set to `true` will output available columns. This option can't
1131
1076
be combined with any other query string option.
1132
- :param master_timeout: Period to wait for a connection to the master node.
1133
1077
:param s: Comma-separated list of column names or column aliases used to sort
1134
1078
the response.
1135
1079
:param time: The unit used to display time values.
@@ -1159,8 +1103,6 @@ async def ml_jobs(
1159
1103
__query ["help" ] = help
1160
1104
if human is not None :
1161
1105
__query ["human" ] = human
1162
- if master_timeout is not None :
1163
- __query ["master_timeout" ] = master_timeout
1164
1106
if pretty is not None :
1165
1107
__query ["pretty" ] = pretty
1166
1108
if s is not None :
@@ -1240,7 +1182,6 @@ async def ml_trained_models(
1240
1182
] = None ,
1241
1183
help : t .Optional [bool ] = None ,
1242
1184
human : t .Optional [bool ] = None ,
1243
- master_timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
1244
1185
pretty : t .Optional [bool ] = None ,
1245
1186
s : t .Optional [
1246
1187
t .Union [
@@ -1287,6 +1228,9 @@ async def ml_trained_models(
1287
1228
]
1288
1229
] = None ,
1289
1230
size : t .Optional [int ] = None ,
1231
+ time : t .Optional [
1232
+ t .Union [str , t .Literal ["d" , "h" , "m" , "micros" , "ms" , "nanos" , "s" ]]
1233
+ ] = None ,
1290
1234
v : t .Optional [bool ] = None ,
1291
1235
) -> t .Union [ObjectApiResponse [t .Any ], TextApiResponse ]:
1292
1236
"""
@@ -1312,10 +1256,10 @@ async def ml_trained_models(
1312
1256
:param h: A comma-separated list of column names to display.
1313
1257
:param help: When set to `true` will output available columns. This option can't
1314
1258
be combined with any other query string option.
1315
- :param master_timeout: Period to wait for a connection to the master node.
1316
1259
:param s: A comma-separated list of column names or aliases used to sort the
1317
1260
response.
1318
1261
:param size: The maximum number of transforms to display.
1262
+ :param time: Unit used to display time values.
1319
1263
:param v: When set to `true` will enable verbose output.
1320
1264
"""
1321
1265
__path_parts : t .Dict [str , str ]
@@ -1344,14 +1288,14 @@ async def ml_trained_models(
1344
1288
__query ["help" ] = help
1345
1289
if human is not None :
1346
1290
__query ["human" ] = human
1347
- if master_timeout is not None :
1348
- __query ["master_timeout" ] = master_timeout
1349
1291
if pretty is not None :
1350
1292
__query ["pretty" ] = pretty
1351
1293
if s is not None :
1352
1294
__query ["s" ] = s
1353
1295
if size is not None :
1354
1296
__query ["size" ] = size
1297
+ if time is not None :
1298
+ __query ["time" ] = time
1355
1299
if v is not None :
1356
1300
__query ["v" ] = v
1357
1301
__headers = {"accept" : "text/plain,application/json" }
@@ -1460,7 +1404,6 @@ async def transforms(
1460
1404
] = None ,
1461
1405
help : t .Optional [bool ] = None ,
1462
1406
human : t .Optional [bool ] = None ,
1463
- master_timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
1464
1407
pretty : t .Optional [bool ] = None ,
1465
1408
s : t .Optional [
1466
1409
t .Union [
@@ -1574,7 +1517,6 @@ async def transforms(
1574
1517
:param h: Comma-separated list of column names to display.
1575
1518
:param help: When set to `true` will output available columns. This option can't
1576
1519
be combined with any other query string option.
1577
- :param master_timeout: Period to wait for a connection to the master node.
1578
1520
:param s: Comma-separated list of column names or column aliases used to sort
1579
1521
the response.
1580
1522
:param size: The maximum number of transforms to obtain.
@@ -1605,8 +1547,6 @@ async def transforms(
1605
1547
__query ["help" ] = help
1606
1548
if human is not None :
1607
1549
__query ["human" ] = human
1608
- if master_timeout is not None :
1609
- __query ["master_timeout" ] = master_timeout
1610
1550
if pretty is not None :
1611
1551
__query ["pretty" ] = pretty
1612
1552
if s is not None :
0 commit comments