Skip to content

Commit eb0f622

Browse files
Auto-generated API code (#2229)
1 parent 1b6f84a commit eb0f622

File tree

2 files changed

+90
-54
lines changed

2 files changed

+90
-54
lines changed

elasticsearch/_async/client/cat.py

Lines changed: 45 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ async def aliases(
6969
7070
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html>`_
7171
72-
:param name: A comma-separated list of alias names to return
72+
:param name: A comma-separated list of aliases to retrieve. Supports wildcards
73+
(`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`.
7374
:param expand_wildcards: Whether to expand wildcard expression to concrete indices
7475
that are open, closed or both.
7576
:param format: Specifies the format to return the columnar data in, can be set
@@ -153,9 +154,9 @@ async def allocation(
153154
154155
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html>`_
155156
156-
:param node_id: A comma-separated list of node IDs or names to limit the returned
157-
information
158-
:param bytes: The unit in which to display byte values
157+
:param node_id: Comma-separated list of node identifiers or names used to limit
158+
the returned information.
159+
:param bytes: The unit used to display byte values.
159160
:param format: Specifies the format to return the columnar data in, can be set
160161
to `text`, `json`, `cbor`, `yaml`, or `smile`.
161162
:param h: List of columns to appear in the response. Supports simple wildcards.
@@ -231,7 +232,8 @@ async def component_templates(
231232
232233
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-component-templates.html>`_
233234
234-
:param name: A pattern that returned component template names must match
235+
:param name: The name of the component template. Accepts wildcard expressions.
236+
If omitted, all component templates are returned.
235237
:param format: Specifies the format to return the columnar data in, can be set
236238
to `text`, `json`, `cbor`, `yaml`, or `smile`.
237239
:param h: List of columns to appear in the response. Supports simple wildcards.
@@ -306,7 +308,9 @@ async def count(
306308
307309
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html>`_
308310
309-
:param index: A comma-separated list of index names to limit the returned information
311+
:param index: Comma-separated list of data streams, indices, and aliases used
312+
to limit the request. Supports wildcards (`*`). To target all data streams
313+
and indices, omit this parameter or use `*` or `_all`.
310314
:param format: Specifies the format to return the columnar data in, can be set
311315
to `text`, `json`, `cbor`, `yaml`, or `smile`.
312316
:param h: List of columns to appear in the response. Supports simple wildcards.
@@ -386,8 +390,9 @@ async def fielddata(
386390
387391
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html>`_
388392
389-
:param fields: A comma-separated list of fields to return the fielddata size
390-
:param bytes: The unit in which to display byte values
393+
:param fields: Comma-separated list of fields used to limit returned information.
394+
To retrieve all fields, omit this parameter.
395+
:param bytes: The unit used to display byte values.
391396
:param format: Specifies the format to return the columnar data in, can be set
392397
to `text`, `json`, `cbor`, `yaml`, or `smile`.
393398
:param h: List of columns to appear in the response. Supports simple wildcards.
@@ -455,6 +460,9 @@ async def health(
455460
] = None,
456461
pretty: t.Optional[bool] = None,
457462
s: t.Optional[t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]] = None,
463+
time: t.Optional[
464+
t.Union["t.Literal['d', 'h', 'm', 'micros', 'ms', 'nanos', 's']", str]
465+
] = None,
458466
ts: t.Optional[bool] = None,
459467
v: t.Optional[bool] = None,
460468
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
@@ -476,7 +484,8 @@ async def health(
476484
:param s: List of columns that determine how the table should be sorted. Sorting
477485
defaults to ascending and can be changed by setting `:asc` or `:desc` as
478486
a suffix to the column name.
479-
:param ts: Set to false to disable timestamping
487+
:param time: The unit used to display time values.
488+
:param ts: If true, returns `HH:MM:SS` and Unix epoch timestamps.
480489
:param v: When set to `true` will enable verbose output.
481490
"""
482491
__path = "/_cat/health"
@@ -501,6 +510,8 @@ async def health(
501510
__query["pretty"] = pretty
502511
if s is not None:
503512
__query["s"] = s
513+
if time is not None:
514+
__query["time"] = time
504515
if ts is not None:
505516
__query["ts"] = ts
506517
if v is not None:
@@ -633,29 +644,30 @@ async def indices(
633644
634645
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html>`_
635646
636-
:param index: A comma-separated list of index names to limit the returned information
637-
:param bytes: The unit in which to display byte values
638-
:param expand_wildcards: Whether to expand wildcard expression to concrete indices
639-
that are open, closed or both.
647+
:param index: Comma-separated list of data streams, indices, and aliases used
648+
to limit the request. Supports wildcards (`*`). To target all data streams
649+
and indices, omit this parameter or use `*` or `_all`.
650+
:param bytes: The unit used to display byte values.
651+
:param expand_wildcards: The type of index that wildcard patterns can match.
640652
:param format: Specifies the format to return the columnar data in, can be set
641653
to `text`, `json`, `cbor`, `yaml`, or `smile`.
642654
:param h: List of columns to appear in the response. Supports simple wildcards.
643-
:param health: A health status ("green", "yellow", or "red" to filter only indices
644-
matching the specified health status
655+
:param health: The health status used to limit returned indices. By default,
656+
the response includes indices of any health status.
645657
:param help: When set to `true` will output available columns. This option can't
646658
be combined with any other query string option.
647-
:param include_unloaded_segments: If set to true segment stats will include stats
648-
for segments that are not currently loaded into memory
659+
:param include_unloaded_segments: If true, the response includes information
660+
from segments that are not loaded into memory.
649661
:param local: If `true`, the request computes the list of selected nodes from
650662
the local cluster state. If `false` the list of selected nodes are computed
651663
from the cluster state of the master node. In both cases the coordinating
652664
node will send requests for further information to each selected node.
653665
:param master_timeout: Period to wait for a connection to the master node.
654-
:param pri: Set to true to return stats only for primary shards
666+
:param pri: If true, the response only includes information from primary shards.
655667
:param s: List of columns that determine how the table should be sorted. Sorting
656668
defaults to ascending and can be changed by setting `:asc` or `:desc` as
657669
a suffix to the column name.
658-
:param time: The unit in which to display time values
670+
:param time: The unit used to display time values.
659671
:param v: When set to `true` will enable verbose output.
660672
"""
661673
if index not in SKIP_IN_PATH:
@@ -1399,6 +1411,7 @@ async def nodes(
13991411
h: t.Optional[t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]] = None,
14001412
help: t.Optional[bool] = None,
14011413
human: t.Optional[bool] = None,
1414+
include_unloaded_segments: t.Optional[bool] = None,
14021415
local: t.Optional[bool] = None,
14031416
master_timeout: t.Optional[
14041417
t.Union["t.Literal[-1]", "t.Literal[0]", str]
@@ -1412,14 +1425,16 @@ async def nodes(
14121425
14131426
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html>`_
14141427
1415-
:param bytes: The unit in which to display byte values
1428+
:param bytes: The unit used to display byte values.
14161429
:param format: Specifies the format to return the columnar data in, can be set
14171430
to `text`, `json`, `cbor`, `yaml`, or `smile`.
1418-
:param full_id: Return the full node ID instead of the shortened version (default:
1419-
false)
1431+
:param full_id: If `true`, return the full node ID. If `false`, return the shortened
1432+
node ID.
14201433
:param h: List of columns to appear in the response. Supports simple wildcards.
14211434
:param help: When set to `true` will output available columns. This option can't
14221435
be combined with any other query string option.
1436+
:param include_unloaded_segments: If true, the response includes information
1437+
from segments that are not loaded into memory.
14231438
:param local: If `true`, the request computes the list of selected nodes from
14241439
the local cluster state. If `false` the list of selected nodes are computed
14251440
from the cluster state of the master node. In both cases the coordinating
@@ -1448,6 +1463,8 @@ async def nodes(
14481463
__query["help"] = help
14491464
if human is not None:
14501465
__query["human"] = human
1466+
if include_unloaded_segments is not None:
1467+
__query["include_unloaded_segments"] = include_unloaded_segments
14511468
if local is not None:
14521469
__query["local"] = local
14531470
if master_timeout is not None:
@@ -1632,12 +1649,13 @@ async def recovery(
16321649
16331650
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html>`_
16341651
1635-
:param index: Comma-separated list or wildcard expression of index names to limit
1636-
the returned information
1637-
:param active_only: If `true`, the response only includes ongoing shard recoveries
1638-
:param bytes: The unit in which to display byte values
1652+
:param index: A comma-separated list of data streams, indices, and aliases used
1653+
to limit the request. Supports wildcards (`*`). To target all data streams
1654+
and indices, omit this parameter or use `*` or `_all`.
1655+
:param active_only: If `true`, the response only includes ongoing shard recoveries.
1656+
:param bytes: The unit used to display byte values.
16391657
:param detailed: If `true`, the response includes detailed information about
1640-
shard recoveries
1658+
shard recoveries.
16411659
:param format: Specifies the format to return the columnar data in, can be set
16421660
to `text`, `json`, `cbor`, `yaml`, or `smile`.
16431661
:param h: List of columns to appear in the response. Supports simple wildcards.

0 commit comments

Comments
 (0)