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 IlmClient(NamespacedClient):
|
|
27
|
+
|
|
27
28
|
@_rewrite_parameters()
|
|
28
29
|
async def delete_lifecycle(
|
|
29
30
|
self,
|
|
@@ -42,7 +43,7 @@ class IlmClient(NamespacedClient):
|
|
|
42
43
|
Deletes the specified lifecycle policy definition. A currently used policy cannot
|
|
43
44
|
be deleted.
|
|
44
45
|
|
|
45
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
46
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ilm-delete-lifecycle.html>`_
|
|
46
47
|
|
|
47
48
|
:param name: Identifier for the policy.
|
|
48
49
|
:param master_timeout: Period to wait for a connection to the master node. If
|
|
@@ -53,7 +54,8 @@ class IlmClient(NamespacedClient):
|
|
|
53
54
|
"""
|
|
54
55
|
if name in SKIP_IN_PATH:
|
|
55
56
|
raise ValueError("Empty value passed for parameter 'name'")
|
|
56
|
-
|
|
57
|
+
__path_parts: t.Dict[str, str] = {"policy": _quote(name)}
|
|
58
|
+
__path = f'/_ilm/policy/{__path_parts["policy"]}'
|
|
57
59
|
__query: t.Dict[str, t.Any] = {}
|
|
58
60
|
if error_trace is not None:
|
|
59
61
|
__query["error_trace"] = error_trace
|
|
@@ -69,7 +71,12 @@ class IlmClient(NamespacedClient):
|
|
|
69
71
|
__query["timeout"] = timeout
|
|
70
72
|
__headers = {"accept": "application/json"}
|
|
71
73
|
return await self.perform_request( # type: ignore[return-value]
|
|
72
|
-
"DELETE",
|
|
74
|
+
"DELETE",
|
|
75
|
+
__path,
|
|
76
|
+
params=__query,
|
|
77
|
+
headers=__headers,
|
|
78
|
+
endpoint_id="ilm.delete_lifecycle",
|
|
79
|
+
path_parts=__path_parts,
|
|
73
80
|
)
|
|
74
81
|
|
|
75
82
|
@_rewrite_parameters()
|
|
@@ -92,7 +99,7 @@ class IlmClient(NamespacedClient):
|
|
|
92
99
|
Retrieves information about the index's current lifecycle state, such as the
|
|
93
100
|
currently executing phase, action, and step.
|
|
94
101
|
|
|
95
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
102
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ilm-explain-lifecycle.html>`_
|
|
96
103
|
|
|
97
104
|
:param index: Comma-separated list of data streams, indices, and aliases to target.
|
|
98
105
|
Supports wildcards (`*`). To target all data streams and indices, use `*`
|
|
@@ -110,7 +117,8 @@ class IlmClient(NamespacedClient):
|
|
|
110
117
|
"""
|
|
111
118
|
if index in SKIP_IN_PATH:
|
|
112
119
|
raise ValueError("Empty value passed for parameter 'index'")
|
|
113
|
-
|
|
120
|
+
__path_parts: t.Dict[str, str] = {"index": _quote(index)}
|
|
121
|
+
__path = f'/{__path_parts["index"]}/_ilm/explain'
|
|
114
122
|
__query: t.Dict[str, t.Any] = {}
|
|
115
123
|
if error_trace is not None:
|
|
116
124
|
__query["error_trace"] = error_trace
|
|
@@ -130,7 +138,12 @@ class IlmClient(NamespacedClient):
|
|
|
130
138
|
__query["timeout"] = timeout
|
|
131
139
|
__headers = {"accept": "application/json"}
|
|
132
140
|
return await self.perform_request( # type: ignore[return-value]
|
|
133
|
-
"GET",
|
|
141
|
+
"GET",
|
|
142
|
+
__path,
|
|
143
|
+
params=__query,
|
|
144
|
+
headers=__headers,
|
|
145
|
+
endpoint_id="ilm.explain_lifecycle",
|
|
146
|
+
path_parts=__path_parts,
|
|
134
147
|
)
|
|
135
148
|
|
|
136
149
|
@_rewrite_parameters()
|
|
@@ -151,7 +164,7 @@ class IlmClient(NamespacedClient):
|
|
|
151
164
|
Returns the specified policy definition. Includes the policy version and last
|
|
152
165
|
modified date.
|
|
153
166
|
|
|
154
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
167
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ilm-get-lifecycle.html>`_
|
|
155
168
|
|
|
156
169
|
:param name: Identifier for the policy.
|
|
157
170
|
:param master_timeout: Period to wait for a connection to the master node. If
|
|
@@ -160,9 +173,12 @@ class IlmClient(NamespacedClient):
|
|
|
160
173
|
:param timeout: Period to wait for a response. If no response is received before
|
|
161
174
|
the timeout expires, the request fails and returns an error.
|
|
162
175
|
"""
|
|
176
|
+
__path_parts: t.Dict[str, str]
|
|
163
177
|
if name not in SKIP_IN_PATH:
|
|
164
|
-
|
|
178
|
+
__path_parts = {"policy": _quote(name)}
|
|
179
|
+
__path = f'/_ilm/policy/{__path_parts["policy"]}'
|
|
165
180
|
else:
|
|
181
|
+
__path_parts = {}
|
|
166
182
|
__path = "/_ilm/policy"
|
|
167
183
|
__query: t.Dict[str, t.Any] = {}
|
|
168
184
|
if error_trace is not None:
|
|
@@ -179,7 +195,12 @@ class IlmClient(NamespacedClient):
|
|
|
179
195
|
__query["timeout"] = timeout
|
|
180
196
|
__headers = {"accept": "application/json"}
|
|
181
197
|
return await self.perform_request( # type: ignore[return-value]
|
|
182
|
-
"GET",
|
|
198
|
+
"GET",
|
|
199
|
+
__path,
|
|
200
|
+
params=__query,
|
|
201
|
+
headers=__headers,
|
|
202
|
+
endpoint_id="ilm.get_lifecycle",
|
|
203
|
+
path_parts=__path_parts,
|
|
183
204
|
)
|
|
184
205
|
|
|
185
206
|
@_rewrite_parameters()
|
|
@@ -194,8 +215,9 @@ class IlmClient(NamespacedClient):
|
|
|
194
215
|
"""
|
|
195
216
|
Retrieves the current index lifecycle management (ILM) status.
|
|
196
217
|
|
|
197
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
218
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ilm-get-status.html>`_
|
|
198
219
|
"""
|
|
220
|
+
__path_parts: t.Dict[str, str] = {}
|
|
199
221
|
__path = "/_ilm/status"
|
|
200
222
|
__query: t.Dict[str, t.Any] = {}
|
|
201
223
|
if error_trace is not None:
|
|
@@ -208,7 +230,12 @@ class IlmClient(NamespacedClient):
|
|
|
208
230
|
__query["pretty"] = pretty
|
|
209
231
|
__headers = {"accept": "application/json"}
|
|
210
232
|
return await self.perform_request( # type: ignore[return-value]
|
|
211
|
-
"GET",
|
|
233
|
+
"GET",
|
|
234
|
+
__path,
|
|
235
|
+
params=__query,
|
|
236
|
+
headers=__headers,
|
|
237
|
+
endpoint_id="ilm.get_status",
|
|
238
|
+
path_parts=__path_parts,
|
|
212
239
|
)
|
|
213
240
|
|
|
214
241
|
@_rewrite_parameters(
|
|
@@ -230,7 +257,7 @@ class IlmClient(NamespacedClient):
|
|
|
230
257
|
Migrates the indices and ILM policies away from custom node attribute allocation
|
|
231
258
|
routing to data tiers routing
|
|
232
259
|
|
|
233
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
260
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ilm-migrate-to-data-tiers.html>`_
|
|
234
261
|
|
|
235
262
|
:param dry_run: If true, simulates the migration from node attributes based allocation
|
|
236
263
|
filters to data tiers, but does not perform the migration. This provides
|
|
@@ -238,6 +265,7 @@ class IlmClient(NamespacedClient):
|
|
|
238
265
|
:param legacy_template_to_delete:
|
|
239
266
|
:param node_attribute:
|
|
240
267
|
"""
|
|
268
|
+
__path_parts: t.Dict[str, str] = {}
|
|
241
269
|
__path = "/_ilm/migrate_to_data_tiers"
|
|
242
270
|
__query: t.Dict[str, t.Any] = {}
|
|
243
271
|
__body: t.Dict[str, t.Any] = body if body is not None else {}
|
|
@@ -262,7 +290,13 @@ class IlmClient(NamespacedClient):
|
|
|
262
290
|
if __body is not None:
|
|
263
291
|
__headers["content-type"] = "application/json"
|
|
264
292
|
return await self.perform_request( # type: ignore[return-value]
|
|
265
|
-
"POST",
|
|
293
|
+
"POST",
|
|
294
|
+
__path,
|
|
295
|
+
params=__query,
|
|
296
|
+
headers=__headers,
|
|
297
|
+
body=__body,
|
|
298
|
+
endpoint_id="ilm.migrate_to_data_tiers",
|
|
299
|
+
path_parts=__path_parts,
|
|
266
300
|
)
|
|
267
301
|
|
|
268
302
|
@_rewrite_parameters(
|
|
@@ -283,7 +317,7 @@ class IlmClient(NamespacedClient):
|
|
|
283
317
|
"""
|
|
284
318
|
Manually moves an index into the specified step and executes that step.
|
|
285
319
|
|
|
286
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
320
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ilm-move-to-step.html>`_
|
|
287
321
|
|
|
288
322
|
:param index: The name of the index whose lifecycle step is to change
|
|
289
323
|
:param current_step:
|
|
@@ -291,7 +325,8 @@ class IlmClient(NamespacedClient):
|
|
|
291
325
|
"""
|
|
292
326
|
if index in SKIP_IN_PATH:
|
|
293
327
|
raise ValueError("Empty value passed for parameter 'index'")
|
|
294
|
-
|
|
328
|
+
__path_parts: t.Dict[str, str] = {"index": _quote(index)}
|
|
329
|
+
__path = f'/_ilm/move/{__path_parts["index"]}'
|
|
295
330
|
__query: t.Dict[str, t.Any] = {}
|
|
296
331
|
__body: t.Dict[str, t.Any] = body if body is not None else {}
|
|
297
332
|
if error_trace is not None:
|
|
@@ -313,7 +348,13 @@ class IlmClient(NamespacedClient):
|
|
|
313
348
|
if __body is not None:
|
|
314
349
|
__headers["content-type"] = "application/json"
|
|
315
350
|
return await self.perform_request( # type: ignore[return-value]
|
|
316
|
-
"POST",
|
|
351
|
+
"POST",
|
|
352
|
+
__path,
|
|
353
|
+
params=__query,
|
|
354
|
+
headers=__headers,
|
|
355
|
+
body=__body,
|
|
356
|
+
endpoint_id="ilm.move_to_step",
|
|
357
|
+
path_parts=__path_parts,
|
|
317
358
|
)
|
|
318
359
|
|
|
319
360
|
@_rewrite_parameters(
|
|
@@ -337,7 +378,7 @@ class IlmClient(NamespacedClient):
|
|
|
337
378
|
"""
|
|
338
379
|
Creates a lifecycle policy
|
|
339
380
|
|
|
340
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
381
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ilm-put-lifecycle.html>`_
|
|
341
382
|
|
|
342
383
|
:param name: Identifier for the policy.
|
|
343
384
|
:param master_timeout: Period to wait for a connection to the master node. If
|
|
@@ -349,7 +390,8 @@ class IlmClient(NamespacedClient):
|
|
|
349
390
|
"""
|
|
350
391
|
if name in SKIP_IN_PATH:
|
|
351
392
|
raise ValueError("Empty value passed for parameter 'name'")
|
|
352
|
-
|
|
393
|
+
__path_parts: t.Dict[str, str] = {"policy": _quote(name)}
|
|
394
|
+
__path = f'/_ilm/policy/{__path_parts["policy"]}'
|
|
353
395
|
__query: t.Dict[str, t.Any] = {}
|
|
354
396
|
__body: t.Dict[str, t.Any] = body if body is not None else {}
|
|
355
397
|
if error_trace is not None:
|
|
@@ -373,7 +415,13 @@ class IlmClient(NamespacedClient):
|
|
|
373
415
|
if __body is not None:
|
|
374
416
|
__headers["content-type"] = "application/json"
|
|
375
417
|
return await self.perform_request( # type: ignore[return-value]
|
|
376
|
-
"PUT",
|
|
418
|
+
"PUT",
|
|
419
|
+
__path,
|
|
420
|
+
params=__query,
|
|
421
|
+
headers=__headers,
|
|
422
|
+
body=__body,
|
|
423
|
+
endpoint_id="ilm.put_lifecycle",
|
|
424
|
+
path_parts=__path_parts,
|
|
377
425
|
)
|
|
378
426
|
|
|
379
427
|
@_rewrite_parameters()
|
|
@@ -389,13 +437,14 @@ class IlmClient(NamespacedClient):
|
|
|
389
437
|
"""
|
|
390
438
|
Removes the assigned lifecycle policy and stops managing the specified index
|
|
391
439
|
|
|
392
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
440
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ilm-remove-policy.html>`_
|
|
393
441
|
|
|
394
442
|
:param index: The name of the index to remove policy on
|
|
395
443
|
"""
|
|
396
444
|
if index in SKIP_IN_PATH:
|
|
397
445
|
raise ValueError("Empty value passed for parameter 'index'")
|
|
398
|
-
|
|
446
|
+
__path_parts: t.Dict[str, str] = {"index": _quote(index)}
|
|
447
|
+
__path = f'/{__path_parts["index"]}/_ilm/remove'
|
|
399
448
|
__query: t.Dict[str, t.Any] = {}
|
|
400
449
|
if error_trace is not None:
|
|
401
450
|
__query["error_trace"] = error_trace
|
|
@@ -407,7 +456,12 @@ class IlmClient(NamespacedClient):
|
|
|
407
456
|
__query["pretty"] = pretty
|
|
408
457
|
__headers = {"accept": "application/json"}
|
|
409
458
|
return await self.perform_request( # type: ignore[return-value]
|
|
410
|
-
"POST",
|
|
459
|
+
"POST",
|
|
460
|
+
__path,
|
|
461
|
+
params=__query,
|
|
462
|
+
headers=__headers,
|
|
463
|
+
endpoint_id="ilm.remove_policy",
|
|
464
|
+
path_parts=__path_parts,
|
|
411
465
|
)
|
|
412
466
|
|
|
413
467
|
@_rewrite_parameters()
|
|
@@ -423,14 +477,15 @@ class IlmClient(NamespacedClient):
|
|
|
423
477
|
"""
|
|
424
478
|
Retries executing the policy for an index that is in the ERROR step.
|
|
425
479
|
|
|
426
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
480
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ilm-retry-policy.html>`_
|
|
427
481
|
|
|
428
482
|
:param index: The name of the indices (comma-separated) whose failed lifecycle
|
|
429
483
|
step is to be retry
|
|
430
484
|
"""
|
|
431
485
|
if index in SKIP_IN_PATH:
|
|
432
486
|
raise ValueError("Empty value passed for parameter 'index'")
|
|
433
|
-
|
|
487
|
+
__path_parts: t.Dict[str, str] = {"index": _quote(index)}
|
|
488
|
+
__path = f'/{__path_parts["index"]}/_ilm/retry'
|
|
434
489
|
__query: t.Dict[str, t.Any] = {}
|
|
435
490
|
if error_trace is not None:
|
|
436
491
|
__query["error_trace"] = error_trace
|
|
@@ -442,7 +497,12 @@ class IlmClient(NamespacedClient):
|
|
|
442
497
|
__query["pretty"] = pretty
|
|
443
498
|
__headers = {"accept": "application/json"}
|
|
444
499
|
return await self.perform_request( # type: ignore[return-value]
|
|
445
|
-
"POST",
|
|
500
|
+
"POST",
|
|
501
|
+
__path,
|
|
502
|
+
params=__query,
|
|
503
|
+
headers=__headers,
|
|
504
|
+
endpoint_id="ilm.retry",
|
|
505
|
+
path_parts=__path_parts,
|
|
446
506
|
)
|
|
447
507
|
|
|
448
508
|
@_rewrite_parameters()
|
|
@@ -461,11 +521,12 @@ class IlmClient(NamespacedClient):
|
|
|
461
521
|
"""
|
|
462
522
|
Start the index lifecycle management (ILM) plugin.
|
|
463
523
|
|
|
464
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
524
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ilm-start.html>`_
|
|
465
525
|
|
|
466
526
|
:param master_timeout:
|
|
467
527
|
:param timeout:
|
|
468
528
|
"""
|
|
529
|
+
__path_parts: t.Dict[str, str] = {}
|
|
469
530
|
__path = "/_ilm/start"
|
|
470
531
|
__query: t.Dict[str, t.Any] = {}
|
|
471
532
|
if error_trace is not None:
|
|
@@ -482,7 +543,12 @@ class IlmClient(NamespacedClient):
|
|
|
482
543
|
__query["timeout"] = timeout
|
|
483
544
|
__headers = {"accept": "application/json"}
|
|
484
545
|
return await self.perform_request( # type: ignore[return-value]
|
|
485
|
-
"POST",
|
|
546
|
+
"POST",
|
|
547
|
+
__path,
|
|
548
|
+
params=__query,
|
|
549
|
+
headers=__headers,
|
|
550
|
+
endpoint_id="ilm.start",
|
|
551
|
+
path_parts=__path_parts,
|
|
486
552
|
)
|
|
487
553
|
|
|
488
554
|
@_rewrite_parameters()
|
|
@@ -502,11 +568,12 @@ class IlmClient(NamespacedClient):
|
|
|
502
568
|
Halts all lifecycle management operations and stops the index lifecycle management
|
|
503
569
|
(ILM) plugin
|
|
504
570
|
|
|
505
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
571
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ilm-stop.html>`_
|
|
506
572
|
|
|
507
573
|
:param master_timeout:
|
|
508
574
|
:param timeout:
|
|
509
575
|
"""
|
|
576
|
+
__path_parts: t.Dict[str, str] = {}
|
|
510
577
|
__path = "/_ilm/stop"
|
|
511
578
|
__query: t.Dict[str, t.Any] = {}
|
|
512
579
|
if error_trace is not None:
|
|
@@ -523,5 +590,10 @@ class IlmClient(NamespacedClient):
|
|
|
523
590
|
__query["timeout"] = timeout
|
|
524
591
|
__headers = {"accept": "application/json"}
|
|
525
592
|
return await self.perform_request( # type: ignore[return-value]
|
|
526
|
-
"POST",
|
|
593
|
+
"POST",
|
|
594
|
+
__path,
|
|
595
|
+
params=__query,
|
|
596
|
+
headers=__headers,
|
|
597
|
+
endpoint_id="ilm.stop",
|
|
598
|
+
path_parts=__path_parts,
|
|
527
599
|
)
|