@@ -47,7 +47,34 @@ async def aliases(
47
47
] = None ,
48
48
filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
49
49
format : t .Optional [str ] = None ,
50
- h : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
50
+ h : t .Optional [
51
+ t .Union [
52
+ t .Sequence [
53
+ t .Union [
54
+ str ,
55
+ t .Literal [
56
+ "alias" ,
57
+ "filter" ,
58
+ "index" ,
59
+ "is_write_index" ,
60
+ "routing.index" ,
61
+ "routing.search" ,
62
+ ],
63
+ ]
64
+ ],
65
+ t .Union [
66
+ str ,
67
+ t .Literal [
68
+ "alias" ,
69
+ "filter" ,
70
+ "index" ,
71
+ "is_write_index" ,
72
+ "routing.index" ,
73
+ "routing.search" ,
74
+ ],
75
+ ],
76
+ ]
77
+ ] = None ,
51
78
help : t .Optional [bool ] = None ,
52
79
human : t .Optional [bool ] = None ,
53
80
local : t .Optional [bool ] = None ,
@@ -74,7 +101,8 @@ async def aliases(
74
101
values, such as `open,hidden`.
75
102
:param format: Specifies the format to return the columnar data in, can be set
76
103
to `text`, `json`, `cbor`, `yaml`, or `smile`.
77
- :param h: List of columns to appear in the response. Supports simple wildcards.
104
+ :param h: A comma-separated list of columns names to display. It supports simple
105
+ wildcards.
78
106
:param help: When set to `true` will output available columns. This option can't
79
107
be combined with any other query string option.
80
108
:param local: If `true`, the request computes the list of selected nodes from
@@ -137,7 +165,48 @@ async def allocation(
137
165
error_trace : t .Optional [bool ] = None ,
138
166
filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
139
167
format : t .Optional [str ] = None ,
140
- h : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
168
+ h : t .Optional [
169
+ t .Union [
170
+ t .Sequence [
171
+ t .Union [
172
+ str ,
173
+ t .Literal [
174
+ "disk.avail" ,
175
+ "disk.indices" ,
176
+ "disk.indices.forecast" ,
177
+ "disk.percent" ,
178
+ "disk.total" ,
179
+ "disk.used" ,
180
+ "host" ,
181
+ "ip" ,
182
+ "node" ,
183
+ "node.role" ,
184
+ "shards" ,
185
+ "shards.undesired" ,
186
+ "write_load.forecast" ,
187
+ ],
188
+ ]
189
+ ],
190
+ t .Union [
191
+ str ,
192
+ t .Literal [
193
+ "disk.avail" ,
194
+ "disk.indices" ,
195
+ "disk.indices.forecast" ,
196
+ "disk.percent" ,
197
+ "disk.total" ,
198
+ "disk.used" ,
199
+ "host" ,
200
+ "ip" ,
201
+ "node" ,
202
+ "node.role" ,
203
+ "shards" ,
204
+ "shards.undesired" ,
205
+ "write_load.forecast" ,
206
+ ],
207
+ ],
208
+ ]
209
+ ] = None ,
141
210
help : t .Optional [bool ] = None ,
142
211
human : t .Optional [bool ] = None ,
143
212
local : t .Optional [bool ] = None ,
@@ -161,7 +230,8 @@ async def allocation(
161
230
:param bytes: The unit used to display byte values.
162
231
:param format: Specifies the format to return the columnar data in, can be set
163
232
to `text`, `json`, `cbor`, `yaml`, or `smile`.
164
- :param h: List of columns to appear in the response. Supports simple wildcards.
233
+ :param h: A comma-separated list of columns names to display. It supports simple
234
+ wildcards.
165
235
:param help: When set to `true` will output available columns. This option can't
166
236
be combined with any other query string option.
167
237
:param local: If `true`, the request computes the list of selected nodes from
@@ -224,7 +294,36 @@ async def component_templates(
224
294
error_trace : t .Optional [bool ] = None ,
225
295
filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
226
296
format : t .Optional [str ] = None ,
227
- h : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
297
+ h : t .Optional [
298
+ t .Union [
299
+ t .Sequence [
300
+ t .Union [
301
+ str ,
302
+ t .Literal [
303
+ "alias_count" ,
304
+ "included_in" ,
305
+ "mapping_count" ,
306
+ "metadata_count" ,
307
+ "name" ,
308
+ "settings_count" ,
309
+ "version" ,
310
+ ],
311
+ ]
312
+ ],
313
+ t .Union [
314
+ str ,
315
+ t .Literal [
316
+ "alias_count" ,
317
+ "included_in" ,
318
+ "mapping_count" ,
319
+ "metadata_count" ,
320
+ "name" ,
321
+ "settings_count" ,
322
+ "version" ,
323
+ ],
324
+ ],
325
+ ]
326
+ ] = None ,
228
327
help : t .Optional [bool ] = None ,
229
328
human : t .Optional [bool ] = None ,
230
329
local : t .Optional [bool ] = None ,
@@ -249,7 +348,8 @@ async def component_templates(
249
348
If it is omitted, all component templates are returned.
250
349
:param format: Specifies the format to return the columnar data in, can be set
251
350
to `text`, `json`, `cbor`, `yaml`, or `smile`.
252
- :param h: List of columns to appear in the response. Supports simple wildcards.
351
+ :param h: A comma-separated list of columns names to display. It supports simple
352
+ wildcards.
253
353
:param help: When set to `true` will output available columns. This option can't
254
354
be combined with any other query string option.
255
355
:param local: If `true`, the request computes the list of selected nodes from
@@ -310,7 +410,12 @@ async def count(
310
410
error_trace : t .Optional [bool ] = None ,
311
411
filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
312
412
format : t .Optional [str ] = None ,
313
- h : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
413
+ h : t .Optional [
414
+ t .Union [
415
+ t .Sequence [t .Union [str , t .Literal ["count" , "epoch" , "timestamp" ]]],
416
+ t .Union [str , t .Literal ["count" , "epoch" , "timestamp" ]],
417
+ ]
418
+ ] = None ,
314
419
help : t .Optional [bool ] = None ,
315
420
human : t .Optional [bool ] = None ,
316
421
pretty : t .Optional [bool ] = None ,
@@ -334,7 +439,8 @@ async def count(
334
439
and indices, omit this parameter or use `*` or `_all`.
335
440
:param format: Specifies the format to return the columnar data in, can be set
336
441
to `text`, `json`, `cbor`, `yaml`, or `smile`.
337
- :param h: List of columns to appear in the response. Supports simple wildcards.
442
+ :param h: A comma-separated list of columns names to display. It supports simple
443
+ wildcards.
338
444
:param help: When set to `true` will output available columns. This option can't
339
445
be combined with any other query string option.
340
446
:param s: List of columns that determine how the table should be sorted. Sorting
@@ -389,7 +495,14 @@ async def fielddata(
389
495
error_trace : t .Optional [bool ] = None ,
390
496
filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
391
497
format : t .Optional [str ] = None ,
392
- h : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
498
+ h : t .Optional [
499
+ t .Union [
500
+ t .Sequence [
501
+ t .Union [str , t .Literal ["field" , "host" , "id" , "ip" , "node" , "size" ]]
502
+ ],
503
+ t .Union [str , t .Literal ["field" , "host" , "id" , "ip" , "node" , "size" ]],
504
+ ]
505
+ ] = None ,
393
506
help : t .Optional [bool ] = None ,
394
507
human : t .Optional [bool ] = None ,
395
508
pretty : t .Optional [bool ] = None ,
@@ -412,7 +525,8 @@ async def fielddata(
412
525
:param bytes: The unit used to display byte values.
413
526
:param format: Specifies the format to return the columnar data in, can be set
414
527
to `text`, `json`, `cbor`, `yaml`, or `smile`.
415
- :param h: List of columns to appear in the response. Supports simple wildcards.
528
+ :param h: A comma-separated list of columns names to display. It supports simple
529
+ wildcards.
416
530
:param help: When set to `true` will output available columns. This option can't
417
531
be combined with any other query string option.
418
532
:param s: List of columns that determine how the table should be sorted. Sorting
0 commit comments