elasticsearch 8.17.1__py3-none-any.whl → 9.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. elasticsearch/__init__.py +2 -2
  2. elasticsearch/_async/client/__init__.py +2125 -1053
  3. elasticsearch/_async/client/_base.py +1 -2
  4. elasticsearch/_async/client/async_search.py +46 -35
  5. elasticsearch/_async/client/autoscaling.py +32 -26
  6. elasticsearch/_async/client/cat.py +244 -176
  7. elasticsearch/_async/client/ccr.py +268 -128
  8. elasticsearch/_async/client/cluster.py +191 -164
  9. elasticsearch/_async/client/connector.py +226 -116
  10. elasticsearch/_async/client/dangling_indices.py +22 -16
  11. elasticsearch/_async/client/enrich.py +51 -11
  12. elasticsearch/_async/client/eql.py +54 -13
  13. elasticsearch/_async/client/esql.py +351 -7
  14. elasticsearch/_async/client/features.py +37 -27
  15. elasticsearch/_async/client/fleet.py +32 -22
  16. elasticsearch/_async/client/graph.py +10 -9
  17. elasticsearch/_async/client/ilm.py +115 -77
  18. elasticsearch/_async/client/indices.py +1119 -772
  19. elasticsearch/_async/client/inference.py +1933 -84
  20. elasticsearch/_async/client/ingest.py +83 -50
  21. elasticsearch/_async/client/license.py +90 -38
  22. elasticsearch/_async/client/logstash.py +20 -9
  23. elasticsearch/_async/client/migration.py +26 -17
  24. elasticsearch/_async/client/ml.py +646 -374
  25. elasticsearch/_async/client/monitoring.py +6 -3
  26. elasticsearch/_async/client/nodes.py +52 -54
  27. elasticsearch/_async/client/query_rules.py +59 -33
  28. elasticsearch/_async/client/rollup.py +124 -86
  29. elasticsearch/_async/client/search_application.py +60 -32
  30. elasticsearch/_async/client/searchable_snapshots.py +25 -12
  31. elasticsearch/_async/client/security.py +903 -562
  32. elasticsearch/_async/client/shutdown.py +34 -36
  33. elasticsearch/_async/client/simulate.py +22 -28
  34. elasticsearch/_async/client/slm.py +65 -40
  35. elasticsearch/_async/client/snapshot.py +454 -327
  36. elasticsearch/_async/client/sql.py +43 -22
  37. elasticsearch/_async/client/ssl.py +17 -18
  38. elasticsearch/_async/client/synonyms.py +58 -37
  39. elasticsearch/_async/client/tasks.py +77 -48
  40. elasticsearch/_async/client/text_structure.py +65 -56
  41. elasticsearch/_async/client/transform.py +124 -93
  42. elasticsearch/_async/client/watcher.py +117 -73
  43. elasticsearch/_async/client/xpack.py +18 -9
  44. elasticsearch/_async/helpers.py +1 -2
  45. elasticsearch/_sync/client/__init__.py +2125 -1053
  46. elasticsearch/_sync/client/_base.py +1 -2
  47. elasticsearch/_sync/client/async_search.py +46 -35
  48. elasticsearch/_sync/client/autoscaling.py +32 -26
  49. elasticsearch/_sync/client/cat.py +244 -176
  50. elasticsearch/_sync/client/ccr.py +268 -128
  51. elasticsearch/_sync/client/cluster.py +191 -164
  52. elasticsearch/_sync/client/connector.py +226 -116
  53. elasticsearch/_sync/client/dangling_indices.py +22 -16
  54. elasticsearch/_sync/client/enrich.py +51 -11
  55. elasticsearch/_sync/client/eql.py +54 -13
  56. elasticsearch/_sync/client/esql.py +351 -7
  57. elasticsearch/_sync/client/features.py +37 -27
  58. elasticsearch/_sync/client/fleet.py +32 -22
  59. elasticsearch/_sync/client/graph.py +10 -9
  60. elasticsearch/_sync/client/ilm.py +115 -77
  61. elasticsearch/_sync/client/indices.py +1119 -772
  62. elasticsearch/_sync/client/inference.py +1933 -84
  63. elasticsearch/_sync/client/ingest.py +83 -50
  64. elasticsearch/_sync/client/license.py +90 -38
  65. elasticsearch/_sync/client/logstash.py +20 -9
  66. elasticsearch/_sync/client/migration.py +26 -17
  67. elasticsearch/_sync/client/ml.py +646 -374
  68. elasticsearch/_sync/client/monitoring.py +6 -3
  69. elasticsearch/_sync/client/nodes.py +52 -54
  70. elasticsearch/_sync/client/query_rules.py +59 -33
  71. elasticsearch/_sync/client/rollup.py +124 -86
  72. elasticsearch/_sync/client/search_application.py +60 -32
  73. elasticsearch/_sync/client/searchable_snapshots.py +25 -12
  74. elasticsearch/_sync/client/security.py +903 -562
  75. elasticsearch/_sync/client/shutdown.py +34 -36
  76. elasticsearch/_sync/client/simulate.py +22 -28
  77. elasticsearch/_sync/client/slm.py +65 -40
  78. elasticsearch/_sync/client/snapshot.py +454 -327
  79. elasticsearch/_sync/client/sql.py +43 -22
  80. elasticsearch/_sync/client/ssl.py +17 -18
  81. elasticsearch/_sync/client/synonyms.py +58 -37
  82. elasticsearch/_sync/client/tasks.py +77 -48
  83. elasticsearch/_sync/client/text_structure.py +65 -56
  84. elasticsearch/_sync/client/transform.py +124 -93
  85. elasticsearch/_sync/client/utils.py +1 -41
  86. elasticsearch/_sync/client/watcher.py +117 -73
  87. elasticsearch/_sync/client/xpack.py +18 -9
  88. elasticsearch/_version.py +1 -1
  89. elasticsearch/client.py +2 -0
  90. elasticsearch/dsl/__init__.py +203 -0
  91. elasticsearch/dsl/_async/__init__.py +16 -0
  92. elasticsearch/dsl/_async/document.py +522 -0
  93. elasticsearch/dsl/_async/faceted_search.py +50 -0
  94. elasticsearch/dsl/_async/index.py +639 -0
  95. elasticsearch/dsl/_async/mapping.py +49 -0
  96. elasticsearch/dsl/_async/search.py +237 -0
  97. elasticsearch/dsl/_async/update_by_query.py +47 -0
  98. elasticsearch/dsl/_sync/__init__.py +16 -0
  99. elasticsearch/dsl/_sync/document.py +514 -0
  100. elasticsearch/dsl/_sync/faceted_search.py +50 -0
  101. elasticsearch/dsl/_sync/index.py +597 -0
  102. elasticsearch/dsl/_sync/mapping.py +49 -0
  103. elasticsearch/dsl/_sync/search.py +230 -0
  104. elasticsearch/dsl/_sync/update_by_query.py +45 -0
  105. elasticsearch/dsl/aggs.py +3734 -0
  106. elasticsearch/dsl/analysis.py +341 -0
  107. elasticsearch/dsl/async_connections.py +37 -0
  108. elasticsearch/dsl/connections.py +142 -0
  109. elasticsearch/dsl/document.py +20 -0
  110. elasticsearch/dsl/document_base.py +444 -0
  111. elasticsearch/dsl/exceptions.py +32 -0
  112. elasticsearch/dsl/faceted_search.py +28 -0
  113. elasticsearch/dsl/faceted_search_base.py +489 -0
  114. elasticsearch/dsl/field.py +4392 -0
  115. elasticsearch/dsl/function.py +180 -0
  116. elasticsearch/dsl/index.py +23 -0
  117. elasticsearch/dsl/index_base.py +178 -0
  118. elasticsearch/dsl/mapping.py +19 -0
  119. elasticsearch/dsl/mapping_base.py +219 -0
  120. elasticsearch/dsl/query.py +2822 -0
  121. elasticsearch/dsl/response/__init__.py +388 -0
  122. elasticsearch/dsl/response/aggs.py +100 -0
  123. elasticsearch/dsl/response/hit.py +53 -0
  124. elasticsearch/dsl/search.py +20 -0
  125. elasticsearch/dsl/search_base.py +1053 -0
  126. elasticsearch/dsl/serializer.py +34 -0
  127. elasticsearch/dsl/types.py +6453 -0
  128. elasticsearch/dsl/update_by_query.py +19 -0
  129. elasticsearch/dsl/update_by_query_base.py +149 -0
  130. elasticsearch/dsl/utils.py +687 -0
  131. elasticsearch/dsl/wrappers.py +144 -0
  132. elasticsearch/helpers/actions.py +1 -1
  133. elasticsearch/helpers/vectorstore/_async/strategies.py +12 -12
  134. elasticsearch/helpers/vectorstore/_sync/strategies.py +12 -12
  135. elasticsearch/helpers/vectorstore/_sync/vectorstore.py +4 -1
  136. {elasticsearch-8.17.1.dist-info → elasticsearch-9.0.0.dist-info}/METADATA +12 -15
  137. elasticsearch-9.0.0.dist-info/RECORD +160 -0
  138. elasticsearch/transport.py +0 -57
  139. elasticsearch-8.17.1.dist-info/RECORD +0 -119
  140. {elasticsearch-8.17.1.dist-info → elasticsearch-9.0.0.dist-info}/WHEEL +0 -0
  141. {elasticsearch-8.17.1.dist-info → elasticsearch-9.0.0.dist-info}/licenses/LICENSE +0 -0
  142. {elasticsearch-8.17.1.dist-info → elasticsearch-9.0.0.dist-info}/licenses/NOTICE +0 -0
@@ -50,35 +50,37 @@ class CatClient(NamespacedClient):
50
50
  h: t.Optional[t.Union[str, t.Sequence[str]]] = None,
51
51
  help: t.Optional[bool] = None,
52
52
  human: t.Optional[bool] = None,
53
- local: t.Optional[bool] = None,
54
53
  master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
55
54
  pretty: t.Optional[bool] = None,
56
55
  s: t.Optional[t.Union[str, t.Sequence[str]]] = None,
57
56
  v: t.Optional[bool] = None,
58
57
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
59
58
  """
60
- Get aliases. Retrieves the cluster’s index aliases, including filter and routing
61
- information. The API does not return data stream aliases. CAT APIs are only intended
62
- for human consumption using the command line or the Kibana console. They are
63
- not intended for use by applications. For application consumption, use the aliases
64
- API.
59
+ .. raw:: html
60
+
61
+ <p>Get aliases.</p>
62
+ <p>Get the cluster's index aliases, including filter and routing information.
63
+ This API does not return data stream aliases.</p>
64
+ <p>IMPORTANT: CAT APIs are only intended for human consumption using the command line or the Kibana console. They are not intended for use by applications. For application consumption, use the aliases API.</p>
65
65
 
66
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-alias.html>`_
66
+
67
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-aliases>`_
67
68
 
68
69
  :param name: A comma-separated list of aliases to retrieve. Supports wildcards
69
70
  (`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`.
70
- :param expand_wildcards: Whether to expand wildcard expression to concrete indices
71
- that are open, closed or both.
71
+ :param expand_wildcards: The type of index that wildcard patterns can match.
72
+ If the request can target data streams, this argument determines whether
73
+ wildcard expressions match hidden data streams. It supports comma-separated
74
+ values, such as `open,hidden`.
72
75
  :param format: Specifies the format to return the columnar data in, can be set
73
76
  to `text`, `json`, `cbor`, `yaml`, or `smile`.
74
77
  :param h: List of columns to appear in the response. Supports simple wildcards.
75
78
  :param help: When set to `true` will output available columns. This option can't
76
79
  be combined with any other query string option.
77
- :param local: If `true`, the request computes the list of selected nodes from
78
- the local cluster state. If `false` the list of selected nodes are computed
79
- from the cluster state of the master node. In both cases the coordinating
80
- node will send requests for further information to each selected node.
81
- :param master_timeout: Period to wait for a connection to the master node.
80
+ :param master_timeout: The period to wait for a connection to the master node.
81
+ If the master node is not available before the timeout expires, the request
82
+ fails and returns an error. To indicated that the request should never timeout,
83
+ you can set it to `-1`.
82
84
  :param s: List of columns that determine how the table should be sorted. Sorting
83
85
  defaults to ascending and can be changed by setting `:asc` or `:desc` as
84
86
  a suffix to the column name.
@@ -106,8 +108,6 @@ class CatClient(NamespacedClient):
106
108
  __query["help"] = help
107
109
  if human is not None:
108
110
  __query["human"] = human
109
- if local is not None:
110
- __query["local"] = local
111
111
  if master_timeout is not None:
112
112
  __query["master_timeout"] = master_timeout
113
113
  if pretty is not None:
@@ -147,13 +147,16 @@ class CatClient(NamespacedClient):
147
147
  v: t.Optional[bool] = None,
148
148
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
149
149
  """
150
- Provides a snapshot of the number of shards allocated to each data node and their
151
- disk space. IMPORTANT: cat APIs are only intended for human consumption using
152
- the command line or Kibana console. They are not intended for use by applications.
150
+ .. raw:: html
151
+
152
+ <p>Get shard allocation information.</p>
153
+ <p>Get a snapshot of the number of shards allocated to each data node and their disk space.</p>
154
+ <p>IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.</p>
153
155
 
154
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-allocation.html>`_
155
156
 
156
- :param node_id: Comma-separated list of node identifiers or names used to limit
157
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-allocation>`_
158
+
159
+ :param node_id: A comma-separated list of node identifiers or names used to limit
157
160
  the returned information.
158
161
  :param bytes: The unit used to display byte values.
159
162
  :param format: Specifies the format to return the columnar data in, can be set
@@ -231,17 +234,19 @@ class CatClient(NamespacedClient):
231
234
  v: t.Optional[bool] = None,
232
235
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
233
236
  """
234
- Get component templates. Returns information about component templates in a cluster.
235
- Component templates are building blocks for constructing index templates that
236
- specify index mappings, settings, and aliases. CAT APIs are only intended for
237
- human consumption using the command line or Kibana console. They are not intended
238
- for use by applications. For application consumption, use the get component template
239
- API.
237
+ .. raw:: html
238
+
239
+ <p>Get component templates.</p>
240
+ <p>Get information about component templates in a cluster.
241
+ Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.</p>
242
+ <p>IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console.
243
+ They are not intended for use by applications. For application consumption, use the get component template API.</p>
240
244
 
241
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-component-templates.html>`_
242
245
 
243
- :param name: The name of the component template. Accepts wildcard expressions.
244
- If omitted, all component templates are returned.
246
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-component-templates>`_
247
+
248
+ :param name: The name of the component template. It accepts wildcard expressions.
249
+ If it is omitted, all component templates are returned.
245
250
  :param format: Specifies the format to return the columnar data in, can be set
246
251
  to `text`, `json`, `cbor`, `yaml`, or `smile`.
247
252
  :param h: List of columns to appear in the response. Supports simple wildcards.
@@ -251,7 +256,7 @@ class CatClient(NamespacedClient):
251
256
  the local cluster state. If `false` the list of selected nodes are computed
252
257
  from the cluster state of the master node. In both cases the coordinating
253
258
  node will send requests for further information to each selected node.
254
- :param master_timeout: Period to wait for a connection to the master node.
259
+ :param master_timeout: The period to wait for a connection to the master node.
255
260
  :param s: List of columns that determine how the table should be sorted. Sorting
256
261
  defaults to ascending and can be changed by setting `:asc` or `:desc` as
257
262
  a suffix to the column name.
@@ -313,17 +318,19 @@ class CatClient(NamespacedClient):
313
318
  v: t.Optional[bool] = None,
314
319
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
315
320
  """
316
- Get a document count. Provides quick access to a document count for a data stream,
317
- an index, or an entire cluster. The document count only includes live documents,
318
- not deleted documents which have not yet been removed by the merge process. CAT
319
- APIs are only intended for human consumption using the command line or Kibana
320
- console. They are not intended for use by applications. For application consumption,
321
- use the count API.
321
+ .. raw:: html
322
322
 
323
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-count.html>`_
323
+ <p>Get a document count.</p>
324
+ <p>Get quick access to a document count for a data stream, an index, or an entire cluster.
325
+ The document count only includes live documents, not deleted documents which have not yet been removed by the merge process.</p>
326
+ <p>IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console.
327
+ They are not intended for use by applications. For application consumption, use the count API.</p>
324
328
 
325
- :param index: Comma-separated list of data streams, indices, and aliases used
326
- to limit the request. Supports wildcards (`*`). To target all data streams
329
+
330
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-count>`_
331
+
332
+ :param index: A comma-separated list of data streams, indices, and aliases used
333
+ to limit the request. It supports wildcards (`*`). To target all data streams
327
334
  and indices, omit this parameter or use `*` or `_all`.
328
335
  :param format: Specifies the format to return the columnar data in, can be set
329
336
  to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -390,12 +397,15 @@ class CatClient(NamespacedClient):
390
397
  v: t.Optional[bool] = None,
391
398
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
392
399
  """
393
- Returns the amount of heap memory currently used by the field data cache on every
394
- data node in the cluster. IMPORTANT: cat APIs are only intended for human consumption
395
- using the command line or Kibana console. They are not intended for use by applications.
396
- For application consumption, use the nodes stats API.
400
+ .. raw:: html
401
+
402
+ <p>Get field data cache information.</p>
403
+ <p>Get the amount of heap memory currently used by the field data cache on every data node in the cluster.</p>
404
+ <p>IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console.
405
+ They are not intended for use by applications. For application consumption, use the nodes stats API.</p>
397
406
 
398
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-fielddata.html>`_
407
+
408
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-fielddata>`_
399
409
 
400
410
  :param fields: Comma-separated list of fields used to limit returned information.
401
411
  To retrieve all fields, omit this parameter.
@@ -467,19 +477,21 @@ class CatClient(NamespacedClient):
467
477
  v: t.Optional[bool] = None,
468
478
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
469
479
  """
470
- Returns the health status of a cluster, similar to the cluster health API. IMPORTANT:
471
- cat APIs are only intended for human consumption using the command line or Kibana
472
- console. They are not intended for use by applications. For application consumption,
473
- use the cluster health API. This API is often used to check malfunctioning clusters.
474
- To help you track cluster health alongside log files and alerting systems, the
475
- API returns timestamps in two formats: `HH:MM:SS`, which is human-readable but
476
- includes no date information; `Unix epoch time`, which is machine-sortable and
477
- includes date information. The latter format is useful for cluster recoveries
478
- that take multiple days. You can use the cat health API to verify cluster health
479
- across multiple nodes. You also can use the API to track the recovery of a large
480
- cluster over a longer period of time.
481
-
482
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-health.html>`_
480
+ .. raw:: html
481
+
482
+ <p>Get the cluster health status.</p>
483
+ <p>IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console.
484
+ They are not intended for use by applications. For application consumption, use the cluster health API.
485
+ This API is often used to check malfunctioning clusters.
486
+ To help you track cluster health alongside log files and alerting systems, the API returns timestamps in two formats:
487
+ <code>HH:MM:SS</code>, which is human-readable but includes no date information;
488
+ <code>Unix epoch time</code>, which is machine-sortable and includes date information.
489
+ The latter format is useful for cluster recoveries that take multiple days.
490
+ You can use the cat health API to verify cluster health across multiple nodes.
491
+ You also can use the API to track the recovery of a large cluster over a longer period of time.</p>
492
+
493
+
494
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-health>`_
483
495
 
484
496
  :param format: Specifies the format to return the columnar data in, can be set
485
497
  to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -531,9 +543,13 @@ class CatClient(NamespacedClient):
531
543
  @_rewrite_parameters()
532
544
  def help(self) -> TextApiResponse:
533
545
  """
534
- Get CAT help. Returns help for the CAT APIs.
546
+ .. raw:: html
547
+
548
+ <p>Get CAT help.</p>
549
+ <p>Get help for the CAT APIs.</p>
550
+
535
551
 
536
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat.html>`_
552
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-cat>`_
537
553
  """
538
554
  __path_parts: t.Dict[str, str] = {}
539
555
  __path = "/_cat"
@@ -582,18 +598,25 @@ class CatClient(NamespacedClient):
582
598
  v: t.Optional[bool] = None,
583
599
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
584
600
  """
585
- Get index information. Returns high-level information about indices in a cluster,
586
- including backing indices for data streams. Use this request to get the following
587
- information for each index in a cluster: - shard count - document count - deleted
588
- document count - primary store size - total store size of all shards, including
589
- shard replicas These metrics are retrieved directly from Lucene, which Elasticsearch
590
- uses internally to power indexing and search. As a result, all document counts
591
- include hidden nested documents. To get an accurate count of Elasticsearch documents,
592
- use the cat count or count APIs. CAT APIs are only intended for human consumption
593
- using the command line or Kibana console. They are not intended for use by applications.
594
- For application consumption, use an index endpoint.
595
-
596
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-indices.html>`_
601
+ .. raw:: html
602
+
603
+ <p>Get index information.</p>
604
+ <p>Get high-level information about indices in a cluster, including backing indices for data streams.</p>
605
+ <p>Use this request to get the following information for each index in a cluster:</p>
606
+ <ul>
607
+ <li>shard count</li>
608
+ <li>document count</li>
609
+ <li>deleted document count</li>
610
+ <li>primary store size</li>
611
+ <li>total store size of all shards, including shard replicas</li>
612
+ </ul>
613
+ <p>These metrics are retrieved directly from Lucene, which Elasticsearch uses internally to power indexing and search. As a result, all document counts include hidden nested documents.
614
+ To get an accurate count of Elasticsearch documents, use the cat count or count APIs.</p>
615
+ <p>CAT APIs are only intended for human consumption using the command line or Kibana console.
616
+ They are not intended for use by applications. For application consumption, use an index endpoint.</p>
617
+
618
+
619
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-indices>`_
597
620
 
598
621
  :param index: Comma-separated list of data streams, indices, and aliases used
599
622
  to limit the request. Supports wildcards (`*`). To target all data streams
@@ -684,12 +707,14 @@ class CatClient(NamespacedClient):
684
707
  v: t.Optional[bool] = None,
685
708
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
686
709
  """
687
- Returns information about the master node, including the ID, bound IP address,
688
- and name. IMPORTANT: cat APIs are only intended for human consumption using the
689
- command line or Kibana console. They are not intended for use by applications.
690
- For application consumption, use the nodes info API.
710
+ .. raw:: html
691
711
 
692
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-master.html>`_
712
+ <p>Get master node information.</p>
713
+ <p>Get information about the master node, including the ID, bound IP address, and name.</p>
714
+ <p>IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.</p>
715
+
716
+
717
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-master>`_
693
718
 
694
719
  :param format: Specifies the format to return the columnar data in, can be set
695
720
  to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -858,13 +883,16 @@ class CatClient(NamespacedClient):
858
883
  v: t.Optional[bool] = None,
859
884
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
860
885
  """
861
- Get data frame analytics jobs. Returns configuration and usage information about
862
- data frame analytics jobs. CAT APIs are only intended for human consumption using
863
- the Kibana console or command line. They are not intended for use by applications.
864
- For application consumption, use the get data frame analytics jobs statistics
865
- API.
886
+ .. raw:: html
887
+
888
+ <p>Get data frame analytics jobs.</p>
889
+ <p>Get configuration and usage information about data frame analytics jobs.</p>
890
+ <p>IMPORTANT: CAT APIs are only intended for human consumption using the Kibana
891
+ console or command line. They are not intended for use by applications. For
892
+ application consumption, use the get data frame analytics jobs statistics API.</p>
893
+
866
894
 
867
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-dfanalytics.html>`_
895
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-ml-data-frame-analytics>`_
868
896
 
869
897
  :param id: The ID of the data frame analytics to fetch
870
898
  :param allow_no_match: Whether to ignore if a wildcard expression matches no
@@ -1020,14 +1048,19 @@ class CatClient(NamespacedClient):
1020
1048
  v: t.Optional[bool] = None,
1021
1049
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
1022
1050
  """
1023
- Get datafeeds. Returns configuration and usage information about datafeeds. This
1024
- API returns a maximum of 10,000 datafeeds. If the Elasticsearch security features
1025
- are enabled, you must have `monitor_ml`, `monitor`, `manage_ml`, or `manage`
1026
- cluster privileges to use this API. CAT APIs are only intended for human consumption
1027
- using the Kibana console or command line. They are not intended for use by applications.
1028
- For application consumption, use the get datafeed statistics API.
1051
+ .. raw:: html
1029
1052
 
1030
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-datafeeds.html>`_
1053
+ <p>Get datafeeds.</p>
1054
+ <p>Get configuration and usage information about datafeeds.
1055
+ This API returns a maximum of 10,000 datafeeds.
1056
+ If the Elasticsearch security features are enabled, you must have <code>monitor_ml</code>, <code>monitor</code>, <code>manage_ml</code>, or <code>manage</code>
1057
+ cluster privileges to use this API.</p>
1058
+ <p>IMPORTANT: CAT APIs are only intended for human consumption using the Kibana
1059
+ console or command line. They are not intended for use by applications. For
1060
+ application consumption, use the get datafeed statistics API.</p>
1061
+
1062
+
1063
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-ml-datafeeds>`_
1031
1064
 
1032
1065
  :param datafeed_id: A numerical character string that uniquely identifies the
1033
1066
  datafeed.
@@ -1381,15 +1414,19 @@ class CatClient(NamespacedClient):
1381
1414
  v: t.Optional[bool] = None,
1382
1415
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
1383
1416
  """
1384
- Get anomaly detection jobs. Returns configuration and usage information for anomaly
1385
- detection jobs. This API returns a maximum of 10,000 jobs. If the Elasticsearch
1386
- security features are enabled, you must have `monitor_ml`, `monitor`, `manage_ml`,
1387
- or `manage` cluster privileges to use this API. CAT APIs are only intended for
1388
- human consumption using the Kibana console or command line. They are not intended
1389
- for use by applications. For application consumption, use the get anomaly detection
1390
- job statistics API.
1417
+ .. raw:: html
1418
+
1419
+ <p>Get anomaly detection jobs.</p>
1420
+ <p>Get configuration and usage information for anomaly detection jobs.
1421
+ This API returns a maximum of 10,000 jobs.
1422
+ If the Elasticsearch security features are enabled, you must have <code>monitor_ml</code>,
1423
+ <code>monitor</code>, <code>manage_ml</code>, or <code>manage</code> cluster privileges to use this API.</p>
1424
+ <p>IMPORTANT: CAT APIs are only intended for human consumption using the Kibana
1425
+ console or command line. They are not intended for use by applications. For
1426
+ application consumption, use the get anomaly detection job statistics API.</p>
1427
+
1391
1428
 
1392
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-anomaly-detectors.html>`_
1429
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-ml-jobs>`_
1393
1430
 
1394
1431
  :param job_id: Identifier for the anomaly detection job.
1395
1432
  :param allow_no_match: Specifies what to do when the request: * Contains wildcard
@@ -1565,12 +1602,16 @@ class CatClient(NamespacedClient):
1565
1602
  v: t.Optional[bool] = None,
1566
1603
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
1567
1604
  """
1568
- Get trained models. Returns configuration and usage information about inference
1569
- trained models. CAT APIs are only intended for human consumption using the Kibana
1570
- console or command line. They are not intended for use by applications. For application
1571
- consumption, use the get trained models statistics API.
1605
+ .. raw:: html
1572
1606
 
1573
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-trained-model.html>`_
1607
+ <p>Get trained models.</p>
1608
+ <p>Get configuration and usage information about inference trained models.</p>
1609
+ <p>IMPORTANT: CAT APIs are only intended for human consumption using the Kibana
1610
+ console or command line. They are not intended for use by applications. For
1611
+ application consumption, use the get trained models statistics API.</p>
1612
+
1613
+
1614
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-ml-trained-models>`_
1574
1615
 
1575
1616
  :param model_id: A unique identifier for the trained model.
1576
1617
  :param allow_no_match: Specifies what to do when the request: contains wildcard
@@ -1656,12 +1697,14 @@ class CatClient(NamespacedClient):
1656
1697
  v: t.Optional[bool] = None,
1657
1698
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
1658
1699
  """
1659
- Returns information about custom node attributes. IMPORTANT: cat APIs are only
1660
- intended for human consumption using the command line or Kibana console. They
1661
- are not intended for use by applications. For application consumption, use the
1662
- nodes info API.
1700
+ .. raw:: html
1701
+
1702
+ <p>Get node attribute information.</p>
1703
+ <p>Get information about custom node attributes.
1704
+ IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.</p>
1705
+
1663
1706
 
1664
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-nodeattrs.html>`_
1707
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-nodeattrs>`_
1665
1708
 
1666
1709
  :param format: Specifies the format to return the columnar data in, can be set
1667
1710
  to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -1737,12 +1780,14 @@ class CatClient(NamespacedClient):
1737
1780
  v: t.Optional[bool] = None,
1738
1781
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
1739
1782
  """
1740
- Returns information about the nodes in a cluster. IMPORTANT: cat APIs are only
1741
- intended for human consumption using the command line or Kibana console. They
1742
- are not intended for use by applications. For application consumption, use the
1743
- nodes info API.
1783
+ .. raw:: html
1744
1784
 
1745
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-nodes.html>`_
1785
+ <p>Get node information.</p>
1786
+ <p>Get information about the nodes in a cluster.
1787
+ IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.</p>
1788
+
1789
+
1790
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-nodes>`_
1746
1791
 
1747
1792
  :param bytes: The unit used to display byte values.
1748
1793
  :param format: Specifies the format to return the columnar data in, can be set
@@ -1822,12 +1867,14 @@ class CatClient(NamespacedClient):
1822
1867
  v: t.Optional[bool] = None,
1823
1868
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
1824
1869
  """
1825
- Returns cluster-level changes that have not yet been executed. IMPORTANT: cat
1826
- APIs are only intended for human consumption using the command line or Kibana
1827
- console. They are not intended for use by applications. For application consumption,
1828
- use the pending cluster tasks API.
1870
+ .. raw:: html
1871
+
1872
+ <p>Get pending task information.</p>
1873
+ <p>Get information about cluster-level changes that have not yet taken effect.
1874
+ IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the pending cluster tasks API.</p>
1875
+
1829
1876
 
1830
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-pending-tasks.html>`_
1877
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-pending-tasks>`_
1831
1878
 
1832
1879
  :param format: Specifies the format to return the columnar data in, can be set
1833
1880
  to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -1900,12 +1947,14 @@ class CatClient(NamespacedClient):
1900
1947
  v: t.Optional[bool] = None,
1901
1948
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
1902
1949
  """
1903
- Returns a list of plugins running on each node of a cluster. IMPORTANT: cat APIs
1904
- are only intended for human consumption using the command line or Kibana console.
1905
- They are not intended for use by applications. For application consumption, use
1906
- the nodes info API.
1950
+ .. raw:: html
1907
1951
 
1908
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-plugins.html>`_
1952
+ <p>Get plugin information.</p>
1953
+ <p>Get a list of plugins running on each node of a cluster.
1954
+ IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.</p>
1955
+
1956
+
1957
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-plugins>`_
1909
1958
 
1910
1959
  :param format: Specifies the format to return the columnar data in, can be set
1911
1960
  to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -1984,16 +2033,16 @@ class CatClient(NamespacedClient):
1984
2033
  v: t.Optional[bool] = None,
1985
2034
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
1986
2035
  """
1987
- Returns information about ongoing and completed shard recoveries. Shard recovery
1988
- is the process of initializing a shard copy, such as restoring a primary shard
1989
- from a snapshot or syncing a replica shard from a primary shard. When a shard
1990
- recovery completes, the recovered shard is available for search and indexing.
1991
- For data streams, the API returns information about the stream’s backing indices.
1992
- IMPORTANT: cat APIs are only intended for human consumption using the command
1993
- line or Kibana console. They are not intended for use by applications. For application
1994
- consumption, use the index recovery API.
2036
+ .. raw:: html
2037
+
2038
+ <p>Get shard recovery information.</p>
2039
+ <p>Get information about ongoing and completed shard recoveries.
2040
+ Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or syncing a replica shard from a primary shard. When a shard recovery completes, the recovered shard is available for search and indexing.
2041
+ For data streams, the API returns information about the stream’s backing indices.
2042
+ IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index recovery API.</p>
2043
+
1995
2044
 
1996
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-recovery.html>`_
2045
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-recovery>`_
1997
2046
 
1998
2047
  :param index: A comma-separated list of data streams, indices, and aliases used
1999
2048
  to limit the request. Supports wildcards (`*`). To target all data streams
@@ -2074,12 +2123,14 @@ class CatClient(NamespacedClient):
2074
2123
  v: t.Optional[bool] = None,
2075
2124
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
2076
2125
  """
2077
- Returns the snapshot repositories for a cluster. IMPORTANT: cat APIs are only
2078
- intended for human consumption using the command line or Kibana console. They
2079
- are not intended for use by applications. For application consumption, use the
2080
- get snapshot repository API.
2126
+ .. raw:: html
2081
2127
 
2082
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-repositories.html>`_
2128
+ <p>Get snapshot repository information.</p>
2129
+ <p>Get a list of snapshot repositories for a cluster.
2130
+ IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot repository API.</p>
2131
+
2132
+
2133
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-repositories>`_
2083
2134
 
2084
2135
  :param format: Specifies the format to return the columnar data in, can be set
2085
2136
  to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -2152,13 +2203,15 @@ class CatClient(NamespacedClient):
2152
2203
  v: t.Optional[bool] = None,
2153
2204
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
2154
2205
  """
2155
- Returns low-level information about the Lucene segments in index shards. For
2156
- data streams, the API returns information about the backing indices. IMPORTANT:
2157
- cat APIs are only intended for human consumption using the command line or Kibana
2158
- console. They are not intended for use by applications. For application consumption,
2159
- use the index segments API.
2206
+ .. raw:: html
2207
+
2208
+ <p>Get segment information.</p>
2209
+ <p>Get low-level information about the Lucene segments in index shards.
2210
+ For data streams, the API returns information about the backing indices.
2211
+ IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index segments API.</p>
2212
+
2160
2213
 
2161
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-segments.html>`_
2214
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-segments>`_
2162
2215
 
2163
2216
  :param index: A comma-separated list of data streams, indices, and aliases used
2164
2217
  to limit the request. Supports wildcards (`*`). To target all data streams
@@ -2244,12 +2297,15 @@ class CatClient(NamespacedClient):
2244
2297
  v: t.Optional[bool] = None,
2245
2298
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
2246
2299
  """
2247
- Returns information about the shards in a cluster. For data streams, the API
2248
- returns information about the backing indices. IMPORTANT: cat APIs are only intended
2249
- for human consumption using the command line or Kibana console. They are not
2250
- intended for use by applications.
2300
+ .. raw:: html
2251
2301
 
2252
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-shards.html>`_
2302
+ <p>Get shard information.</p>
2303
+ <p>Get information about the shards in a cluster.
2304
+ For data streams, the API returns information about the backing indices.
2305
+ IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.</p>
2306
+
2307
+
2308
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-shards>`_
2253
2309
 
2254
2310
  :param index: A comma-separated list of data streams, indices, and aliases used
2255
2311
  to limit the request. Supports wildcards (`*`). To target all data streams
@@ -2330,13 +2386,15 @@ class CatClient(NamespacedClient):
2330
2386
  v: t.Optional[bool] = None,
2331
2387
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
2332
2388
  """
2333
- Returns information about the snapshots stored in one or more repositories. A
2334
- snapshot is a backup of an index or running Elasticsearch cluster. IMPORTANT:
2335
- cat APIs are only intended for human consumption using the command line or Kibana
2336
- console. They are not intended for use by applications. For application consumption,
2337
- use the get snapshot API.
2389
+ .. raw:: html
2390
+
2391
+ <p>Get snapshot information.</p>
2392
+ <p>Get information about the snapshots stored in one or more repositories.
2393
+ A snapshot is a backup of an index or running Elasticsearch cluster.
2394
+ IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot API.</p>
2395
+
2338
2396
 
2339
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-snapshots.html>`_
2397
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-snapshots>`_
2340
2398
 
2341
2399
  :param repository: A comma-separated list of snapshot repositories used to limit
2342
2400
  the request. Accepts wildcard expressions. `_all` returns all repositories.
@@ -2422,12 +2480,14 @@ class CatClient(NamespacedClient):
2422
2480
  wait_for_completion: t.Optional[bool] = None,
2423
2481
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
2424
2482
  """
2425
- Returns information about tasks currently executing in the cluster. IMPORTANT:
2426
- cat APIs are only intended for human consumption using the command line or Kibana
2427
- console. They are not intended for use by applications. For application consumption,
2428
- use the task management API.
2483
+ .. raw:: html
2429
2484
 
2430
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/tasks.html>`_
2485
+ <p>Get task information.</p>
2486
+ <p>Get information about tasks currently running in the cluster.
2487
+ IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the task management API.</p>
2488
+
2489
+
2490
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-tasks>`_
2431
2491
 
2432
2492
  :param actions: The task action names, which are used to limit the response.
2433
2493
  :param detailed: If `true`, the response includes detailed information about
@@ -2513,13 +2573,15 @@ class CatClient(NamespacedClient):
2513
2573
  v: t.Optional[bool] = None,
2514
2574
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
2515
2575
  """
2516
- Returns information about index templates in a cluster. You can use index templates
2517
- to apply index settings and field mappings to new indices at creation. IMPORTANT:
2518
- cat APIs are only intended for human consumption using the command line or Kibana
2519
- console. They are not intended for use by applications. For application consumption,
2520
- use the get index template API.
2576
+ .. raw:: html
2577
+
2578
+ <p>Get index template information.</p>
2579
+ <p>Get information about the index templates in a cluster.
2580
+ You can use index templates to apply index settings and field mappings to new indices at creation.
2581
+ IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get index template API.</p>
2582
+
2521
2583
 
2522
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-templates.html>`_
2584
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-templates>`_
2523
2585
 
2524
2586
  :param name: The name of the template to return. Accepts wildcard expressions.
2525
2587
  If omitted, all templates are returned.
@@ -2599,13 +2661,15 @@ class CatClient(NamespacedClient):
2599
2661
  v: t.Optional[bool] = None,
2600
2662
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
2601
2663
  """
2602
- Returns thread pool statistics for each node in a cluster. Returned information
2603
- includes all built-in thread pools and custom thread pools. IMPORTANT: cat APIs
2604
- are only intended for human consumption using the command line or Kibana console.
2605
- They are not intended for use by applications. For application consumption, use
2606
- the nodes info API.
2664
+ .. raw:: html
2607
2665
 
2608
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-thread-pool.html>`_
2666
+ <p>Get thread pool statistics.</p>
2667
+ <p>Get thread pool statistics for each node in a cluster.
2668
+ Returned information includes all built-in thread pools and custom thread pools.
2669
+ IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.</p>
2670
+
2671
+
2672
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-thread-pool>`_
2609
2673
 
2610
2674
  :param thread_pool_patterns: A comma-separated list of thread pool names used
2611
2675
  to limit the request. Accepts wildcard expressions.
@@ -2853,12 +2917,16 @@ class CatClient(NamespacedClient):
2853
2917
  v: t.Optional[bool] = None,
2854
2918
  ) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
2855
2919
  """
2856
- Get transforms. Returns configuration and usage information about transforms.
2857
- CAT APIs are only intended for human consumption using the Kibana console or
2858
- command line. They are not intended for use by applications. For application
2859
- consumption, use the get transform statistics API.
2920
+ .. raw:: html
2921
+
2922
+ <p>Get transform information.</p>
2923
+ <p>Get configuration and usage information about transforms.</p>
2924
+ <p>CAT APIs are only intended for human consumption using the Kibana
2925
+ console or command line. They are not intended for use by applications. For
2926
+ application consumption, use the get transform statistics API.</p>
2927
+
2860
2928
 
2861
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-transforms.html>`_
2929
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-transforms>`_
2862
2930
 
2863
2931
  :param transform_id: A transform identifier or a wildcard expression. If you
2864
2932
  do not specify one of these options, the API returns information for all