elasticsearch 8.17.0__py3-none-any.whl → 8.17.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. elasticsearch/__init__.py +2 -2
  2. elasticsearch/_async/client/__init__.py +2034 -740
  3. elasticsearch/_async/client/async_search.py +33 -22
  4. elasticsearch/_async/client/autoscaling.py +27 -21
  5. elasticsearch/_async/client/cat.py +280 -336
  6. elasticsearch/_async/client/ccr.py +96 -70
  7. elasticsearch/_async/client/cluster.py +152 -144
  8. elasticsearch/_async/client/connector.py +488 -55
  9. elasticsearch/_async/client/dangling_indices.py +22 -16
  10. elasticsearch/_async/client/enrich.py +25 -6
  11. elasticsearch/_async/client/eql.py +22 -9
  12. elasticsearch/_async/client/esql.py +295 -3
  13. elasticsearch/_async/client/features.py +25 -25
  14. elasticsearch/_async/client/fleet.py +15 -9
  15. elasticsearch/_async/client/graph.py +9 -8
  16. elasticsearch/_async/client/ilm.py +91 -61
  17. elasticsearch/_async/client/indices.py +746 -324
  18. elasticsearch/_async/client/inference.py +101 -4
  19. elasticsearch/_async/client/ingest.py +231 -19
  20. elasticsearch/_async/client/license.py +48 -31
  21. elasticsearch/_async/client/logstash.py +20 -6
  22. elasticsearch/_async/client/migration.py +25 -7
  23. elasticsearch/_async/client/ml.py +532 -278
  24. elasticsearch/_async/client/monitoring.py +5 -1
  25. elasticsearch/_async/client/nodes.py +46 -30
  26. elasticsearch/_async/client/query_rules.py +65 -18
  27. elasticsearch/_async/client/rollup.py +126 -13
  28. elasticsearch/_async/client/search_application.py +170 -13
  29. elasticsearch/_async/client/searchable_snapshots.py +45 -23
  30. elasticsearch/_async/client/security.py +1299 -340
  31. elasticsearch/_async/client/shutdown.py +43 -15
  32. elasticsearch/_async/client/simulate.py +145 -0
  33. elasticsearch/_async/client/slm.py +163 -19
  34. elasticsearch/_async/client/snapshot.py +288 -23
  35. elasticsearch/_async/client/sql.py +94 -53
  36. elasticsearch/_async/client/ssl.py +16 -17
  37. elasticsearch/_async/client/synonyms.py +67 -26
  38. elasticsearch/_async/client/tasks.py +103 -28
  39. elasticsearch/_async/client/text_structure.py +475 -46
  40. elasticsearch/_async/client/transform.py +108 -72
  41. elasticsearch/_async/client/watcher.py +245 -43
  42. elasticsearch/_async/client/xpack.py +20 -6
  43. elasticsearch/_async/helpers.py +1 -1
  44. elasticsearch/_sync/client/__init__.py +2034 -740
  45. elasticsearch/_sync/client/async_search.py +33 -22
  46. elasticsearch/_sync/client/autoscaling.py +27 -21
  47. elasticsearch/_sync/client/cat.py +280 -336
  48. elasticsearch/_sync/client/ccr.py +96 -70
  49. elasticsearch/_sync/client/cluster.py +152 -144
  50. elasticsearch/_sync/client/connector.py +488 -55
  51. elasticsearch/_sync/client/dangling_indices.py +22 -16
  52. elasticsearch/_sync/client/enrich.py +25 -6
  53. elasticsearch/_sync/client/eql.py +22 -9
  54. elasticsearch/_sync/client/esql.py +295 -3
  55. elasticsearch/_sync/client/features.py +25 -25
  56. elasticsearch/_sync/client/fleet.py +15 -9
  57. elasticsearch/_sync/client/graph.py +9 -8
  58. elasticsearch/_sync/client/ilm.py +91 -61
  59. elasticsearch/_sync/client/indices.py +746 -324
  60. elasticsearch/_sync/client/inference.py +101 -4
  61. elasticsearch/_sync/client/ingest.py +231 -19
  62. elasticsearch/_sync/client/license.py +48 -31
  63. elasticsearch/_sync/client/logstash.py +20 -6
  64. elasticsearch/_sync/client/migration.py +25 -7
  65. elasticsearch/_sync/client/ml.py +532 -278
  66. elasticsearch/_sync/client/monitoring.py +5 -1
  67. elasticsearch/_sync/client/nodes.py +46 -30
  68. elasticsearch/_sync/client/query_rules.py +65 -18
  69. elasticsearch/_sync/client/rollup.py +126 -13
  70. elasticsearch/_sync/client/search_application.py +170 -13
  71. elasticsearch/_sync/client/searchable_snapshots.py +45 -23
  72. elasticsearch/_sync/client/security.py +1299 -340
  73. elasticsearch/_sync/client/shutdown.py +43 -15
  74. elasticsearch/_sync/client/simulate.py +145 -0
  75. elasticsearch/_sync/client/slm.py +163 -19
  76. elasticsearch/_sync/client/snapshot.py +288 -23
  77. elasticsearch/_sync/client/sql.py +94 -53
  78. elasticsearch/_sync/client/ssl.py +16 -17
  79. elasticsearch/_sync/client/synonyms.py +67 -26
  80. elasticsearch/_sync/client/tasks.py +103 -28
  81. elasticsearch/_sync/client/text_structure.py +475 -46
  82. elasticsearch/_sync/client/transform.py +108 -72
  83. elasticsearch/_sync/client/utils.py +1 -1
  84. elasticsearch/_sync/client/watcher.py +245 -43
  85. elasticsearch/_sync/client/xpack.py +20 -6
  86. elasticsearch/_version.py +1 -1
  87. elasticsearch/client.py +4 -0
  88. elasticsearch/helpers/actions.py +1 -1
  89. elasticsearch/helpers/vectorstore/_sync/vectorstore.py +4 -1
  90. {elasticsearch-8.17.0.dist-info → elasticsearch-8.17.2.dist-info}/METADATA +1 -1
  91. elasticsearch-8.17.2.dist-info/RECORD +119 -0
  92. elasticsearch-8.17.0.dist-info/RECORD +0 -117
  93. {elasticsearch-8.17.0.dist-info → elasticsearch-8.17.2.dist-info}/WHEEL +0 -0
  94. {elasticsearch-8.17.0.dist-info → elasticsearch-8.17.2.dist-info}/licenses/LICENSE +0 -0
  95. {elasticsearch-8.17.0.dist-info → elasticsearch-8.17.2.dist-info}/licenses/NOTICE +0 -0
@@ -36,8 +36,11 @@ class CcrClient(NamespacedClient):
36
36
  pretty: t.Optional[bool] = None,
37
37
  ) -> ObjectApiResponse[t.Any]:
38
38
  """
39
- Delete auto-follow patterns. Delete a collection of cross-cluster replication
40
- auto-follow patterns.
39
+ .. raw:: html
40
+
41
+ <p>Delete auto-follow patterns.
42
+ Delete a collection of cross-cluster replication auto-follow patterns.</p>
43
+
41
44
 
42
45
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-delete-auto-follow-pattern.html>`_
43
46
 
@@ -108,10 +111,12 @@ class CcrClient(NamespacedClient):
108
111
  body: t.Optional[t.Dict[str, t.Any]] = None,
109
112
  ) -> ObjectApiResponse[t.Any]:
110
113
  """
111
- Create a follower. Create a cross-cluster replication follower index that follows
112
- a specific leader index. When the API returns, the follower index exists and
113
- cross-cluster replication starts replicating operations from the leader index
114
- to the follower index.
114
+ .. raw:: html
115
+
116
+ <p>Create a follower.
117
+ Create a cross-cluster replication follower index that follows a specific leader index.
118
+ When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index.</p>
119
+
115
120
 
116
121
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-put-follow.html>`_
117
122
 
@@ -202,10 +207,12 @@ class CcrClient(NamespacedClient):
202
207
  pretty: t.Optional[bool] = None,
203
208
  ) -> ObjectApiResponse[t.Any]:
204
209
  """
205
- Get follower information. Get information about all cross-cluster replication
206
- follower indices. For example, the results include follower index names, leader
207
- index names, replication options, and whether the follower indices are active
208
- or paused.
210
+ .. raw:: html
211
+
212
+ <p>Get follower information.
213
+ Get information about all cross-cluster replication follower indices.
214
+ For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused.</p>
215
+
209
216
 
210
217
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-get-follow-info.html>`_
211
218
 
@@ -246,9 +253,12 @@ class CcrClient(NamespacedClient):
246
253
  pretty: t.Optional[bool] = None,
247
254
  ) -> ObjectApiResponse[t.Any]:
248
255
  """
249
- Get follower stats. Get cross-cluster replication follower stats. The API returns
250
- shard-level stats about the "following tasks" associated with each shard for
251
- the specified indices.
256
+ .. raw:: html
257
+
258
+ <p>Get follower stats.
259
+ Get cross-cluster replication follower stats.
260
+ The API returns shard-level stats about the &quot;following tasks&quot; associated with each shard for the specified indices.</p>
261
+
252
262
 
253
263
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-get-follow-stats.html>`_
254
264
 
@@ -301,23 +311,19 @@ class CcrClient(NamespacedClient):
301
311
  body: t.Optional[t.Dict[str, t.Any]] = None,
302
312
  ) -> ObjectApiResponse[t.Any]:
303
313
  """
304
- Forget a follower. Remove the cross-cluster replication follower retention leases
305
- from the leader. A following index takes out retention leases on its leader index.
306
- These leases are used to increase the likelihood that the shards of the leader
307
- index retain the history of operations that the shards of the following index
308
- need to run replication. When a follower index is converted to a regular index
309
- by the unfollow API (either by directly calling the API or by index lifecycle
310
- management tasks), these leases are removed. However, removal of the leases can
311
- fail, for example when the remote cluster containing the leader index is unavailable.
312
- While the leases will eventually expire on their own, their extended existence
313
- can cause the leader index to hold more history than necessary and prevent index
314
- lifecycle management from performing some operations on the leader index. This
315
- API exists to enable manually removing the leases when the unfollow API is unable
316
- to do so. NOTE: This API does not stop replication by a following index. If you
317
- use this API with a follower index that is still actively following, the following
318
- index will add back retention leases on the leader. The only purpose of this
319
- API is to handle the case of failure to remove the following retention leases
320
- after the unfollow API is invoked.
314
+ .. raw:: html
315
+
316
+ <p>Forget a follower.
317
+ Remove the cross-cluster replication follower retention leases from the leader.</p>
318
+ <p>A following index takes out retention leases on its leader index.
319
+ These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication.
320
+ When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed.
321
+ However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable.
322
+ While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index.
323
+ This API exists to enable manually removing the leases when the unfollow API is unable to do so.</p>
324
+ <p>NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader.
325
+ The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked.</p>
326
+
321
327
 
322
328
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-post-forget-follower.html>`_
323
329
 
@@ -373,7 +379,11 @@ class CcrClient(NamespacedClient):
373
379
  pretty: t.Optional[bool] = None,
374
380
  ) -> ObjectApiResponse[t.Any]:
375
381
  """
376
- Get auto-follow patterns. Get cross-cluster replication auto-follow patterns.
382
+ .. raw:: html
383
+
384
+ <p>Get auto-follow patterns.
385
+ Get cross-cluster replication auto-follow patterns.</p>
386
+
377
387
 
378
388
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-get-auto-follow-pattern.html>`_
379
389
 
@@ -417,14 +427,16 @@ class CcrClient(NamespacedClient):
417
427
  pretty: t.Optional[bool] = None,
418
428
  ) -> ObjectApiResponse[t.Any]:
419
429
  """
420
- Pause an auto-follow pattern. Pause a cross-cluster replication auto-follow pattern.
421
- When the API returns, the auto-follow pattern is inactive. New indices that are
422
- created on the remote cluster and match the auto-follow patterns are ignored.
423
- You can resume auto-following with the resume auto-follow pattern API. When it
424
- resumes, the auto-follow pattern is active again and automatically configures
425
- follower indices for newly created indices on the remote cluster that match its
426
- patterns. Remote indices that were created while the pattern was paused will
427
- also be followed, unless they have been deleted or closed in the interim.
430
+ .. raw:: html
431
+
432
+ <p>Pause an auto-follow pattern.
433
+ Pause a cross-cluster replication auto-follow pattern.
434
+ When the API returns, the auto-follow pattern is inactive.
435
+ New indices that are created on the remote cluster and match the auto-follow patterns are ignored.</p>
436
+ <p>You can resume auto-following with the resume auto-follow pattern API.
437
+ When it resumes, the auto-follow pattern is active again and automatically configures follower indices for newly created indices on the remote cluster that match its patterns.
438
+ Remote indices that were created while the pattern was paused will also be followed, unless they have been deleted or closed in the interim.</p>
439
+
428
440
 
429
441
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-pause-auto-follow-pattern.html>`_
430
442
 
@@ -465,10 +477,14 @@ class CcrClient(NamespacedClient):
465
477
  pretty: t.Optional[bool] = None,
466
478
  ) -> ObjectApiResponse[t.Any]:
467
479
  """
468
- Pause a follower. Pause a cross-cluster replication follower index. The follower
469
- index will not fetch any additional operations from the leader index. You can
470
- resume following with the resume follower API. You can pause and resume a follower
471
- index to change the configuration of the following task.
480
+ .. raw:: html
481
+
482
+ <p>Pause a follower.
483
+ Pause a cross-cluster replication follower index.
484
+ The follower index will not fetch any additional operations from the leader index.
485
+ You can resume following with the resume follower API.
486
+ You can pause and resume a follower index to change the configuration of the following task.</p>
487
+
472
488
 
473
489
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-post-pause-follow.html>`_
474
490
 
@@ -543,14 +559,15 @@ class CcrClient(NamespacedClient):
543
559
  body: t.Optional[t.Dict[str, t.Any]] = None,
544
560
  ) -> ObjectApiResponse[t.Any]:
545
561
  """
546
- Create or update auto-follow patterns. Create a collection of cross-cluster replication
547
- auto-follow patterns for a remote cluster. Newly created indices on the remote
548
- cluster that match any of the patterns are automatically configured as follower
549
- indices. Indices on the remote cluster that were created before the auto-follow
550
- pattern was created will not be auto-followed even if they match the pattern.
551
- This API can also be used to update auto-follow patterns. NOTE: Follower indices
552
- that were configured automatically before updating an auto-follow pattern will
553
- remain unchanged even if they do not match against the new patterns.
562
+ .. raw:: html
563
+
564
+ <p>Create or update auto-follow patterns.
565
+ Create a collection of cross-cluster replication auto-follow patterns for a remote cluster.
566
+ Newly created indices on the remote cluster that match any of the patterns are automatically configured as follower indices.
567
+ Indices on the remote cluster that were created before the auto-follow pattern was created will not be auto-followed even if they match the pattern.</p>
568
+ <p>This API can also be used to update auto-follow patterns.
569
+ NOTE: Follower indices that were configured automatically before updating an auto-follow pattern will remain unchanged even if they do not match against the new patterns.</p>
570
+
554
571
 
555
572
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-put-auto-follow-pattern.html>`_
556
573
 
@@ -674,11 +691,13 @@ class CcrClient(NamespacedClient):
674
691
  pretty: t.Optional[bool] = None,
675
692
  ) -> ObjectApiResponse[t.Any]:
676
693
  """
677
- Resume an auto-follow pattern. Resume a cross-cluster replication auto-follow
678
- pattern that was paused. The auto-follow pattern will resume configuring following
679
- indices for newly created indices that match its patterns on the remote cluster.
680
- Remote indices created while the pattern was paused will also be followed unless
681
- they have been deleted or closed in the interim.
694
+ .. raw:: html
695
+
696
+ <p>Resume an auto-follow pattern.
697
+ Resume a cross-cluster replication auto-follow pattern that was paused.
698
+ The auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster.
699
+ Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim.</p>
700
+
682
701
 
683
702
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-resume-auto-follow-pattern.html>`_
684
703
 
@@ -743,11 +762,14 @@ class CcrClient(NamespacedClient):
743
762
  body: t.Optional[t.Dict[str, t.Any]] = None,
744
763
  ) -> ObjectApiResponse[t.Any]:
745
764
  """
746
- Resume a follower. Resume a cross-cluster replication follower index that was
747
- paused. The follower index could have been paused with the pause follower API.
748
- Alternatively it could be paused due to replication that cannot be retried due
749
- to failures during following tasks. When this API returns, the follower index
750
- will resume fetching operations from the leader index.
765
+ .. raw:: html
766
+
767
+ <p>Resume a follower.
768
+ Resume a cross-cluster replication follower index that was paused.
769
+ The follower index could have been paused with the pause follower API.
770
+ Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks.
771
+ When this API returns, the follower index will resume fetching operations from the leader index.</p>
772
+
751
773
 
752
774
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-post-resume-follow.html>`_
753
775
 
@@ -829,8 +851,11 @@ class CcrClient(NamespacedClient):
829
851
  pretty: t.Optional[bool] = None,
830
852
  ) -> ObjectApiResponse[t.Any]:
831
853
  """
832
- Get cross-cluster replication stats. This API returns stats about auto-following
833
- and the same shard-level stats as the get follower stats API.
854
+ .. raw:: html
855
+
856
+ <p>Get cross-cluster replication stats.
857
+ This API returns stats about auto-following and the same shard-level stats as the get follower stats API.</p>
858
+
834
859
 
835
860
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-get-stats.html>`_
836
861
  """
@@ -866,13 +891,14 @@ class CcrClient(NamespacedClient):
866
891
  pretty: t.Optional[bool] = None,
867
892
  ) -> ObjectApiResponse[t.Any]:
868
893
  """
869
- Unfollow an index. Convert a cross-cluster replication follower index to a regular
870
- index. The API stops the following task associated with a follower index and
871
- removes index metadata and settings associated with cross-cluster replication.
872
- The follower index must be paused and closed before you call the unfollow API.
873
- NOTE: Currently cross-cluster replication does not support converting an existing
874
- regular index to a follower index. Converting a follower index to a regular index
875
- is an irreversible operation.
894
+ .. raw:: html
895
+
896
+ <p>Unfollow an index.
897
+ Convert a cross-cluster replication follower index to a regular index.
898
+ The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication.
899
+ The follower index must be paused and closed before you call the unfollow API.</p>
900
+ <p>NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation.</p>
901
+
876
902
 
877
903
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-post-unfollow.html>`_
878
904