elasticsearch 8.12.1__py3-none-any.whl → 8.13.1__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.
- elasticsearch/__init__.py +7 -0
- elasticsearch/_async/client/__init__.py +477 -128
- elasticsearch/_async/client/_base.py +41 -1
- elasticsearch/_async/client/async_search.py +40 -12
- elasticsearch/_async/client/autoscaling.py +37 -11
- elasticsearch/_async/client/cat.py +260 -69
- elasticsearch/_async/client/ccr.py +123 -38
- elasticsearch/_async/client/cluster.py +153 -42
- elasticsearch/_async/client/dangling_indices.py +27 -8
- elasticsearch/_async/client/enrich.py +48 -14
- elasticsearch/_async/client/eql.py +38 -12
- elasticsearch/_async/client/esql.py +10 -2
- elasticsearch/_async/client/features.py +17 -4
- elasticsearch/_async/client/fleet.py +30 -7
- elasticsearch/_async/client/graph.py +11 -3
- elasticsearch/_async/client/ilm.py +101 -29
- elasticsearch/_async/client/indices.py +688 -181
- elasticsearch/_async/client/inference.py +111 -44
- elasticsearch/_async/client/ingest.py +59 -16
- elasticsearch/_async/client/license.py +58 -14
- elasticsearch/_async/client/logstash.py +31 -9
- elasticsearch/_async/client/migration.py +28 -7
- elasticsearch/_async/client/ml.py +781 -214
- elasticsearch/_async/client/monitoring.py +10 -2
- elasticsearch/_async/client/nodes.py +103 -29
- elasticsearch/_async/client/query_ruleset.py +37 -11
- elasticsearch/_async/client/rollup.py +79 -24
- elasticsearch/_async/client/search_application.py +76 -23
- elasticsearch/_async/client/searchable_snapshots.py +49 -12
- elasticsearch/_async/client/security.py +544 -143
- elasticsearch/_async/client/shutdown.py +28 -6
- elasticsearch/_async/client/slm.py +80 -22
- elasticsearch/_async/client/snapshot.py +140 -54
- elasticsearch/_async/client/sql.py +55 -15
- elasticsearch/_async/client/ssl.py +9 -2
- elasticsearch/_async/client/synonyms.py +75 -21
- elasticsearch/_async/client/tasks.py +29 -8
- elasticsearch/_async/client/text_structure.py +74 -2
- elasticsearch/_async/client/transform.py +106 -32
- elasticsearch/_async/client/watcher.py +110 -31
- elasticsearch/_async/client/xpack.py +16 -4
- elasticsearch/_async/helpers.py +1 -1
- elasticsearch/_otel.py +92 -0
- elasticsearch/_sync/client/__init__.py +477 -128
- elasticsearch/_sync/client/_base.py +41 -1
- elasticsearch/_sync/client/async_search.py +40 -12
- elasticsearch/_sync/client/autoscaling.py +37 -11
- elasticsearch/_sync/client/cat.py +260 -69
- elasticsearch/_sync/client/ccr.py +123 -38
- elasticsearch/_sync/client/cluster.py +153 -42
- elasticsearch/_sync/client/dangling_indices.py +27 -8
- elasticsearch/_sync/client/enrich.py +48 -14
- elasticsearch/_sync/client/eql.py +38 -12
- elasticsearch/_sync/client/esql.py +10 -2
- elasticsearch/_sync/client/features.py +17 -4
- elasticsearch/_sync/client/fleet.py +30 -7
- elasticsearch/_sync/client/graph.py +11 -3
- elasticsearch/_sync/client/ilm.py +101 -29
- elasticsearch/_sync/client/indices.py +688 -181
- elasticsearch/_sync/client/inference.py +111 -44
- elasticsearch/_sync/client/ingest.py +59 -16
- elasticsearch/_sync/client/license.py +58 -14
- elasticsearch/_sync/client/logstash.py +31 -9
- elasticsearch/_sync/client/migration.py +28 -7
- elasticsearch/_sync/client/ml.py +781 -214
- elasticsearch/_sync/client/monitoring.py +10 -2
- elasticsearch/_sync/client/nodes.py +103 -29
- elasticsearch/_sync/client/query_ruleset.py +37 -11
- elasticsearch/_sync/client/rollup.py +79 -24
- elasticsearch/_sync/client/search_application.py +76 -23
- elasticsearch/_sync/client/searchable_snapshots.py +49 -12
- elasticsearch/_sync/client/security.py +544 -143
- elasticsearch/_sync/client/shutdown.py +28 -6
- elasticsearch/_sync/client/slm.py +80 -22
- elasticsearch/_sync/client/snapshot.py +140 -54
- elasticsearch/_sync/client/sql.py +55 -15
- elasticsearch/_sync/client/ssl.py +9 -2
- elasticsearch/_sync/client/synonyms.py +75 -21
- elasticsearch/_sync/client/tasks.py +29 -8
- elasticsearch/_sync/client/text_structure.py +74 -2
- elasticsearch/_sync/client/transform.py +106 -32
- elasticsearch/_sync/client/watcher.py +110 -31
- elasticsearch/_sync/client/xpack.py +16 -4
- elasticsearch/_version.py +1 -1
- elasticsearch/helpers/actions.py +1 -1
- elasticsearch/helpers/vectorstore/__init__.py +62 -0
- elasticsearch/helpers/vectorstore/_async/__init__.py +16 -0
- elasticsearch/helpers/vectorstore/_async/_utils.py +39 -0
- elasticsearch/helpers/vectorstore/_async/embedding_service.py +89 -0
- elasticsearch/helpers/vectorstore/_async/strategies.py +466 -0
- elasticsearch/helpers/vectorstore/_async/vectorstore.py +391 -0
- elasticsearch/helpers/vectorstore/_sync/__init__.py +16 -0
- elasticsearch/helpers/vectorstore/_sync/_utils.py +39 -0
- elasticsearch/helpers/vectorstore/_sync/embedding_service.py +89 -0
- elasticsearch/helpers/vectorstore/_sync/strategies.py +466 -0
- elasticsearch/helpers/vectorstore/_sync/vectorstore.py +388 -0
- elasticsearch/helpers/vectorstore/_utils.py +116 -0
- elasticsearch/serializer.py +14 -0
- {elasticsearch-8.12.1.dist-info → elasticsearch-8.13.1.dist-info}/METADATA +28 -8
- elasticsearch-8.13.1.dist-info/RECORD +116 -0
- {elasticsearch-8.12.1.dist-info → elasticsearch-8.13.1.dist-info}/WHEEL +1 -1
- elasticsearch-8.12.1.dist-info/RECORD +0 -103
- {elasticsearch-8.12.1.dist-info → elasticsearch-8.13.1.dist-info}/LICENSE +0 -0
- {elasticsearch-8.12.1.dist-info → elasticsearch-8.13.1.dist-info}/NOTICE +0 -0
- {elasticsearch-8.12.1.dist-info → elasticsearch-8.13.1.dist-info}/top_level.txt +0 -0
|
@@ -24,6 +24,7 @@ from .utils import SKIP_IN_PATH, _quote, _rewrite_parameters
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
class CatClient(NamespacedClient):
|
|
27
|
+
|
|
27
28
|
@_rewrite_parameters()
|
|
28
29
|
async def aliases(
|
|
29
30
|
self,
|
|
@@ -55,7 +56,7 @@ class CatClient(NamespacedClient):
|
|
|
55
56
|
Shows information about currently configured aliases to indices including filter
|
|
56
57
|
and routing infos.
|
|
57
58
|
|
|
58
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
59
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-alias.html>`_
|
|
59
60
|
|
|
60
61
|
:param name: A comma-separated list of aliases to retrieve. Supports wildcards
|
|
61
62
|
(`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`.
|
|
@@ -76,9 +77,12 @@ class CatClient(NamespacedClient):
|
|
|
76
77
|
a suffix to the column name.
|
|
77
78
|
:param v: When set to `true` will enable verbose output.
|
|
78
79
|
"""
|
|
80
|
+
__path_parts: t.Dict[str, str]
|
|
79
81
|
if name not in SKIP_IN_PATH:
|
|
80
|
-
|
|
82
|
+
__path_parts = {"name": _quote(name)}
|
|
83
|
+
__path = f'/_cat/aliases/{__path_parts["name"]}'
|
|
81
84
|
else:
|
|
85
|
+
__path_parts = {}
|
|
82
86
|
__path = "/_cat/aliases"
|
|
83
87
|
__query: t.Dict[str, t.Any] = {}
|
|
84
88
|
if error_trace is not None:
|
|
@@ -107,7 +111,12 @@ class CatClient(NamespacedClient):
|
|
|
107
111
|
__query["v"] = v
|
|
108
112
|
__headers = {"accept": "text/plain,application/json"}
|
|
109
113
|
return await self.perform_request( # type: ignore[return-value]
|
|
110
|
-
"GET",
|
|
114
|
+
"GET",
|
|
115
|
+
__path,
|
|
116
|
+
params=__query,
|
|
117
|
+
headers=__headers,
|
|
118
|
+
endpoint_id="cat.aliases",
|
|
119
|
+
path_parts=__path_parts,
|
|
111
120
|
)
|
|
112
121
|
|
|
113
122
|
@_rewrite_parameters()
|
|
@@ -136,7 +145,7 @@ class CatClient(NamespacedClient):
|
|
|
136
145
|
Provides a snapshot of how many shards are allocated to each data node and how
|
|
137
146
|
much disk space they are using.
|
|
138
147
|
|
|
139
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
148
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-allocation.html>`_
|
|
140
149
|
|
|
141
150
|
:param node_id: Comma-separated list of node identifiers or names used to limit
|
|
142
151
|
the returned information.
|
|
@@ -156,9 +165,12 @@ class CatClient(NamespacedClient):
|
|
|
156
165
|
a suffix to the column name.
|
|
157
166
|
:param v: When set to `true` will enable verbose output.
|
|
158
167
|
"""
|
|
168
|
+
__path_parts: t.Dict[str, str]
|
|
159
169
|
if node_id not in SKIP_IN_PATH:
|
|
160
|
-
|
|
170
|
+
__path_parts = {"node_id": _quote(node_id)}
|
|
171
|
+
__path = f'/_cat/allocation/{__path_parts["node_id"]}'
|
|
161
172
|
else:
|
|
173
|
+
__path_parts = {}
|
|
162
174
|
__path = "/_cat/allocation"
|
|
163
175
|
__query: t.Dict[str, t.Any] = {}
|
|
164
176
|
if bytes is not None:
|
|
@@ -187,7 +199,12 @@ class CatClient(NamespacedClient):
|
|
|
187
199
|
__query["v"] = v
|
|
188
200
|
__headers = {"accept": "text/plain,application/json"}
|
|
189
201
|
return await self.perform_request( # type: ignore[return-value]
|
|
190
|
-
"GET",
|
|
202
|
+
"GET",
|
|
203
|
+
__path,
|
|
204
|
+
params=__query,
|
|
205
|
+
headers=__headers,
|
|
206
|
+
endpoint_id="cat.allocation",
|
|
207
|
+
path_parts=__path_parts,
|
|
191
208
|
)
|
|
192
209
|
|
|
193
210
|
@_rewrite_parameters()
|
|
@@ -212,7 +229,7 @@ class CatClient(NamespacedClient):
|
|
|
212
229
|
"""
|
|
213
230
|
Returns information about existing component_templates templates.
|
|
214
231
|
|
|
215
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
232
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-component-templates.html>`_
|
|
216
233
|
|
|
217
234
|
:param name: The name of the component template. Accepts wildcard expressions.
|
|
218
235
|
If omitted, all component templates are returned.
|
|
@@ -231,9 +248,12 @@ class CatClient(NamespacedClient):
|
|
|
231
248
|
a suffix to the column name.
|
|
232
249
|
:param v: When set to `true` will enable verbose output.
|
|
233
250
|
"""
|
|
251
|
+
__path_parts: t.Dict[str, str]
|
|
234
252
|
if name not in SKIP_IN_PATH:
|
|
235
|
-
|
|
253
|
+
__path_parts = {"name": _quote(name)}
|
|
254
|
+
__path = f'/_cat/component_templates/{__path_parts["name"]}'
|
|
236
255
|
else:
|
|
256
|
+
__path_parts = {}
|
|
237
257
|
__path = "/_cat/component_templates"
|
|
238
258
|
__query: t.Dict[str, t.Any] = {}
|
|
239
259
|
if error_trace is not None:
|
|
@@ -260,7 +280,12 @@ class CatClient(NamespacedClient):
|
|
|
260
280
|
__query["v"] = v
|
|
261
281
|
__headers = {"accept": "text/plain,application/json"}
|
|
262
282
|
return await self.perform_request( # type: ignore[return-value]
|
|
263
|
-
"GET",
|
|
283
|
+
"GET",
|
|
284
|
+
__path,
|
|
285
|
+
params=__query,
|
|
286
|
+
headers=__headers,
|
|
287
|
+
endpoint_id="cat.component_templates",
|
|
288
|
+
path_parts=__path_parts,
|
|
264
289
|
)
|
|
265
290
|
|
|
266
291
|
@_rewrite_parameters()
|
|
@@ -286,7 +311,7 @@ class CatClient(NamespacedClient):
|
|
|
286
311
|
Provides quick access to the document count of the entire cluster, or individual
|
|
287
312
|
indices.
|
|
288
313
|
|
|
289
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
314
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-count.html>`_
|
|
290
315
|
|
|
291
316
|
:param index: Comma-separated list of data streams, indices, and aliases used
|
|
292
317
|
to limit the request. Supports wildcards (`*`). To target all data streams
|
|
@@ -306,9 +331,12 @@ class CatClient(NamespacedClient):
|
|
|
306
331
|
a suffix to the column name.
|
|
307
332
|
:param v: When set to `true` will enable verbose output.
|
|
308
333
|
"""
|
|
334
|
+
__path_parts: t.Dict[str, str]
|
|
309
335
|
if index not in SKIP_IN_PATH:
|
|
310
|
-
|
|
336
|
+
__path_parts = {"index": _quote(index)}
|
|
337
|
+
__path = f'/_cat/count/{__path_parts["index"]}'
|
|
311
338
|
else:
|
|
339
|
+
__path_parts = {}
|
|
312
340
|
__path = "/_cat/count"
|
|
313
341
|
__query: t.Dict[str, t.Any] = {}
|
|
314
342
|
if error_trace is not None:
|
|
@@ -335,7 +363,12 @@ class CatClient(NamespacedClient):
|
|
|
335
363
|
__query["v"] = v
|
|
336
364
|
__headers = {"accept": "text/plain,application/json"}
|
|
337
365
|
return await self.perform_request( # type: ignore[return-value]
|
|
338
|
-
"GET",
|
|
366
|
+
"GET",
|
|
367
|
+
__path,
|
|
368
|
+
params=__query,
|
|
369
|
+
headers=__headers,
|
|
370
|
+
endpoint_id="cat.count",
|
|
371
|
+
path_parts=__path_parts,
|
|
339
372
|
)
|
|
340
373
|
|
|
341
374
|
@_rewrite_parameters()
|
|
@@ -364,7 +397,7 @@ class CatClient(NamespacedClient):
|
|
|
364
397
|
Shows how much heap memory is currently being used by fielddata on every data
|
|
365
398
|
node in the cluster.
|
|
366
399
|
|
|
367
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
400
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-fielddata.html>`_
|
|
368
401
|
|
|
369
402
|
:param fields: Comma-separated list of fields used to limit returned information.
|
|
370
403
|
To retrieve all fields, omit this parameter.
|
|
@@ -384,9 +417,12 @@ class CatClient(NamespacedClient):
|
|
|
384
417
|
a suffix to the column name.
|
|
385
418
|
:param v: When set to `true` will enable verbose output.
|
|
386
419
|
"""
|
|
420
|
+
__path_parts: t.Dict[str, str]
|
|
387
421
|
if fields not in SKIP_IN_PATH:
|
|
388
|
-
|
|
422
|
+
__path_parts = {"fields": _quote(fields)}
|
|
423
|
+
__path = f'/_cat/fielddata/{__path_parts["fields"]}'
|
|
389
424
|
else:
|
|
425
|
+
__path_parts = {}
|
|
390
426
|
__path = "/_cat/fielddata"
|
|
391
427
|
__query: t.Dict[str, t.Any] = {}
|
|
392
428
|
if bytes is not None:
|
|
@@ -415,7 +451,12 @@ class CatClient(NamespacedClient):
|
|
|
415
451
|
__query["v"] = v
|
|
416
452
|
__headers = {"accept": "text/plain,application/json"}
|
|
417
453
|
return await self.perform_request( # type: ignore[return-value]
|
|
418
|
-
"GET",
|
|
454
|
+
"GET",
|
|
455
|
+
__path,
|
|
456
|
+
params=__query,
|
|
457
|
+
headers=__headers,
|
|
458
|
+
endpoint_id="cat.fielddata",
|
|
459
|
+
path_parts=__path_parts,
|
|
419
460
|
)
|
|
420
461
|
|
|
421
462
|
@_rewrite_parameters()
|
|
@@ -443,7 +484,7 @@ class CatClient(NamespacedClient):
|
|
|
443
484
|
"""
|
|
444
485
|
Returns a concise representation of the cluster health.
|
|
445
486
|
|
|
446
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
487
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-health.html>`_
|
|
447
488
|
|
|
448
489
|
:param format: Specifies the format to return the columnar data in, can be set
|
|
449
490
|
to `text`, `json`, `cbor`, `yaml`, or `smile`.
|
|
@@ -462,6 +503,7 @@ class CatClient(NamespacedClient):
|
|
|
462
503
|
:param ts: If true, returns `HH:MM:SS` and Unix epoch timestamps.
|
|
463
504
|
:param v: When set to `true` will enable verbose output.
|
|
464
505
|
"""
|
|
506
|
+
__path_parts: t.Dict[str, str] = {}
|
|
465
507
|
__path = "/_cat/health"
|
|
466
508
|
__query: t.Dict[str, t.Any] = {}
|
|
467
509
|
if error_trace is not None:
|
|
@@ -492,7 +534,12 @@ class CatClient(NamespacedClient):
|
|
|
492
534
|
__query["v"] = v
|
|
493
535
|
__headers = {"accept": "text/plain,application/json"}
|
|
494
536
|
return await self.perform_request( # type: ignore[return-value]
|
|
495
|
-
"GET",
|
|
537
|
+
"GET",
|
|
538
|
+
__path,
|
|
539
|
+
params=__query,
|
|
540
|
+
headers=__headers,
|
|
541
|
+
endpoint_id="cat.health",
|
|
542
|
+
path_parts=__path_parts,
|
|
496
543
|
)
|
|
497
544
|
|
|
498
545
|
@_rewrite_parameters()
|
|
@@ -516,7 +563,7 @@ class CatClient(NamespacedClient):
|
|
|
516
563
|
"""
|
|
517
564
|
Returns help for the Cat APIs.
|
|
518
565
|
|
|
519
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
566
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat.html>`_
|
|
520
567
|
|
|
521
568
|
:param format: Specifies the format to return the columnar data in, can be set
|
|
522
569
|
to `text`, `json`, `cbor`, `yaml`, or `smile`.
|
|
@@ -533,6 +580,7 @@ class CatClient(NamespacedClient):
|
|
|
533
580
|
a suffix to the column name.
|
|
534
581
|
:param v: When set to `true` will enable verbose output.
|
|
535
582
|
"""
|
|
583
|
+
__path_parts: t.Dict[str, str] = {}
|
|
536
584
|
__path = "/_cat"
|
|
537
585
|
__query: t.Dict[str, t.Any] = {}
|
|
538
586
|
if error_trace is not None:
|
|
@@ -559,7 +607,12 @@ class CatClient(NamespacedClient):
|
|
|
559
607
|
__query["v"] = v
|
|
560
608
|
__headers = {"accept": "text/plain"}
|
|
561
609
|
return await self.perform_request( # type: ignore[return-value]
|
|
562
|
-
"GET",
|
|
610
|
+
"GET",
|
|
611
|
+
__path,
|
|
612
|
+
params=__query,
|
|
613
|
+
headers=__headers,
|
|
614
|
+
endpoint_id="cat.help",
|
|
615
|
+
path_parts=__path_parts,
|
|
563
616
|
)
|
|
564
617
|
|
|
565
618
|
@_rewrite_parameters()
|
|
@@ -602,7 +655,7 @@ class CatClient(NamespacedClient):
|
|
|
602
655
|
Returns information about indices: number of primaries and replicas, document
|
|
603
656
|
counts, disk size, ...
|
|
604
657
|
|
|
605
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
658
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-indices.html>`_
|
|
606
659
|
|
|
607
660
|
:param index: Comma-separated list of data streams, indices, and aliases used
|
|
608
661
|
to limit the request. Supports wildcards (`*`). To target all data streams
|
|
@@ -630,9 +683,12 @@ class CatClient(NamespacedClient):
|
|
|
630
683
|
:param time: The unit used to display time values.
|
|
631
684
|
:param v: When set to `true` will enable verbose output.
|
|
632
685
|
"""
|
|
686
|
+
__path_parts: t.Dict[str, str]
|
|
633
687
|
if index not in SKIP_IN_PATH:
|
|
634
|
-
|
|
688
|
+
__path_parts = {"index": _quote(index)}
|
|
689
|
+
__path = f'/_cat/indices/{__path_parts["index"]}'
|
|
635
690
|
else:
|
|
691
|
+
__path_parts = {}
|
|
636
692
|
__path = "/_cat/indices"
|
|
637
693
|
__query: t.Dict[str, t.Any] = {}
|
|
638
694
|
if bytes is not None:
|
|
@@ -671,7 +727,12 @@ class CatClient(NamespacedClient):
|
|
|
671
727
|
__query["v"] = v
|
|
672
728
|
__headers = {"accept": "text/plain,application/json"}
|
|
673
729
|
return await self.perform_request( # type: ignore[return-value]
|
|
674
|
-
"GET",
|
|
730
|
+
"GET",
|
|
731
|
+
__path,
|
|
732
|
+
params=__query,
|
|
733
|
+
headers=__headers,
|
|
734
|
+
endpoint_id="cat.indices",
|
|
735
|
+
path_parts=__path_parts,
|
|
675
736
|
)
|
|
676
737
|
|
|
677
738
|
@_rewrite_parameters()
|
|
@@ -695,7 +756,7 @@ class CatClient(NamespacedClient):
|
|
|
695
756
|
"""
|
|
696
757
|
Returns information about the master node.
|
|
697
758
|
|
|
698
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
759
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-master.html>`_
|
|
699
760
|
|
|
700
761
|
:param format: Specifies the format to return the columnar data in, can be set
|
|
701
762
|
to `text`, `json`, `cbor`, `yaml`, or `smile`.
|
|
@@ -712,6 +773,7 @@ class CatClient(NamespacedClient):
|
|
|
712
773
|
a suffix to the column name.
|
|
713
774
|
:param v: When set to `true` will enable verbose output.
|
|
714
775
|
"""
|
|
776
|
+
__path_parts: t.Dict[str, str] = {}
|
|
715
777
|
__path = "/_cat/master"
|
|
716
778
|
__query: t.Dict[str, t.Any] = {}
|
|
717
779
|
if error_trace is not None:
|
|
@@ -738,7 +800,12 @@ class CatClient(NamespacedClient):
|
|
|
738
800
|
__query["v"] = v
|
|
739
801
|
__headers = {"accept": "text/plain,application/json"}
|
|
740
802
|
return await self.perform_request( # type: ignore[return-value]
|
|
741
|
-
"GET",
|
|
803
|
+
"GET",
|
|
804
|
+
__path,
|
|
805
|
+
params=__query,
|
|
806
|
+
headers=__headers,
|
|
807
|
+
endpoint_id="cat.master",
|
|
808
|
+
path_parts=__path_parts,
|
|
742
809
|
)
|
|
743
810
|
|
|
744
811
|
@_rewrite_parameters()
|
|
@@ -794,7 +861,7 @@ class CatClient(NamespacedClient):
|
|
|
794
861
|
"""
|
|
795
862
|
Gets configuration and usage information about data frame analytics jobs.
|
|
796
863
|
|
|
797
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
864
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-dfanalytics.html>`_
|
|
798
865
|
|
|
799
866
|
:param id: The ID of the data frame analytics to fetch
|
|
800
867
|
:param allow_no_match: Whether to ignore if a wildcard expression matches no
|
|
@@ -815,9 +882,12 @@ class CatClient(NamespacedClient):
|
|
|
815
882
|
:param time: Unit used to display time values.
|
|
816
883
|
:param v: When set to `true` will enable verbose output.
|
|
817
884
|
"""
|
|
885
|
+
__path_parts: t.Dict[str, str]
|
|
818
886
|
if id not in SKIP_IN_PATH:
|
|
819
|
-
|
|
887
|
+
__path_parts = {"id": _quote(id)}
|
|
888
|
+
__path = f'/_cat/ml/data_frame/analytics/{__path_parts["id"]}'
|
|
820
889
|
else:
|
|
890
|
+
__path_parts = {}
|
|
821
891
|
__path = "/_cat/ml/data_frame/analytics"
|
|
822
892
|
__query: t.Dict[str, t.Any] = {}
|
|
823
893
|
if allow_no_match is not None:
|
|
@@ -850,7 +920,12 @@ class CatClient(NamespacedClient):
|
|
|
850
920
|
__query["v"] = v
|
|
851
921
|
__headers = {"accept": "text/plain,application/json"}
|
|
852
922
|
return await self.perform_request( # type: ignore[return-value]
|
|
853
|
-
"GET",
|
|
923
|
+
"GET",
|
|
924
|
+
__path,
|
|
925
|
+
params=__query,
|
|
926
|
+
headers=__headers,
|
|
927
|
+
endpoint_id="cat.ml_data_frame_analytics",
|
|
928
|
+
path_parts=__path_parts,
|
|
854
929
|
)
|
|
855
930
|
|
|
856
931
|
@_rewrite_parameters()
|
|
@@ -905,7 +980,7 @@ class CatClient(NamespacedClient):
|
|
|
905
980
|
"""
|
|
906
981
|
Gets configuration and usage information about datafeeds.
|
|
907
982
|
|
|
908
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
983
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-datafeeds.html>`_
|
|
909
984
|
|
|
910
985
|
:param datafeed_id: A numerical character string that uniquely identifies the
|
|
911
986
|
datafeed.
|
|
@@ -931,9 +1006,12 @@ class CatClient(NamespacedClient):
|
|
|
931
1006
|
:param time: The unit used to display time values.
|
|
932
1007
|
:param v: When set to `true` will enable verbose output.
|
|
933
1008
|
"""
|
|
1009
|
+
__path_parts: t.Dict[str, str]
|
|
934
1010
|
if datafeed_id not in SKIP_IN_PATH:
|
|
935
|
-
|
|
1011
|
+
__path_parts = {"datafeed_id": _quote(datafeed_id)}
|
|
1012
|
+
__path = f'/_cat/ml/datafeeds/{__path_parts["datafeed_id"]}'
|
|
936
1013
|
else:
|
|
1014
|
+
__path_parts = {}
|
|
937
1015
|
__path = "/_cat/ml/datafeeds"
|
|
938
1016
|
__query: t.Dict[str, t.Any] = {}
|
|
939
1017
|
if allow_no_match is not None:
|
|
@@ -964,7 +1042,12 @@ class CatClient(NamespacedClient):
|
|
|
964
1042
|
__query["v"] = v
|
|
965
1043
|
__headers = {"accept": "text/plain,application/json"}
|
|
966
1044
|
return await self.perform_request( # type: ignore[return-value]
|
|
967
|
-
"GET",
|
|
1045
|
+
"GET",
|
|
1046
|
+
__path,
|
|
1047
|
+
params=__query,
|
|
1048
|
+
headers=__headers,
|
|
1049
|
+
endpoint_id="cat.ml_datafeeds",
|
|
1050
|
+
path_parts=__path_parts,
|
|
968
1051
|
)
|
|
969
1052
|
|
|
970
1053
|
@_rewrite_parameters()
|
|
@@ -1022,7 +1105,7 @@ class CatClient(NamespacedClient):
|
|
|
1022
1105
|
"""
|
|
1023
1106
|
Gets configuration and usage information about anomaly detection jobs.
|
|
1024
1107
|
|
|
1025
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1108
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-anomaly-detectors.html>`_
|
|
1026
1109
|
|
|
1027
1110
|
:param job_id: Identifier for the anomaly detection job.
|
|
1028
1111
|
:param allow_no_match: Specifies what to do when the request: * Contains wildcard
|
|
@@ -1048,9 +1131,12 @@ class CatClient(NamespacedClient):
|
|
|
1048
1131
|
:param time: The unit used to display time values.
|
|
1049
1132
|
:param v: When set to `true` will enable verbose output.
|
|
1050
1133
|
"""
|
|
1134
|
+
__path_parts: t.Dict[str, str]
|
|
1051
1135
|
if job_id not in SKIP_IN_PATH:
|
|
1052
|
-
|
|
1136
|
+
__path_parts = {"job_id": _quote(job_id)}
|
|
1137
|
+
__path = f'/_cat/ml/anomaly_detectors/{__path_parts["job_id"]}'
|
|
1053
1138
|
else:
|
|
1139
|
+
__path_parts = {}
|
|
1054
1140
|
__path = "/_cat/ml/anomaly_detectors"
|
|
1055
1141
|
__query: t.Dict[str, t.Any] = {}
|
|
1056
1142
|
if allow_no_match is not None:
|
|
@@ -1083,7 +1169,12 @@ class CatClient(NamespacedClient):
|
|
|
1083
1169
|
__query["v"] = v
|
|
1084
1170
|
__headers = {"accept": "text/plain,application/json"}
|
|
1085
1171
|
return await self.perform_request( # type: ignore[return-value]
|
|
1086
|
-
"GET",
|
|
1172
|
+
"GET",
|
|
1173
|
+
__path,
|
|
1174
|
+
params=__query,
|
|
1175
|
+
headers=__headers,
|
|
1176
|
+
endpoint_id="cat.ml_jobs",
|
|
1177
|
+
path_parts=__path_parts,
|
|
1087
1178
|
)
|
|
1088
1179
|
|
|
1089
1180
|
@_rewrite_parameters(
|
|
@@ -1142,7 +1233,7 @@ class CatClient(NamespacedClient):
|
|
|
1142
1233
|
"""
|
|
1143
1234
|
Gets configuration and usage information about inference trained models.
|
|
1144
1235
|
|
|
1145
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1236
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-trained-model.html>`_
|
|
1146
1237
|
|
|
1147
1238
|
:param model_id: A unique identifier for the trained model.
|
|
1148
1239
|
:param allow_no_match: Specifies what to do when the request: contains wildcard
|
|
@@ -1169,9 +1260,12 @@ class CatClient(NamespacedClient):
|
|
|
1169
1260
|
:param size: The maximum number of transforms to display.
|
|
1170
1261
|
:param v: When set to `true` will enable verbose output.
|
|
1171
1262
|
"""
|
|
1263
|
+
__path_parts: t.Dict[str, str]
|
|
1172
1264
|
if model_id not in SKIP_IN_PATH:
|
|
1173
|
-
|
|
1265
|
+
__path_parts = {"model_id": _quote(model_id)}
|
|
1266
|
+
__path = f'/_cat/ml/trained_models/{__path_parts["model_id"]}'
|
|
1174
1267
|
else:
|
|
1268
|
+
__path_parts = {}
|
|
1175
1269
|
__path = "/_cat/ml/trained_models"
|
|
1176
1270
|
__query: t.Dict[str, t.Any] = {}
|
|
1177
1271
|
if allow_no_match is not None:
|
|
@@ -1206,7 +1300,12 @@ class CatClient(NamespacedClient):
|
|
|
1206
1300
|
__query["v"] = v
|
|
1207
1301
|
__headers = {"accept": "text/plain,application/json"}
|
|
1208
1302
|
return await self.perform_request( # type: ignore[return-value]
|
|
1209
|
-
"GET",
|
|
1303
|
+
"GET",
|
|
1304
|
+
__path,
|
|
1305
|
+
params=__query,
|
|
1306
|
+
headers=__headers,
|
|
1307
|
+
endpoint_id="cat.ml_trained_models",
|
|
1308
|
+
path_parts=__path_parts,
|
|
1210
1309
|
)
|
|
1211
1310
|
|
|
1212
1311
|
@_rewrite_parameters()
|
|
@@ -1230,7 +1329,7 @@ class CatClient(NamespacedClient):
|
|
|
1230
1329
|
"""
|
|
1231
1330
|
Returns information about custom node attributes.
|
|
1232
1331
|
|
|
1233
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1332
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-nodeattrs.html>`_
|
|
1234
1333
|
|
|
1235
1334
|
:param format: Specifies the format to return the columnar data in, can be set
|
|
1236
1335
|
to `text`, `json`, `cbor`, `yaml`, or `smile`.
|
|
@@ -1247,6 +1346,7 @@ class CatClient(NamespacedClient):
|
|
|
1247
1346
|
a suffix to the column name.
|
|
1248
1347
|
:param v: When set to `true` will enable verbose output.
|
|
1249
1348
|
"""
|
|
1349
|
+
__path_parts: t.Dict[str, str] = {}
|
|
1250
1350
|
__path = "/_cat/nodeattrs"
|
|
1251
1351
|
__query: t.Dict[str, t.Any] = {}
|
|
1252
1352
|
if error_trace is not None:
|
|
@@ -1273,7 +1373,12 @@ class CatClient(NamespacedClient):
|
|
|
1273
1373
|
__query["v"] = v
|
|
1274
1374
|
__headers = {"accept": "text/plain,application/json"}
|
|
1275
1375
|
return await self.perform_request( # type: ignore[return-value]
|
|
1276
|
-
"GET",
|
|
1376
|
+
"GET",
|
|
1377
|
+
__path,
|
|
1378
|
+
params=__query,
|
|
1379
|
+
headers=__headers,
|
|
1380
|
+
endpoint_id="cat.nodeattrs",
|
|
1381
|
+
path_parts=__path_parts,
|
|
1277
1382
|
)
|
|
1278
1383
|
|
|
1279
1384
|
@_rewrite_parameters()
|
|
@@ -1302,7 +1407,7 @@ class CatClient(NamespacedClient):
|
|
|
1302
1407
|
"""
|
|
1303
1408
|
Returns basic statistics about performance of cluster nodes.
|
|
1304
1409
|
|
|
1305
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1410
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-nodes.html>`_
|
|
1306
1411
|
|
|
1307
1412
|
:param bytes: The unit used to display byte values.
|
|
1308
1413
|
:param format: Specifies the format to return the columnar data in, can be set
|
|
@@ -1324,6 +1429,7 @@ class CatClient(NamespacedClient):
|
|
|
1324
1429
|
a suffix to the column name.
|
|
1325
1430
|
:param v: When set to `true` will enable verbose output.
|
|
1326
1431
|
"""
|
|
1432
|
+
__path_parts: t.Dict[str, str] = {}
|
|
1327
1433
|
__path = "/_cat/nodes"
|
|
1328
1434
|
__query: t.Dict[str, t.Any] = {}
|
|
1329
1435
|
if bytes is not None:
|
|
@@ -1356,7 +1462,12 @@ class CatClient(NamespacedClient):
|
|
|
1356
1462
|
__query["v"] = v
|
|
1357
1463
|
__headers = {"accept": "text/plain,application/json"}
|
|
1358
1464
|
return await self.perform_request( # type: ignore[return-value]
|
|
1359
|
-
"GET",
|
|
1465
|
+
"GET",
|
|
1466
|
+
__path,
|
|
1467
|
+
params=__query,
|
|
1468
|
+
headers=__headers,
|
|
1469
|
+
endpoint_id="cat.nodes",
|
|
1470
|
+
path_parts=__path_parts,
|
|
1360
1471
|
)
|
|
1361
1472
|
|
|
1362
1473
|
@_rewrite_parameters()
|
|
@@ -1380,7 +1491,7 @@ class CatClient(NamespacedClient):
|
|
|
1380
1491
|
"""
|
|
1381
1492
|
Returns a concise representation of the cluster pending tasks.
|
|
1382
1493
|
|
|
1383
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1494
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-pending-tasks.html>`_
|
|
1384
1495
|
|
|
1385
1496
|
:param format: Specifies the format to return the columnar data in, can be set
|
|
1386
1497
|
to `text`, `json`, `cbor`, `yaml`, or `smile`.
|
|
@@ -1397,6 +1508,7 @@ class CatClient(NamespacedClient):
|
|
|
1397
1508
|
a suffix to the column name.
|
|
1398
1509
|
:param v: When set to `true` will enable verbose output.
|
|
1399
1510
|
"""
|
|
1511
|
+
__path_parts: t.Dict[str, str] = {}
|
|
1400
1512
|
__path = "/_cat/pending_tasks"
|
|
1401
1513
|
__query: t.Dict[str, t.Any] = {}
|
|
1402
1514
|
if error_trace is not None:
|
|
@@ -1423,7 +1535,12 @@ class CatClient(NamespacedClient):
|
|
|
1423
1535
|
__query["v"] = v
|
|
1424
1536
|
__headers = {"accept": "text/plain,application/json"}
|
|
1425
1537
|
return await self.perform_request( # type: ignore[return-value]
|
|
1426
|
-
"GET",
|
|
1538
|
+
"GET",
|
|
1539
|
+
__path,
|
|
1540
|
+
params=__query,
|
|
1541
|
+
headers=__headers,
|
|
1542
|
+
endpoint_id="cat.pending_tasks",
|
|
1543
|
+
path_parts=__path_parts,
|
|
1427
1544
|
)
|
|
1428
1545
|
|
|
1429
1546
|
@_rewrite_parameters()
|
|
@@ -1447,7 +1564,7 @@ class CatClient(NamespacedClient):
|
|
|
1447
1564
|
"""
|
|
1448
1565
|
Returns information about installed plugins across nodes node.
|
|
1449
1566
|
|
|
1450
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1567
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-plugins.html>`_
|
|
1451
1568
|
|
|
1452
1569
|
:param format: Specifies the format to return the columnar data in, can be set
|
|
1453
1570
|
to `text`, `json`, `cbor`, `yaml`, or `smile`.
|
|
@@ -1464,6 +1581,7 @@ class CatClient(NamespacedClient):
|
|
|
1464
1581
|
a suffix to the column name.
|
|
1465
1582
|
:param v: When set to `true` will enable verbose output.
|
|
1466
1583
|
"""
|
|
1584
|
+
__path_parts: t.Dict[str, str] = {}
|
|
1467
1585
|
__path = "/_cat/plugins"
|
|
1468
1586
|
__query: t.Dict[str, t.Any] = {}
|
|
1469
1587
|
if error_trace is not None:
|
|
@@ -1490,7 +1608,12 @@ class CatClient(NamespacedClient):
|
|
|
1490
1608
|
__query["v"] = v
|
|
1491
1609
|
__headers = {"accept": "text/plain,application/json"}
|
|
1492
1610
|
return await self.perform_request( # type: ignore[return-value]
|
|
1493
|
-
"GET",
|
|
1611
|
+
"GET",
|
|
1612
|
+
__path,
|
|
1613
|
+
params=__query,
|
|
1614
|
+
headers=__headers,
|
|
1615
|
+
endpoint_id="cat.plugins",
|
|
1616
|
+
path_parts=__path_parts,
|
|
1494
1617
|
)
|
|
1495
1618
|
|
|
1496
1619
|
@_rewrite_parameters()
|
|
@@ -1520,7 +1643,7 @@ class CatClient(NamespacedClient):
|
|
|
1520
1643
|
"""
|
|
1521
1644
|
Returns information about index shard recoveries, both on-going completed.
|
|
1522
1645
|
|
|
1523
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1646
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-recovery.html>`_
|
|
1524
1647
|
|
|
1525
1648
|
:param index: A comma-separated list of data streams, indices, and aliases used
|
|
1526
1649
|
to limit the request. Supports wildcards (`*`). To target all data streams
|
|
@@ -1544,9 +1667,12 @@ class CatClient(NamespacedClient):
|
|
|
1544
1667
|
a suffix to the column name.
|
|
1545
1668
|
:param v: When set to `true` will enable verbose output.
|
|
1546
1669
|
"""
|
|
1670
|
+
__path_parts: t.Dict[str, str]
|
|
1547
1671
|
if index not in SKIP_IN_PATH:
|
|
1548
|
-
|
|
1672
|
+
__path_parts = {"index": _quote(index)}
|
|
1673
|
+
__path = f'/_cat/recovery/{__path_parts["index"]}'
|
|
1549
1674
|
else:
|
|
1675
|
+
__path_parts = {}
|
|
1550
1676
|
__path = "/_cat/recovery"
|
|
1551
1677
|
__query: t.Dict[str, t.Any] = {}
|
|
1552
1678
|
if active_only is not None:
|
|
@@ -1579,7 +1705,12 @@ class CatClient(NamespacedClient):
|
|
|
1579
1705
|
__query["v"] = v
|
|
1580
1706
|
__headers = {"accept": "text/plain,application/json"}
|
|
1581
1707
|
return await self.perform_request( # type: ignore[return-value]
|
|
1582
|
-
"GET",
|
|
1708
|
+
"GET",
|
|
1709
|
+
__path,
|
|
1710
|
+
params=__query,
|
|
1711
|
+
headers=__headers,
|
|
1712
|
+
endpoint_id="cat.recovery",
|
|
1713
|
+
path_parts=__path_parts,
|
|
1583
1714
|
)
|
|
1584
1715
|
|
|
1585
1716
|
@_rewrite_parameters()
|
|
@@ -1603,7 +1734,7 @@ class CatClient(NamespacedClient):
|
|
|
1603
1734
|
"""
|
|
1604
1735
|
Returns information about snapshot repositories registered in the cluster.
|
|
1605
1736
|
|
|
1606
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1737
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-repositories.html>`_
|
|
1607
1738
|
|
|
1608
1739
|
:param format: Specifies the format to return the columnar data in, can be set
|
|
1609
1740
|
to `text`, `json`, `cbor`, `yaml`, or `smile`.
|
|
@@ -1620,6 +1751,7 @@ class CatClient(NamespacedClient):
|
|
|
1620
1751
|
a suffix to the column name.
|
|
1621
1752
|
:param v: When set to `true` will enable verbose output.
|
|
1622
1753
|
"""
|
|
1754
|
+
__path_parts: t.Dict[str, str] = {}
|
|
1623
1755
|
__path = "/_cat/repositories"
|
|
1624
1756
|
__query: t.Dict[str, t.Any] = {}
|
|
1625
1757
|
if error_trace is not None:
|
|
@@ -1646,7 +1778,12 @@ class CatClient(NamespacedClient):
|
|
|
1646
1778
|
__query["v"] = v
|
|
1647
1779
|
__headers = {"accept": "text/plain,application/json"}
|
|
1648
1780
|
return await self.perform_request( # type: ignore[return-value]
|
|
1649
|
-
"GET",
|
|
1781
|
+
"GET",
|
|
1782
|
+
__path,
|
|
1783
|
+
params=__query,
|
|
1784
|
+
headers=__headers,
|
|
1785
|
+
endpoint_id="cat.repositories",
|
|
1786
|
+
path_parts=__path_parts,
|
|
1650
1787
|
)
|
|
1651
1788
|
|
|
1652
1789
|
@_rewrite_parameters()
|
|
@@ -1674,7 +1811,7 @@ class CatClient(NamespacedClient):
|
|
|
1674
1811
|
"""
|
|
1675
1812
|
Provides low-level information about the segments in the shards of an index.
|
|
1676
1813
|
|
|
1677
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1814
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-segments.html>`_
|
|
1678
1815
|
|
|
1679
1816
|
:param index: A comma-separated list of data streams, indices, and aliases used
|
|
1680
1817
|
to limit the request. Supports wildcards (`*`). To target all data streams
|
|
@@ -1695,9 +1832,12 @@ class CatClient(NamespacedClient):
|
|
|
1695
1832
|
a suffix to the column name.
|
|
1696
1833
|
:param v: When set to `true` will enable verbose output.
|
|
1697
1834
|
"""
|
|
1835
|
+
__path_parts: t.Dict[str, str]
|
|
1698
1836
|
if index not in SKIP_IN_PATH:
|
|
1699
|
-
|
|
1837
|
+
__path_parts = {"index": _quote(index)}
|
|
1838
|
+
__path = f'/_cat/segments/{__path_parts["index"]}'
|
|
1700
1839
|
else:
|
|
1840
|
+
__path_parts = {}
|
|
1701
1841
|
__path = "/_cat/segments"
|
|
1702
1842
|
__query: t.Dict[str, t.Any] = {}
|
|
1703
1843
|
if bytes is not None:
|
|
@@ -1726,7 +1866,12 @@ class CatClient(NamespacedClient):
|
|
|
1726
1866
|
__query["v"] = v
|
|
1727
1867
|
__headers = {"accept": "text/plain,application/json"}
|
|
1728
1868
|
return await self.perform_request( # type: ignore[return-value]
|
|
1729
|
-
"GET",
|
|
1869
|
+
"GET",
|
|
1870
|
+
__path,
|
|
1871
|
+
params=__query,
|
|
1872
|
+
headers=__headers,
|
|
1873
|
+
endpoint_id="cat.segments",
|
|
1874
|
+
path_parts=__path_parts,
|
|
1730
1875
|
)
|
|
1731
1876
|
|
|
1732
1877
|
@_rewrite_parameters()
|
|
@@ -1754,7 +1899,7 @@ class CatClient(NamespacedClient):
|
|
|
1754
1899
|
"""
|
|
1755
1900
|
Provides a detailed view of shard allocation on nodes.
|
|
1756
1901
|
|
|
1757
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1902
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-shards.html>`_
|
|
1758
1903
|
|
|
1759
1904
|
:param index: A comma-separated list of data streams, indices, and aliases used
|
|
1760
1905
|
to limit the request. Supports wildcards (`*`). To target all data streams
|
|
@@ -1775,9 +1920,12 @@ class CatClient(NamespacedClient):
|
|
|
1775
1920
|
a suffix to the column name.
|
|
1776
1921
|
:param v: When set to `true` will enable verbose output.
|
|
1777
1922
|
"""
|
|
1923
|
+
__path_parts: t.Dict[str, str]
|
|
1778
1924
|
if index not in SKIP_IN_PATH:
|
|
1779
|
-
|
|
1925
|
+
__path_parts = {"index": _quote(index)}
|
|
1926
|
+
__path = f'/_cat/shards/{__path_parts["index"]}'
|
|
1780
1927
|
else:
|
|
1928
|
+
__path_parts = {}
|
|
1781
1929
|
__path = "/_cat/shards"
|
|
1782
1930
|
__query: t.Dict[str, t.Any] = {}
|
|
1783
1931
|
if bytes is not None:
|
|
@@ -1806,7 +1954,12 @@ class CatClient(NamespacedClient):
|
|
|
1806
1954
|
__query["v"] = v
|
|
1807
1955
|
__headers = {"accept": "text/plain,application/json"}
|
|
1808
1956
|
return await self.perform_request( # type: ignore[return-value]
|
|
1809
|
-
"GET",
|
|
1957
|
+
"GET",
|
|
1958
|
+
__path,
|
|
1959
|
+
params=__query,
|
|
1960
|
+
headers=__headers,
|
|
1961
|
+
endpoint_id="cat.shards",
|
|
1962
|
+
path_parts=__path_parts,
|
|
1810
1963
|
)
|
|
1811
1964
|
|
|
1812
1965
|
@_rewrite_parameters()
|
|
@@ -1832,7 +1985,7 @@ class CatClient(NamespacedClient):
|
|
|
1832
1985
|
"""
|
|
1833
1986
|
Returns all snapshots in a specific repository.
|
|
1834
1987
|
|
|
1835
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1988
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-snapshots.html>`_
|
|
1836
1989
|
|
|
1837
1990
|
:param repository: A comma-separated list of snapshot repositories used to limit
|
|
1838
1991
|
the request. Accepts wildcard expressions. `_all` returns all repositories.
|
|
@@ -1854,9 +2007,12 @@ class CatClient(NamespacedClient):
|
|
|
1854
2007
|
a suffix to the column name.
|
|
1855
2008
|
:param v: When set to `true` will enable verbose output.
|
|
1856
2009
|
"""
|
|
2010
|
+
__path_parts: t.Dict[str, str]
|
|
1857
2011
|
if repository not in SKIP_IN_PATH:
|
|
1858
|
-
|
|
2012
|
+
__path_parts = {"repository": _quote(repository)}
|
|
2013
|
+
__path = f'/_cat/snapshots/{__path_parts["repository"]}'
|
|
1859
2014
|
else:
|
|
2015
|
+
__path_parts = {}
|
|
1860
2016
|
__path = "/_cat/snapshots"
|
|
1861
2017
|
__query: t.Dict[str, t.Any] = {}
|
|
1862
2018
|
if error_trace is not None:
|
|
@@ -1885,7 +2041,12 @@ class CatClient(NamespacedClient):
|
|
|
1885
2041
|
__query["v"] = v
|
|
1886
2042
|
__headers = {"accept": "text/plain,application/json"}
|
|
1887
2043
|
return await self.perform_request( # type: ignore[return-value]
|
|
1888
|
-
"GET",
|
|
2044
|
+
"GET",
|
|
2045
|
+
__path,
|
|
2046
|
+
params=__query,
|
|
2047
|
+
headers=__headers,
|
|
2048
|
+
endpoint_id="cat.snapshots",
|
|
2049
|
+
path_parts=__path_parts,
|
|
1889
2050
|
)
|
|
1890
2051
|
|
|
1891
2052
|
@_rewrite_parameters()
|
|
@@ -1914,7 +2075,7 @@ class CatClient(NamespacedClient):
|
|
|
1914
2075
|
Returns information about the tasks currently executing on one or more nodes
|
|
1915
2076
|
in the cluster.
|
|
1916
2077
|
|
|
1917
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
2078
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/tasks.html>`_
|
|
1918
2079
|
|
|
1919
2080
|
:param actions: The task action names, which are used to limit the response.
|
|
1920
2081
|
:param detailed: If `true`, the response includes detailed information about
|
|
@@ -1937,6 +2098,7 @@ class CatClient(NamespacedClient):
|
|
|
1937
2098
|
a suffix to the column name.
|
|
1938
2099
|
:param v: When set to `true` will enable verbose output.
|
|
1939
2100
|
"""
|
|
2101
|
+
__path_parts: t.Dict[str, str] = {}
|
|
1940
2102
|
__path = "/_cat/tasks"
|
|
1941
2103
|
__query: t.Dict[str, t.Any] = {}
|
|
1942
2104
|
if actions is not None:
|
|
@@ -1971,7 +2133,12 @@ class CatClient(NamespacedClient):
|
|
|
1971
2133
|
__query["v"] = v
|
|
1972
2134
|
__headers = {"accept": "text/plain,application/json"}
|
|
1973
2135
|
return await self.perform_request( # type: ignore[return-value]
|
|
1974
|
-
"GET",
|
|
2136
|
+
"GET",
|
|
2137
|
+
__path,
|
|
2138
|
+
params=__query,
|
|
2139
|
+
headers=__headers,
|
|
2140
|
+
endpoint_id="cat.tasks",
|
|
2141
|
+
path_parts=__path_parts,
|
|
1975
2142
|
)
|
|
1976
2143
|
|
|
1977
2144
|
@_rewrite_parameters()
|
|
@@ -1996,7 +2163,7 @@ class CatClient(NamespacedClient):
|
|
|
1996
2163
|
"""
|
|
1997
2164
|
Returns information about existing templates.
|
|
1998
2165
|
|
|
1999
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
2166
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-templates.html>`_
|
|
2000
2167
|
|
|
2001
2168
|
:param name: The name of the template to return. Accepts wildcard expressions.
|
|
2002
2169
|
If omitted, all templates are returned.
|
|
@@ -2015,9 +2182,12 @@ class CatClient(NamespacedClient):
|
|
|
2015
2182
|
a suffix to the column name.
|
|
2016
2183
|
:param v: When set to `true` will enable verbose output.
|
|
2017
2184
|
"""
|
|
2185
|
+
__path_parts: t.Dict[str, str]
|
|
2018
2186
|
if name not in SKIP_IN_PATH:
|
|
2019
|
-
|
|
2187
|
+
__path_parts = {"name": _quote(name)}
|
|
2188
|
+
__path = f'/_cat/templates/{__path_parts["name"]}'
|
|
2020
2189
|
else:
|
|
2190
|
+
__path_parts = {}
|
|
2021
2191
|
__path = "/_cat/templates"
|
|
2022
2192
|
__query: t.Dict[str, t.Any] = {}
|
|
2023
2193
|
if error_trace is not None:
|
|
@@ -2044,7 +2214,12 @@ class CatClient(NamespacedClient):
|
|
|
2044
2214
|
__query["v"] = v
|
|
2045
2215
|
__headers = {"accept": "text/plain,application/json"}
|
|
2046
2216
|
return await self.perform_request( # type: ignore[return-value]
|
|
2047
|
-
"GET",
|
|
2217
|
+
"GET",
|
|
2218
|
+
__path,
|
|
2219
|
+
params=__query,
|
|
2220
|
+
headers=__headers,
|
|
2221
|
+
endpoint_id="cat.templates",
|
|
2222
|
+
path_parts=__path_parts,
|
|
2048
2223
|
)
|
|
2049
2224
|
|
|
2050
2225
|
@_rewrite_parameters()
|
|
@@ -2073,7 +2248,7 @@ class CatClient(NamespacedClient):
|
|
|
2073
2248
|
Returns cluster-wide thread pool statistics per node. By default the active,
|
|
2074
2249
|
queue and rejected statistics are returned for all thread pools.
|
|
2075
2250
|
|
|
2076
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
2251
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-thread-pool.html>`_
|
|
2077
2252
|
|
|
2078
2253
|
:param thread_pool_patterns: A comma-separated list of thread pool names used
|
|
2079
2254
|
to limit the request. Accepts wildcard expressions.
|
|
@@ -2093,9 +2268,12 @@ class CatClient(NamespacedClient):
|
|
|
2093
2268
|
:param time: The unit used to display time values.
|
|
2094
2269
|
:param v: When set to `true` will enable verbose output.
|
|
2095
2270
|
"""
|
|
2271
|
+
__path_parts: t.Dict[str, str]
|
|
2096
2272
|
if thread_pool_patterns not in SKIP_IN_PATH:
|
|
2097
|
-
|
|
2273
|
+
__path_parts = {"thread_pool_patterns": _quote(thread_pool_patterns)}
|
|
2274
|
+
__path = f'/_cat/thread_pool/{__path_parts["thread_pool_patterns"]}'
|
|
2098
2275
|
else:
|
|
2276
|
+
__path_parts = {}
|
|
2099
2277
|
__path = "/_cat/thread_pool"
|
|
2100
2278
|
__query: t.Dict[str, t.Any] = {}
|
|
2101
2279
|
if error_trace is not None:
|
|
@@ -2124,7 +2302,12 @@ class CatClient(NamespacedClient):
|
|
|
2124
2302
|
__query["v"] = v
|
|
2125
2303
|
__headers = {"accept": "text/plain,application/json"}
|
|
2126
2304
|
return await self.perform_request( # type: ignore[return-value]
|
|
2127
|
-
"GET",
|
|
2305
|
+
"GET",
|
|
2306
|
+
__path,
|
|
2307
|
+
params=__query,
|
|
2308
|
+
headers=__headers,
|
|
2309
|
+
endpoint_id="cat.thread_pool",
|
|
2310
|
+
path_parts=__path_parts,
|
|
2128
2311
|
)
|
|
2129
2312
|
|
|
2130
2313
|
@_rewrite_parameters(
|
|
@@ -2183,7 +2366,7 @@ class CatClient(NamespacedClient):
|
|
|
2183
2366
|
"""
|
|
2184
2367
|
Gets configuration and usage information about transforms.
|
|
2185
2368
|
|
|
2186
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
2369
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-transforms.html>`_
|
|
2187
2370
|
|
|
2188
2371
|
:param transform_id: A transform identifier or a wildcard expression. If you
|
|
2189
2372
|
do not specify one of these options, the API returns information for all
|
|
@@ -2212,9 +2395,12 @@ class CatClient(NamespacedClient):
|
|
|
2212
2395
|
:param time: The unit used to display time values.
|
|
2213
2396
|
:param v: When set to `true` will enable verbose output.
|
|
2214
2397
|
"""
|
|
2398
|
+
__path_parts: t.Dict[str, str]
|
|
2215
2399
|
if transform_id not in SKIP_IN_PATH:
|
|
2216
|
-
|
|
2400
|
+
__path_parts = {"transform_id": _quote(transform_id)}
|
|
2401
|
+
__path = f'/_cat/transforms/{__path_parts["transform_id"]}'
|
|
2217
2402
|
else:
|
|
2403
|
+
__path_parts = {}
|
|
2218
2404
|
__path = "/_cat/transforms"
|
|
2219
2405
|
__query: t.Dict[str, t.Any] = {}
|
|
2220
2406
|
if allow_no_match is not None:
|
|
@@ -2249,5 +2435,10 @@ class CatClient(NamespacedClient):
|
|
|
2249
2435
|
__query["v"] = v
|
|
2250
2436
|
__headers = {"accept": "text/plain,application/json"}
|
|
2251
2437
|
return await self.perform_request( # type: ignore[return-value]
|
|
2252
|
-
"GET",
|
|
2438
|
+
"GET",
|
|
2439
|
+
__path,
|
|
2440
|
+
params=__query,
|
|
2441
|
+
headers=__headers,
|
|
2442
|
+
endpoint_id="cat.transforms",
|
|
2443
|
+
path_parts=__path_parts,
|
|
2253
2444
|
)
|