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 CcrClient(NamespacedClient):
|
|
27
|
+
|
|
27
28
|
@_rewrite_parameters()
|
|
28
29
|
async def delete_auto_follow_pattern(
|
|
29
30
|
self,
|
|
@@ -37,13 +38,14 @@ class CcrClient(NamespacedClient):
|
|
|
37
38
|
"""
|
|
38
39
|
Deletes auto-follow patterns.
|
|
39
40
|
|
|
40
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
41
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ccr-delete-auto-follow-pattern.html>`_
|
|
41
42
|
|
|
42
43
|
:param name: The name of the auto follow pattern.
|
|
43
44
|
"""
|
|
44
45
|
if name in SKIP_IN_PATH:
|
|
45
46
|
raise ValueError("Empty value passed for parameter 'name'")
|
|
46
|
-
|
|
47
|
+
__path_parts: t.Dict[str, str] = {"name": _quote(name)}
|
|
48
|
+
__path = f'/_ccr/auto_follow/{__path_parts["name"]}'
|
|
47
49
|
__query: t.Dict[str, t.Any] = {}
|
|
48
50
|
if error_trace is not None:
|
|
49
51
|
__query["error_trace"] = error_trace
|
|
@@ -55,7 +57,12 @@ class CcrClient(NamespacedClient):
|
|
|
55
57
|
__query["pretty"] = pretty
|
|
56
58
|
__headers = {"accept": "application/json"}
|
|
57
59
|
return await self.perform_request( # type: ignore[return-value]
|
|
58
|
-
"DELETE",
|
|
60
|
+
"DELETE",
|
|
61
|
+
__path,
|
|
62
|
+
params=__query,
|
|
63
|
+
headers=__headers,
|
|
64
|
+
endpoint_id="ccr.delete_auto_follow_pattern",
|
|
65
|
+
path_parts=__path_parts,
|
|
59
66
|
)
|
|
60
67
|
|
|
61
68
|
@_rewrite_parameters(
|
|
@@ -106,7 +113,7 @@ class CcrClient(NamespacedClient):
|
|
|
106
113
|
"""
|
|
107
114
|
Creates a new follower index configured to follow the referenced leader index.
|
|
108
115
|
|
|
109
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
116
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ccr-put-follow.html>`_
|
|
110
117
|
|
|
111
118
|
:param index: The name of the follower index
|
|
112
119
|
:param leader_index:
|
|
@@ -128,7 +135,8 @@ class CcrClient(NamespacedClient):
|
|
|
128
135
|
"""
|
|
129
136
|
if index in SKIP_IN_PATH:
|
|
130
137
|
raise ValueError("Empty value passed for parameter 'index'")
|
|
131
|
-
|
|
138
|
+
__path_parts: t.Dict[str, str] = {"index": _quote(index)}
|
|
139
|
+
__path = f'/{__path_parts["index"]}/_ccr/follow'
|
|
132
140
|
__query: t.Dict[str, t.Any] = {}
|
|
133
141
|
__body: t.Dict[str, t.Any] = body if body is not None else {}
|
|
134
142
|
if error_trace is not None:
|
|
@@ -174,7 +182,13 @@ class CcrClient(NamespacedClient):
|
|
|
174
182
|
__body["remote_cluster"] = remote_cluster
|
|
175
183
|
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
176
184
|
return await self.perform_request( # type: ignore[return-value]
|
|
177
|
-
"PUT",
|
|
185
|
+
"PUT",
|
|
186
|
+
__path,
|
|
187
|
+
params=__query,
|
|
188
|
+
headers=__headers,
|
|
189
|
+
body=__body,
|
|
190
|
+
endpoint_id="ccr.follow",
|
|
191
|
+
path_parts=__path_parts,
|
|
178
192
|
)
|
|
179
193
|
|
|
180
194
|
@_rewrite_parameters()
|
|
@@ -191,14 +205,15 @@ class CcrClient(NamespacedClient):
|
|
|
191
205
|
Retrieves information about all follower indices, including parameters and status
|
|
192
206
|
for each follower index
|
|
193
207
|
|
|
194
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
208
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ccr-get-follow-info.html>`_
|
|
195
209
|
|
|
196
210
|
:param index: A comma-separated list of index patterns; use `_all` to perform
|
|
197
211
|
the operation on all indices
|
|
198
212
|
"""
|
|
199
213
|
if index in SKIP_IN_PATH:
|
|
200
214
|
raise ValueError("Empty value passed for parameter 'index'")
|
|
201
|
-
|
|
215
|
+
__path_parts: t.Dict[str, str] = {"index": _quote(index)}
|
|
216
|
+
__path = f'/{__path_parts["index"]}/_ccr/info'
|
|
202
217
|
__query: t.Dict[str, t.Any] = {}
|
|
203
218
|
if error_trace is not None:
|
|
204
219
|
__query["error_trace"] = error_trace
|
|
@@ -210,7 +225,12 @@ class CcrClient(NamespacedClient):
|
|
|
210
225
|
__query["pretty"] = pretty
|
|
211
226
|
__headers = {"accept": "application/json"}
|
|
212
227
|
return await self.perform_request( # type: ignore[return-value]
|
|
213
|
-
"GET",
|
|
228
|
+
"GET",
|
|
229
|
+
__path,
|
|
230
|
+
params=__query,
|
|
231
|
+
headers=__headers,
|
|
232
|
+
endpoint_id="ccr.follow_info",
|
|
233
|
+
path_parts=__path_parts,
|
|
214
234
|
)
|
|
215
235
|
|
|
216
236
|
@_rewrite_parameters()
|
|
@@ -227,14 +247,15 @@ class CcrClient(NamespacedClient):
|
|
|
227
247
|
Retrieves follower stats. return shard-level stats about the following tasks
|
|
228
248
|
associated with each shard for the specified indices.
|
|
229
249
|
|
|
230
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
250
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ccr-get-follow-stats.html>`_
|
|
231
251
|
|
|
232
252
|
:param index: A comma-separated list of index patterns; use `_all` to perform
|
|
233
253
|
the operation on all indices
|
|
234
254
|
"""
|
|
235
255
|
if index in SKIP_IN_PATH:
|
|
236
256
|
raise ValueError("Empty value passed for parameter 'index'")
|
|
237
|
-
|
|
257
|
+
__path_parts: t.Dict[str, str] = {"index": _quote(index)}
|
|
258
|
+
__path = f'/{__path_parts["index"]}/_ccr/stats'
|
|
238
259
|
__query: t.Dict[str, t.Any] = {}
|
|
239
260
|
if error_trace is not None:
|
|
240
261
|
__query["error_trace"] = error_trace
|
|
@@ -246,7 +267,12 @@ class CcrClient(NamespacedClient):
|
|
|
246
267
|
__query["pretty"] = pretty
|
|
247
268
|
__headers = {"accept": "application/json"}
|
|
248
269
|
return await self.perform_request( # type: ignore[return-value]
|
|
249
|
-
"GET",
|
|
270
|
+
"GET",
|
|
271
|
+
__path,
|
|
272
|
+
params=__query,
|
|
273
|
+
headers=__headers,
|
|
274
|
+
endpoint_id="ccr.follow_stats",
|
|
275
|
+
path_parts=__path_parts,
|
|
250
276
|
)
|
|
251
277
|
|
|
252
278
|
@_rewrite_parameters(
|
|
@@ -274,7 +300,7 @@ class CcrClient(NamespacedClient):
|
|
|
274
300
|
"""
|
|
275
301
|
Removes the follower retention leases from the leader.
|
|
276
302
|
|
|
277
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
303
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ccr-post-forget-follower.html>`_
|
|
278
304
|
|
|
279
305
|
:param index: the name of the leader index for which specified follower retention
|
|
280
306
|
leases should be removed
|
|
@@ -285,7 +311,8 @@ class CcrClient(NamespacedClient):
|
|
|
285
311
|
"""
|
|
286
312
|
if index in SKIP_IN_PATH:
|
|
287
313
|
raise ValueError("Empty value passed for parameter 'index'")
|
|
288
|
-
|
|
314
|
+
__path_parts: t.Dict[str, str] = {"index": _quote(index)}
|
|
315
|
+
__path = f'/{__path_parts["index"]}/_ccr/forget_follower'
|
|
289
316
|
__query: t.Dict[str, t.Any] = {}
|
|
290
317
|
__body: t.Dict[str, t.Any] = body if body is not None else {}
|
|
291
318
|
if error_trace is not None:
|
|
@@ -307,7 +334,13 @@ class CcrClient(NamespacedClient):
|
|
|
307
334
|
__body["leader_remote_cluster"] = leader_remote_cluster
|
|
308
335
|
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
309
336
|
return await self.perform_request( # type: ignore[return-value]
|
|
310
|
-
"POST",
|
|
337
|
+
"POST",
|
|
338
|
+
__path,
|
|
339
|
+
params=__query,
|
|
340
|
+
headers=__headers,
|
|
341
|
+
body=__body,
|
|
342
|
+
endpoint_id="ccr.forget_follower",
|
|
343
|
+
path_parts=__path_parts,
|
|
311
344
|
)
|
|
312
345
|
|
|
313
346
|
@_rewrite_parameters()
|
|
@@ -324,14 +357,17 @@ class CcrClient(NamespacedClient):
|
|
|
324
357
|
Gets configured auto-follow patterns. Returns the specified auto-follow pattern
|
|
325
358
|
collection.
|
|
326
359
|
|
|
327
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
360
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ccr-get-auto-follow-pattern.html>`_
|
|
328
361
|
|
|
329
362
|
:param name: Specifies the auto-follow pattern collection that you want to retrieve.
|
|
330
363
|
If you do not specify a name, the API returns information for all collections.
|
|
331
364
|
"""
|
|
365
|
+
__path_parts: t.Dict[str, str]
|
|
332
366
|
if name not in SKIP_IN_PATH:
|
|
333
|
-
|
|
367
|
+
__path_parts = {"name": _quote(name)}
|
|
368
|
+
__path = f'/_ccr/auto_follow/{__path_parts["name"]}'
|
|
334
369
|
else:
|
|
370
|
+
__path_parts = {}
|
|
335
371
|
__path = "/_ccr/auto_follow"
|
|
336
372
|
__query: t.Dict[str, t.Any] = {}
|
|
337
373
|
if error_trace is not None:
|
|
@@ -344,7 +380,12 @@ class CcrClient(NamespacedClient):
|
|
|
344
380
|
__query["pretty"] = pretty
|
|
345
381
|
__headers = {"accept": "application/json"}
|
|
346
382
|
return await self.perform_request( # type: ignore[return-value]
|
|
347
|
-
"GET",
|
|
383
|
+
"GET",
|
|
384
|
+
__path,
|
|
385
|
+
params=__query,
|
|
386
|
+
headers=__headers,
|
|
387
|
+
endpoint_id="ccr.get_auto_follow_pattern",
|
|
388
|
+
path_parts=__path_parts,
|
|
348
389
|
)
|
|
349
390
|
|
|
350
391
|
@_rewrite_parameters()
|
|
@@ -360,14 +401,15 @@ class CcrClient(NamespacedClient):
|
|
|
360
401
|
"""
|
|
361
402
|
Pauses an auto-follow pattern
|
|
362
403
|
|
|
363
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
404
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ccr-pause-auto-follow-pattern.html>`_
|
|
364
405
|
|
|
365
406
|
:param name: The name of the auto follow pattern that should pause discovering
|
|
366
407
|
new indices to follow.
|
|
367
408
|
"""
|
|
368
409
|
if name in SKIP_IN_PATH:
|
|
369
410
|
raise ValueError("Empty value passed for parameter 'name'")
|
|
370
|
-
|
|
411
|
+
__path_parts: t.Dict[str, str] = {"name": _quote(name)}
|
|
412
|
+
__path = f'/_ccr/auto_follow/{__path_parts["name"]}/pause'
|
|
371
413
|
__query: t.Dict[str, t.Any] = {}
|
|
372
414
|
if error_trace is not None:
|
|
373
415
|
__query["error_trace"] = error_trace
|
|
@@ -379,7 +421,12 @@ class CcrClient(NamespacedClient):
|
|
|
379
421
|
__query["pretty"] = pretty
|
|
380
422
|
__headers = {"accept": "application/json"}
|
|
381
423
|
return await self.perform_request( # type: ignore[return-value]
|
|
382
|
-
"POST",
|
|
424
|
+
"POST",
|
|
425
|
+
__path,
|
|
426
|
+
params=__query,
|
|
427
|
+
headers=__headers,
|
|
428
|
+
endpoint_id="ccr.pause_auto_follow_pattern",
|
|
429
|
+
path_parts=__path_parts,
|
|
383
430
|
)
|
|
384
431
|
|
|
385
432
|
@_rewrite_parameters()
|
|
@@ -396,14 +443,15 @@ class CcrClient(NamespacedClient):
|
|
|
396
443
|
Pauses a follower index. The follower index will not fetch any additional operations
|
|
397
444
|
from the leader index.
|
|
398
445
|
|
|
399
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
446
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ccr-post-pause-follow.html>`_
|
|
400
447
|
|
|
401
448
|
:param index: The name of the follower index that should pause following its
|
|
402
449
|
leader index.
|
|
403
450
|
"""
|
|
404
451
|
if index in SKIP_IN_PATH:
|
|
405
452
|
raise ValueError("Empty value passed for parameter 'index'")
|
|
406
|
-
|
|
453
|
+
__path_parts: t.Dict[str, str] = {"index": _quote(index)}
|
|
454
|
+
__path = f'/{__path_parts["index"]}/_ccr/pause_follow'
|
|
407
455
|
__query: t.Dict[str, t.Any] = {}
|
|
408
456
|
if error_trace is not None:
|
|
409
457
|
__query["error_trace"] = error_trace
|
|
@@ -415,7 +463,12 @@ class CcrClient(NamespacedClient):
|
|
|
415
463
|
__query["pretty"] = pretty
|
|
416
464
|
__headers = {"accept": "application/json"}
|
|
417
465
|
return await self.perform_request( # type: ignore[return-value]
|
|
418
|
-
"POST",
|
|
466
|
+
"POST",
|
|
467
|
+
__path,
|
|
468
|
+
params=__query,
|
|
469
|
+
headers=__headers,
|
|
470
|
+
endpoint_id="ccr.pause_follow",
|
|
471
|
+
path_parts=__path_parts,
|
|
419
472
|
)
|
|
420
473
|
|
|
421
474
|
@_rewrite_parameters(
|
|
@@ -471,7 +524,7 @@ class CcrClient(NamespacedClient):
|
|
|
471
524
|
cluster. Newly created indices on the remote cluster matching any of the specified
|
|
472
525
|
patterns will be automatically configured as follower indices.
|
|
473
526
|
|
|
474
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
527
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ccr-put-auto-follow-pattern.html>`_
|
|
475
528
|
|
|
476
529
|
:param name: The name of the collection of auto-follow patterns.
|
|
477
530
|
:param remote_cluster: The remote cluster containing the leader indices to match
|
|
@@ -520,7 +573,8 @@ class CcrClient(NamespacedClient):
|
|
|
520
573
|
raise ValueError("Empty value passed for parameter 'name'")
|
|
521
574
|
if remote_cluster is None and body is None:
|
|
522
575
|
raise ValueError("Empty value passed for parameter 'remote_cluster'")
|
|
523
|
-
|
|
576
|
+
__path_parts: t.Dict[str, str] = {"name": _quote(name)}
|
|
577
|
+
__path = f'/_ccr/auto_follow/{__path_parts["name"]}'
|
|
524
578
|
__query: t.Dict[str, t.Any] = {}
|
|
525
579
|
__body: t.Dict[str, t.Any] = body if body is not None else {}
|
|
526
580
|
if error_trace is not None:
|
|
@@ -572,7 +626,13 @@ class CcrClient(NamespacedClient):
|
|
|
572
626
|
__body["settings"] = settings
|
|
573
627
|
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
574
628
|
return await self.perform_request( # type: ignore[return-value]
|
|
575
|
-
"PUT",
|
|
629
|
+
"PUT",
|
|
630
|
+
__path,
|
|
631
|
+
params=__query,
|
|
632
|
+
headers=__headers,
|
|
633
|
+
body=__body,
|
|
634
|
+
endpoint_id="ccr.put_auto_follow_pattern",
|
|
635
|
+
path_parts=__path_parts,
|
|
576
636
|
)
|
|
577
637
|
|
|
578
638
|
@_rewrite_parameters()
|
|
@@ -588,14 +648,15 @@ class CcrClient(NamespacedClient):
|
|
|
588
648
|
"""
|
|
589
649
|
Resumes an auto-follow pattern that has been paused
|
|
590
650
|
|
|
591
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
651
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ccr-resume-auto-follow-pattern.html>`_
|
|
592
652
|
|
|
593
653
|
:param name: The name of the auto follow pattern to resume discovering new indices
|
|
594
654
|
to follow.
|
|
595
655
|
"""
|
|
596
656
|
if name in SKIP_IN_PATH:
|
|
597
657
|
raise ValueError("Empty value passed for parameter 'name'")
|
|
598
|
-
|
|
658
|
+
__path_parts: t.Dict[str, str] = {"name": _quote(name)}
|
|
659
|
+
__path = f'/_ccr/auto_follow/{__path_parts["name"]}/resume'
|
|
599
660
|
__query: t.Dict[str, t.Any] = {}
|
|
600
661
|
if error_trace is not None:
|
|
601
662
|
__query["error_trace"] = error_trace
|
|
@@ -607,7 +668,12 @@ class CcrClient(NamespacedClient):
|
|
|
607
668
|
__query["pretty"] = pretty
|
|
608
669
|
__headers = {"accept": "application/json"}
|
|
609
670
|
return await self.perform_request( # type: ignore[return-value]
|
|
610
|
-
"POST",
|
|
671
|
+
"POST",
|
|
672
|
+
__path,
|
|
673
|
+
params=__query,
|
|
674
|
+
headers=__headers,
|
|
675
|
+
endpoint_id="ccr.resume_auto_follow_pattern",
|
|
676
|
+
path_parts=__path_parts,
|
|
611
677
|
)
|
|
612
678
|
|
|
613
679
|
@_rewrite_parameters(
|
|
@@ -651,7 +717,7 @@ class CcrClient(NamespacedClient):
|
|
|
651
717
|
"""
|
|
652
718
|
Resumes a follower index that has been paused
|
|
653
719
|
|
|
654
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
720
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ccr-post-resume-follow.html>`_
|
|
655
721
|
|
|
656
722
|
:param index: The name of the follow index to resume following.
|
|
657
723
|
:param max_outstanding_read_requests:
|
|
@@ -667,7 +733,8 @@ class CcrClient(NamespacedClient):
|
|
|
667
733
|
"""
|
|
668
734
|
if index in SKIP_IN_PATH:
|
|
669
735
|
raise ValueError("Empty value passed for parameter 'index'")
|
|
670
|
-
|
|
736
|
+
__path_parts: t.Dict[str, str] = {"index": _quote(index)}
|
|
737
|
+
__path = f'/{__path_parts["index"]}/_ccr/resume_follow'
|
|
671
738
|
__query: t.Dict[str, t.Any] = {}
|
|
672
739
|
__body: t.Dict[str, t.Any] = body if body is not None else {}
|
|
673
740
|
if error_trace is not None:
|
|
@@ -711,7 +778,13 @@ class CcrClient(NamespacedClient):
|
|
|
711
778
|
if __body is not None:
|
|
712
779
|
__headers["content-type"] = "application/json"
|
|
713
780
|
return await self.perform_request( # type: ignore[return-value]
|
|
714
|
-
"POST",
|
|
781
|
+
"POST",
|
|
782
|
+
__path,
|
|
783
|
+
params=__query,
|
|
784
|
+
headers=__headers,
|
|
785
|
+
body=__body,
|
|
786
|
+
endpoint_id="ccr.resume_follow",
|
|
787
|
+
path_parts=__path_parts,
|
|
715
788
|
)
|
|
716
789
|
|
|
717
790
|
@_rewrite_parameters()
|
|
@@ -726,8 +799,9 @@ class CcrClient(NamespacedClient):
|
|
|
726
799
|
"""
|
|
727
800
|
Gets all stats related to cross-cluster replication.
|
|
728
801
|
|
|
729
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
802
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ccr-get-stats.html>`_
|
|
730
803
|
"""
|
|
804
|
+
__path_parts: t.Dict[str, str] = {}
|
|
731
805
|
__path = "/_ccr/stats"
|
|
732
806
|
__query: t.Dict[str, t.Any] = {}
|
|
733
807
|
if error_trace is not None:
|
|
@@ -740,7 +814,12 @@ class CcrClient(NamespacedClient):
|
|
|
740
814
|
__query["pretty"] = pretty
|
|
741
815
|
__headers = {"accept": "application/json"}
|
|
742
816
|
return await self.perform_request( # type: ignore[return-value]
|
|
743
|
-
"GET",
|
|
817
|
+
"GET",
|
|
818
|
+
__path,
|
|
819
|
+
params=__query,
|
|
820
|
+
headers=__headers,
|
|
821
|
+
endpoint_id="ccr.stats",
|
|
822
|
+
path_parts=__path_parts,
|
|
744
823
|
)
|
|
745
824
|
|
|
746
825
|
@_rewrite_parameters()
|
|
@@ -757,14 +836,15 @@ class CcrClient(NamespacedClient):
|
|
|
757
836
|
Stops the following task associated with a follower index and removes index metadata
|
|
758
837
|
and settings associated with cross-cluster replication.
|
|
759
838
|
|
|
760
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
839
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ccr-post-unfollow.html>`_
|
|
761
840
|
|
|
762
841
|
:param index: The name of the follower index that should be turned into a regular
|
|
763
842
|
index.
|
|
764
843
|
"""
|
|
765
844
|
if index in SKIP_IN_PATH:
|
|
766
845
|
raise ValueError("Empty value passed for parameter 'index'")
|
|
767
|
-
|
|
846
|
+
__path_parts: t.Dict[str, str] = {"index": _quote(index)}
|
|
847
|
+
__path = f'/{__path_parts["index"]}/_ccr/unfollow'
|
|
768
848
|
__query: t.Dict[str, t.Any] = {}
|
|
769
849
|
if error_trace is not None:
|
|
770
850
|
__query["error_trace"] = error_trace
|
|
@@ -776,5 +856,10 @@ class CcrClient(NamespacedClient):
|
|
|
776
856
|
__query["pretty"] = pretty
|
|
777
857
|
__headers = {"accept": "application/json"}
|
|
778
858
|
return await self.perform_request( # type: ignore[return-value]
|
|
779
|
-
"POST",
|
|
859
|
+
"POST",
|
|
860
|
+
__path,
|
|
861
|
+
params=__query,
|
|
862
|
+
headers=__headers,
|
|
863
|
+
endpoint_id="ccr.unfollow",
|
|
864
|
+
path_parts=__path_parts,
|
|
780
865
|
)
|