elasticsearch 8.17.1__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 +1971 -779
  3. elasticsearch/_async/client/async_search.py +33 -22
  4. elasticsearch/_async/client/autoscaling.py +27 -21
  5. elasticsearch/_async/client/cat.py +216 -141
  6. elasticsearch/_async/client/ccr.py +96 -70
  7. elasticsearch/_async/client/cluster.py +150 -142
  8. elasticsearch/_async/client/connector.py +182 -86
  9. elasticsearch/_async/client/dangling_indices.py +19 -13
  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 +85 -55
  17. elasticsearch/_async/client/indices.py +692 -549
  18. elasticsearch/_async/client/inference.py +32 -28
  19. elasticsearch/_async/client/ingest.py +61 -22
  20. elasticsearch/_async/client/license.py +48 -31
  21. elasticsearch/_async/client/logstash.py +17 -6
  22. elasticsearch/_async/client/migration.py +23 -14
  23. elasticsearch/_async/client/ml.py +532 -284
  24. elasticsearch/_async/client/monitoring.py +5 -2
  25. elasticsearch/_async/client/nodes.py +43 -27
  26. elasticsearch/_async/client/query_rules.py +51 -25
  27. elasticsearch/_async/client/rollup.py +111 -73
  28. elasticsearch/_async/client/search_application.py +49 -21
  29. elasticsearch/_async/client/searchable_snapshots.py +21 -8
  30. elasticsearch/_async/client/security.py +810 -472
  31. elasticsearch/_async/client/shutdown.py +31 -26
  32. elasticsearch/_async/client/simulate.py +16 -22
  33. elasticsearch/_async/client/slm.py +55 -30
  34. elasticsearch/_async/client/snapshot.py +173 -192
  35. elasticsearch/_async/client/sql.py +37 -16
  36. elasticsearch/_async/client/ssl.py +16 -17
  37. elasticsearch/_async/client/synonyms.py +50 -29
  38. elasticsearch/_async/client/tasks.py +74 -39
  39. elasticsearch/_async/client/text_structure.py +61 -52
  40. elasticsearch/_async/client/transform.py +108 -79
  41. elasticsearch/_async/client/watcher.py +93 -57
  42. elasticsearch/_async/client/xpack.py +16 -7
  43. elasticsearch/_async/helpers.py +1 -1
  44. elasticsearch/_sync/client/__init__.py +1971 -779
  45. elasticsearch/_sync/client/async_search.py +33 -22
  46. elasticsearch/_sync/client/autoscaling.py +27 -21
  47. elasticsearch/_sync/client/cat.py +216 -141
  48. elasticsearch/_sync/client/ccr.py +96 -70
  49. elasticsearch/_sync/client/cluster.py +150 -142
  50. elasticsearch/_sync/client/connector.py +182 -86
  51. elasticsearch/_sync/client/dangling_indices.py +19 -13
  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 +85 -55
  59. elasticsearch/_sync/client/indices.py +692 -549
  60. elasticsearch/_sync/client/inference.py +32 -28
  61. elasticsearch/_sync/client/ingest.py +61 -22
  62. elasticsearch/_sync/client/license.py +48 -31
  63. elasticsearch/_sync/client/logstash.py +17 -6
  64. elasticsearch/_sync/client/migration.py +23 -14
  65. elasticsearch/_sync/client/ml.py +532 -284
  66. elasticsearch/_sync/client/monitoring.py +5 -2
  67. elasticsearch/_sync/client/nodes.py +43 -27
  68. elasticsearch/_sync/client/query_rules.py +51 -25
  69. elasticsearch/_sync/client/rollup.py +111 -73
  70. elasticsearch/_sync/client/search_application.py +49 -21
  71. elasticsearch/_sync/client/searchable_snapshots.py +21 -8
  72. elasticsearch/_sync/client/security.py +810 -472
  73. elasticsearch/_sync/client/shutdown.py +31 -26
  74. elasticsearch/_sync/client/simulate.py +16 -22
  75. elasticsearch/_sync/client/slm.py +55 -30
  76. elasticsearch/_sync/client/snapshot.py +173 -192
  77. elasticsearch/_sync/client/sql.py +37 -16
  78. elasticsearch/_sync/client/ssl.py +16 -17
  79. elasticsearch/_sync/client/synonyms.py +50 -29
  80. elasticsearch/_sync/client/tasks.py +74 -39
  81. elasticsearch/_sync/client/text_structure.py +61 -52
  82. elasticsearch/_sync/client/transform.py +108 -79
  83. elasticsearch/_sync/client/utils.py +1 -1
  84. elasticsearch/_sync/client/watcher.py +93 -57
  85. elasticsearch/_sync/client/xpack.py +16 -7
  86. elasticsearch/_version.py +1 -1
  87. elasticsearch/client.py +2 -0
  88. elasticsearch/helpers/actions.py +1 -1
  89. elasticsearch/helpers/vectorstore/_sync/vectorstore.py +4 -1
  90. {elasticsearch-8.17.1.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.1.dist-info/RECORD +0 -119
  93. {elasticsearch-8.17.1.dist-info → elasticsearch-8.17.2.dist-info}/WHEEL +0 -0
  94. {elasticsearch-8.17.1.dist-info → elasticsearch-8.17.2.dist-info}/licenses/LICENSE +0 -0
  95. {elasticsearch-8.17.1.dist-info → elasticsearch-8.17.2.dist-info}/licenses/NOTICE +0 -0
@@ -42,13 +42,16 @@ class ShutdownClient(NamespacedClient):
42
42
  ] = None,
43
43
  ) -> ObjectApiResponse[t.Any]:
44
44
  """
45
- Cancel node shutdown preparations. Remove a node from the shutdown list so it
46
- can resume normal operations. You must explicitly clear the shutdown request
47
- when a node rejoins the cluster or when a node has permanently left the cluster.
48
- Shutdown requests are never removed automatically by Elasticsearch. NOTE: This
49
- feature is designed for indirect use by Elastic Cloud, Elastic Cloud Enterprise,
50
- and Elastic Cloud on Kubernetes. Direct use is not supported. If the operator
51
- privileges feature is enabled, you must be an operator to use this API.
45
+ .. raw:: html
46
+
47
+ <p>Cancel node shutdown preparations.
48
+ Remove a node from the shutdown list so it can resume normal operations.
49
+ You must explicitly clear the shutdown request when a node rejoins the cluster or when a node has permanently left the cluster.
50
+ Shutdown requests are never removed automatically by Elasticsearch.</p>
51
+ <p>NOTE: This feature is designed for indirect use by Elastic Cloud, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes.
52
+ Direct use is not supported.</p>
53
+ <p>If the operator privileges feature is enabled, you must be an operator to use this API.</p>
54
+
52
55
 
53
56
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/delete-shutdown.html>`_
54
57
 
@@ -103,13 +106,14 @@ class ShutdownClient(NamespacedClient):
103
106
  ] = None,
104
107
  ) -> ObjectApiResponse[t.Any]:
105
108
  """
106
- Get the shutdown status. Get information about nodes that are ready to be shut
107
- down, have shut down preparations still in progress, or have stalled. The API
108
- returns status information for each part of the shut down process. NOTE: This
109
- feature is designed for indirect use by Elasticsearch Service, Elastic Cloud
110
- Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported. If
111
- the operator privileges feature is enabled, you must be an operator to use this
112
- API.
109
+ .. raw:: html
110
+
111
+ <p>Get the shutdown status.</p>
112
+ <p>Get information about nodes that are ready to be shut down, have shut down preparations still in progress, or have stalled.
113
+ The API returns status information for each part of the shut down process.</p>
114
+ <p>NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.</p>
115
+ <p>If the operator privileges feature is enabled, you must be an operator to use this API.</p>
116
+
113
117
 
114
118
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/get-shutdown.html>`_
115
119
 
@@ -176,18 +180,19 @@ class ShutdownClient(NamespacedClient):
176
180
  body: t.Optional[t.Dict[str, t.Any]] = None,
177
181
  ) -> ObjectApiResponse[t.Any]:
178
182
  """
179
- Prepare a node to be shut down. NOTE: This feature is designed for indirect use
180
- by Elastic Cloud, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes.
181
- Direct use is not supported. If you specify a node that is offline, it will be
182
- prepared for shut down when it rejoins the cluster. If the operator privileges
183
- feature is enabled, you must be an operator to use this API. The API migrates
184
- ongoing tasks and index shards to other nodes as needed to prepare a node to
185
- be restarted or shut down and removed from the cluster. This ensures that Elasticsearch
186
- can be stopped safely with minimal disruption to the cluster. You must specify
187
- the type of shutdown: `restart`, `remove`, or `replace`. If a node is already
188
- being prepared for shutdown, you can use this API to change the shutdown type.
189
- IMPORTANT: This API does NOT terminate the Elasticsearch process. Monitor the
190
- node shutdown status to determine when it is safe to stop Elasticsearch.
183
+ .. raw:: html
184
+
185
+ <p>Prepare a node to be shut down.</p>
186
+ <p>NOTE: This feature is designed for indirect use by Elastic Cloud, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.</p>
187
+ <p>If you specify a node that is offline, it will be prepared for shut down when it rejoins the cluster.</p>
188
+ <p>If the operator privileges feature is enabled, you must be an operator to use this API.</p>
189
+ <p>The API migrates ongoing tasks and index shards to other nodes as needed to prepare a node to be restarted or shut down and removed from the cluster.
190
+ This ensures that Elasticsearch can be stopped safely with minimal disruption to the cluster.</p>
191
+ <p>You must specify the type of shutdown: <code>restart</code>, <code>remove</code>, or <code>replace</code>.
192
+ If a node is already being prepared for shutdown, you can use this API to change the shutdown type.</p>
193
+ <p>IMPORTANT: This API does NOT terminate the Elasticsearch process.
194
+ Monitor the node shutdown status to determine when it is safe to stop Elasticsearch.</p>
195
+
191
196
 
192
197
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/put-shutdown.html>`_
193
198
 
@@ -64,28 +64,22 @@ class SimulateClient(NamespacedClient):
64
64
  body: t.Optional[t.Dict[str, t.Any]] = None,
65
65
  ) -> ObjectApiResponse[t.Any]:
66
66
  """
67
- Simulate data ingestion. Run ingest pipelines against a set of provided documents,
68
- optionally with substitute pipeline definitions, to simulate ingesting data into
69
- an index. This API is meant to be used for troubleshooting or pipeline development,
70
- as it does not actually index any data into Elasticsearch. The API runs the default
71
- and final pipeline for that index against a set of documents provided in the
72
- body of the request. If a pipeline contains a reroute processor, it follows that
73
- reroute processor to the new index, running that index's pipelines as well the
74
- same way that a non-simulated ingest would. No data is indexed into Elasticsearch.
75
- Instead, the transformed document is returned, along with the list of pipelines
76
- that have been run and the name of the index where the document would have been
77
- indexed if this were not a simulation. The transformed document is validated
78
- against the mappings that would apply to this index, and any validation error
79
- is reported in the result. This API differs from the simulate pipeline API in
80
- that you specify a single pipeline for that API, and it runs only that one pipeline.
81
- The simulate pipeline API is more useful for developing a single pipeline, while
82
- the simulate ingest API is more useful for troubleshooting the interaction of
83
- the various pipelines that get applied when ingesting into an index. By default,
84
- the pipeline definitions that are currently in the system are used. However,
85
- you can supply substitute pipeline definitions in the body of the request. These
86
- will be used in place of the pipeline definitions that are already in the system.
87
- This can be used to replace existing pipeline definitions or to create new ones.
88
- The pipeline substitutions are used only within this request.
67
+ .. raw:: html
68
+
69
+ <p>Simulate data ingestion.
70
+ Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index.</p>
71
+ <p>This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch.</p>
72
+ <p>The API runs the default and final pipeline for that index against a set of documents provided in the body of the request.
73
+ If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would.
74
+ No data is indexed into Elasticsearch.
75
+ Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation.
76
+ The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result.</p>
77
+ <p>This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline.
78
+ The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index.</p>
79
+ <p>By default, the pipeline definitions that are currently in the system are used.
80
+ However, you can supply substitute pipeline definitions in the body of the request.
81
+ These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request.</p>
82
+
89
83
 
90
84
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/simulate-ingest-api.html>`_
91
85
 
@@ -38,9 +38,12 @@ class SlmClient(NamespacedClient):
38
38
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
39
39
  ) -> ObjectApiResponse[t.Any]:
40
40
  """
41
- Delete a policy. Delete a snapshot lifecycle policy definition. This operation
42
- prevents any future snapshots from being taken but does not cancel in-progress
43
- snapshots or remove previously-taken snapshots.
41
+ .. raw:: html
42
+
43
+ <p>Delete a policy.
44
+ Delete a snapshot lifecycle policy definition.
45
+ This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots.</p>
46
+
44
47
 
45
48
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-delete-policy.html>`_
46
49
 
@@ -91,10 +94,12 @@ class SlmClient(NamespacedClient):
91
94
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
92
95
  ) -> ObjectApiResponse[t.Any]:
93
96
  """
94
- Run a policy. Immediately create a snapshot according to the snapshot lifecycle
95
- policy without waiting for the scheduled time. The snapshot policy is normally
96
- applied according to its schedule, but you might want to manually run a policy
97
- before performing an upgrade or other maintenance.
97
+ .. raw:: html
98
+
99
+ <p>Run a policy.
100
+ Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time.
101
+ The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance.</p>
102
+
98
103
 
99
104
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-execute-lifecycle.html>`_
100
105
 
@@ -144,9 +149,12 @@ class SlmClient(NamespacedClient):
144
149
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
145
150
  ) -> ObjectApiResponse[t.Any]:
146
151
  """
147
- Run a retention policy. Manually apply the retention policy to force immediate
148
- removal of snapshots that are expired according to the snapshot lifecycle policy
149
- retention rules. The retention policy is normally applied according to its schedule.
152
+ .. raw:: html
153
+
154
+ <p>Run a retention policy.
155
+ Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules.
156
+ The retention policy is normally applied according to its schedule.</p>
157
+
150
158
 
151
159
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-execute-retention.html>`_
152
160
 
@@ -194,8 +202,11 @@ class SlmClient(NamespacedClient):
194
202
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
195
203
  ) -> ObjectApiResponse[t.Any]:
196
204
  """
197
- Get policy information. Get snapshot lifecycle policy definitions and information
198
- about the latest snapshot attempts.
205
+ .. raw:: html
206
+
207
+ <p>Get policy information.
208
+ Get snapshot lifecycle policy definitions and information about the latest snapshot attempts.</p>
209
+
199
210
 
200
211
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-get-policy.html>`_
201
212
 
@@ -248,8 +259,11 @@ class SlmClient(NamespacedClient):
248
259
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
249
260
  ) -> ObjectApiResponse[t.Any]:
250
261
  """
251
- Get snapshot lifecycle management statistics. Get global and policy-level statistics
252
- about actions taken by snapshot lifecycle management.
262
+ .. raw:: html
263
+
264
+ <p>Get snapshot lifecycle management statistics.
265
+ Get global and policy-level statistics about actions taken by snapshot lifecycle management.</p>
266
+
253
267
 
254
268
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-get-stats.html>`_
255
269
 
@@ -296,7 +310,10 @@ class SlmClient(NamespacedClient):
296
310
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
297
311
  ) -> ObjectApiResponse[t.Any]:
298
312
  """
299
- Get the snapshot lifecycle management status.
313
+ .. raw:: html
314
+
315
+ <p>Get the snapshot lifecycle management status.</p>
316
+
300
317
 
301
318
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-get-status.html>`_
302
319
 
@@ -354,9 +371,13 @@ class SlmClient(NamespacedClient):
354
371
  body: t.Optional[t.Dict[str, t.Any]] = None,
355
372
  ) -> ObjectApiResponse[t.Any]:
356
373
  """
357
- Create or update a policy. Create or update a snapshot lifecycle policy. If the
358
- policy already exists, this request increments the policy version. Only the latest
359
- version of a policy is stored.
374
+ .. raw:: html
375
+
376
+ <p>Create or update a policy.
377
+ Create or update a snapshot lifecycle policy.
378
+ If the policy already exists, this request increments the policy version.
379
+ Only the latest version of a policy is stored.</p>
380
+
360
381
 
361
382
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-put-policy.html>`_
362
383
 
@@ -437,9 +458,12 @@ class SlmClient(NamespacedClient):
437
458
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
438
459
  ) -> ObjectApiResponse[t.Any]:
439
460
  """
440
- Start snapshot lifecycle management. Snapshot lifecycle management (SLM) starts
441
- automatically when a cluster is formed. Manually starting SLM is necessary only
442
- if it has been stopped using the stop SLM API.
461
+ .. raw:: html
462
+
463
+ <p>Start snapshot lifecycle management.
464
+ Snapshot lifecycle management (SLM) starts automatically when a cluster is formed.
465
+ Manually starting SLM is necessary only if it has been stopped using the stop SLM API.</p>
466
+
443
467
 
444
468
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-start.html>`_
445
469
 
@@ -488,15 +512,16 @@ class SlmClient(NamespacedClient):
488
512
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
489
513
  ) -> ObjectApiResponse[t.Any]:
490
514
  """
491
- Stop snapshot lifecycle management. Stop all snapshot lifecycle management (SLM)
492
- operations and the SLM plugin. This API is useful when you are performing maintenance
493
- on a cluster and need to prevent SLM from performing any actions on your data
494
- streams or indices. Stopping SLM does not stop any snapshots that are in progress.
495
- You can manually trigger snapshots with the run snapshot lifecycle policy API
496
- even if SLM is stopped. The API returns a response as soon as the request is
497
- acknowledged, but the plugin might continue to run until in-progress operations
498
- complete and it can be safely stopped. Use the get snapshot lifecycle management
499
- status API to see if SLM is running.
515
+ .. raw:: html
516
+
517
+ <p>Stop snapshot lifecycle management.
518
+ Stop all snapshot lifecycle management (SLM) operations and the SLM plugin.
519
+ This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices.
520
+ Stopping SLM does not stop any snapshots that are in progress.
521
+ You can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped.</p>
522
+ <p>The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped.
523
+ Use the get snapshot lifecycle management status API to see if SLM is running.</p>
524
+
500
525
 
501
526
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-stop.html>`_
502
527