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
@@ -45,14 +45,15 @@ class GraphClient(NamespacedClient):
45
45
  body: t.Optional[t.Dict[str, t.Any]] = None,
46
46
  ) -> ObjectApiResponse[t.Any]:
47
47
  """
48
- Explore graph analytics. Extract and summarize information about the documents
49
- and terms in an Elasticsearch data stream or index. The easiest way to understand
50
- the behavior of this API is to use the Graph UI to explore connections. An initial
51
- request to the `_explore` API contains a seed query that identifies the documents
52
- of interest and specifies the fields that define the vertices and connections
53
- you want to include in the graph. Subsequent requests enable you to spider out
54
- from one more vertices of interest. You can exclude vertices that have already
55
- been returned.
48
+ .. raw:: html
49
+
50
+ <p>Explore graph analytics.
51
+ Extract and summarize information about the documents and terms in an Elasticsearch data stream or index.
52
+ The easiest way to understand the behavior of this API is to use the Graph UI to explore connections.
53
+ An initial request to the <code>_explore</code> API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph.
54
+ Subsequent requests enable you to spider out from one more vertices of interest.
55
+ You can exclude vertices that have already been returned.</p>
56
+
56
57
 
57
58
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/graph-explore-api.html>`_
58
59
 
@@ -38,9 +38,11 @@ class IlmClient(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 lifecycle policy. You cannot delete policies that are currently in use.
42
- If the policy is being used to manage any indices, the request fails and returns
43
- an error.
41
+ .. raw:: html
42
+
43
+ <p>Delete a lifecycle policy.
44
+ You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error.</p>
45
+
44
46
 
45
47
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-delete-lifecycle.html>`_
46
48
 
@@ -93,11 +95,13 @@ class IlmClient(NamespacedClient):
93
95
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
94
96
  ) -> ObjectApiResponse[t.Any]:
95
97
  """
96
- Explain the lifecycle state. Get the current lifecycle status for one or more
97
- indices. For data streams, the API retrieves the current lifecycle status for
98
- the stream's backing indices. The response indicates when the index entered each
99
- lifecycle state, provides the definition of the running phase, and information
100
- about any failures.
98
+ .. raw:: html
99
+
100
+ <p>Explain the lifecycle state.
101
+ Get the current lifecycle status for one or more indices.
102
+ For data streams, the API retrieves the current lifecycle status for the stream's backing indices.</p>
103
+ <p>The response indicates when the index entered each lifecycle state, provides the definition of the running phase, and information about any failures.</p>
104
+
101
105
 
102
106
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-explain-lifecycle.html>`_
103
107
 
@@ -159,7 +163,10 @@ class IlmClient(NamespacedClient):
159
163
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
160
164
  ) -> ObjectApiResponse[t.Any]:
161
165
  """
162
- Get lifecycle policies.
166
+ .. raw:: html
167
+
168
+ <p>Get lifecycle policies.</p>
169
+
163
170
 
164
171
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-get-lifecycle.html>`_
165
172
 
@@ -210,7 +217,11 @@ class IlmClient(NamespacedClient):
210
217
  pretty: t.Optional[bool] = None,
211
218
  ) -> ObjectApiResponse[t.Any]:
212
219
  """
213
- Get the ILM status. Get the current index lifecycle management status.
220
+ .. raw:: html
221
+
222
+ <p>Get the ILM status.
223
+ Get the current index lifecycle management status.</p>
224
+
214
225
 
215
226
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-get-status.html>`_
216
227
  """
@@ -251,18 +262,22 @@ class IlmClient(NamespacedClient):
251
262
  body: t.Optional[t.Dict[str, t.Any]] = None,
252
263
  ) -> ObjectApiResponse[t.Any]:
253
264
  """
254
- Migrate to data tiers routing. Switch the indices, ILM policies, and legacy,
255
- composable, and component templates from using custom node attributes and attribute-based
256
- allocation filters to using data tiers. Optionally, delete one legacy index template.
257
- Using node roles enables ILM to automatically move the indices between data tiers.
258
- Migrating away from custom node attributes routing can be manually performed.
259
- This API provides an automated way of performing three out of the four manual
260
- steps listed in the migration guide: 1. Stop setting the custom hot attribute
261
- on new indices. 1. Remove custom allocation settings from existing ILM policies.
262
- 1. Replace custom allocation settings from existing indices with the corresponding
263
- tier preference. ILM must be stopped before performing the migration. Use the
264
- stop ILM and get ILM status APIs to wait until the reported operation mode is
265
- `STOPPED`.
265
+ .. raw:: html
266
+
267
+ <p>Migrate to data tiers routing.
268
+ Switch the indices, ILM policies, and legacy, composable, and component templates from using custom node attributes and attribute-based allocation filters to using data tiers.
269
+ Optionally, delete one legacy index template.
270
+ Using node roles enables ILM to automatically move the indices between data tiers.</p>
271
+ <p>Migrating away from custom node attributes routing can be manually performed.
272
+ This API provides an automated way of performing three out of the four manual steps listed in the migration guide:</p>
273
+ <ol>
274
+ <li>Stop setting the custom hot attribute on new indices.</li>
275
+ <li>Remove custom allocation settings from existing ILM policies.</li>
276
+ <li>Replace custom allocation settings from existing indices with the corresponding tier preference.</li>
277
+ </ol>
278
+ <p>ILM must be stopped before performing the migration.
279
+ Use the stop ILM and get ILM status APIs to wait until the reported operation mode is <code>STOPPED</code>.</p>
280
+
266
281
 
267
282
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-migrate-to-data-tiers.html>`_
268
283
 
@@ -322,27 +337,26 @@ class IlmClient(NamespacedClient):
322
337
  body: t.Optional[t.Dict[str, t.Any]] = None,
323
338
  ) -> ObjectApiResponse[t.Any]:
324
339
  """
325
- Move to a lifecycle step. Manually move an index into a specific step in the
326
- lifecycle policy and run that step. WARNING: This operation can result in the
327
- loss of data. Manually moving an index into a specific step runs that step even
328
- if it has already been performed. This is a potentially destructive action and
329
- this should be considered an expert level API. You must specify both the current
330
- step and the step to be executed in the body of the request. The request will
331
- fail if the current step does not match the step currently running for the index
332
- This is to prevent the index from being moved from an unexpected step into the
333
- next step. When specifying the target (`next_step`) to which the index will be
334
- moved, either the name or both the action and name fields are optional. If only
335
- the phase is specified, the index will move to the first step of the first action
336
- in the target phase. If the phase and action are specified, the index will move
337
- to the first step of the specified action in the specified phase. Only actions
338
- specified in the ILM policy are considered valid. An index cannot move to a step
339
- that is not part of its policy.
340
+ .. raw:: html
341
+
342
+ <p>Move to a lifecycle step.
343
+ Manually move an index into a specific step in the lifecycle policy and run that step.</p>
344
+ <p>WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API.</p>
345
+ <p>You must specify both the current step and the step to be executed in the body of the request.
346
+ The request will fail if the current step does not match the step currently running for the index
347
+ This is to prevent the index from being moved from an unexpected step into the next step.</p>
348
+ <p>When specifying the target (<code>next_step</code>) to which the index will be moved, either the name or both the action and name fields are optional.
349
+ If only the phase is specified, the index will move to the first step of the first action in the target phase.
350
+ If the phase and action are specified, the index will move to the first step of the specified action in the specified phase.
351
+ Only actions specified in the ILM policy are considered valid.
352
+ An index cannot move to a step that is not part of its policy.</p>
353
+
340
354
 
341
355
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-move-to-step.html>`_
342
356
 
343
357
  :param index: The name of the index whose lifecycle step is to change
344
- :param current_step:
345
- :param next_step:
358
+ :param current_step: The step that the index is expected to be in.
359
+ :param next_step: The step that you want to run.
346
360
  """
347
361
  if index in SKIP_IN_PATH:
348
362
  raise ValueError("Empty value passed for parameter 'index'")
@@ -399,9 +413,12 @@ class IlmClient(NamespacedClient):
399
413
  body: t.Optional[t.Dict[str, t.Any]] = None,
400
414
  ) -> ObjectApiResponse[t.Any]:
401
415
  """
402
- Create or update a lifecycle policy. If the specified policy exists, it is replaced
403
- and the policy version is incremented. NOTE: Only the latest version of the policy
404
- is stored, you cannot revert to previous versions.
416
+ .. raw:: html
417
+
418
+ <p>Create or update a lifecycle policy.
419
+ If the specified policy exists, it is replaced and the policy version is incremented.</p>
420
+ <p>NOTE: Only the latest version of the policy is stored, you cannot revert to previous versions.</p>
421
+
405
422
 
406
423
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-put-lifecycle.html>`_
407
424
 
@@ -460,8 +477,12 @@ class IlmClient(NamespacedClient):
460
477
  pretty: t.Optional[bool] = None,
461
478
  ) -> ObjectApiResponse[t.Any]:
462
479
  """
463
- Remove policies from an index. Remove the assigned lifecycle policies from an
464
- index or a data stream's backing indices. It also stops managing the indices.
480
+ .. raw:: html
481
+
482
+ <p>Remove policies from an index.
483
+ Remove the assigned lifecycle policies from an index or a data stream's backing indices.
484
+ It also stops managing the indices.</p>
485
+
465
486
 
466
487
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-remove-policy.html>`_
467
488
 
@@ -501,10 +522,13 @@ class IlmClient(NamespacedClient):
501
522
  pretty: t.Optional[bool] = None,
502
523
  ) -> ObjectApiResponse[t.Any]:
503
524
  """
504
- Retry a policy. Retry running the lifecycle policy for an index that is in the
505
- ERROR step. The API sets the policy back to the step where the error occurred
506
- and runs the step. Use the explain lifecycle state API to determine whether an
507
- index is in the ERROR step.
525
+ .. raw:: html
526
+
527
+ <p>Retry a policy.
528
+ Retry running the lifecycle policy for an index that is in the ERROR step.
529
+ The API sets the policy back to the step where the error occurred and runs the step.
530
+ Use the explain lifecycle state API to determine whether an index is in the ERROR step.</p>
531
+
508
532
 
509
533
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-retry-policy.html>`_
510
534
 
@@ -546,14 +570,18 @@ class IlmClient(NamespacedClient):
546
570
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
547
571
  ) -> ObjectApiResponse[t.Any]:
548
572
  """
549
- Start the ILM plugin. Start the index lifecycle management plugin if it is currently
550
- stopped. ILM is started automatically when the cluster is formed. Restarting
551
- ILM is necessary only when it has been stopped using the stop ILM API.
573
+ .. raw:: html
574
+
575
+ <p>Start the ILM plugin.
576
+ Start the index lifecycle management plugin if it is currently stopped.
577
+ ILM is started automatically when the cluster is formed.
578
+ Restarting ILM is necessary only when it has been stopped using the stop ILM API.</p>
579
+
552
580
 
553
581
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-start.html>`_
554
582
 
555
- :param master_timeout:
556
- :param timeout:
583
+ :param master_timeout: Explicit operation timeout for connection to master node
584
+ :param timeout: Explicit operation timeout
557
585
  """
558
586
  __path_parts: t.Dict[str, str] = {}
559
587
  __path = "/_ilm/start"
@@ -592,17 +620,19 @@ class IlmClient(NamespacedClient):
592
620
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
593
621
  ) -> ObjectApiResponse[t.Any]:
594
622
  """
595
- Stop the ILM plugin. Halt all lifecycle management operations and stop the index
596
- lifecycle management plugin. This is useful when you are performing maintenance
597
- on the cluster and need to prevent ILM from performing any actions on your indices.
598
- The API returns as soon as the stop request has been acknowledged, but the plugin
599
- might continue to run until in-progress operations complete and the plugin can
600
- be safely stopped. Use the get ILM status API to check whether ILM is running.
623
+ .. raw:: html
624
+
625
+ <p>Stop the ILM plugin.
626
+ Halt all lifecycle management operations and stop the index lifecycle management plugin.
627
+ This is useful when you are performing maintenance on the cluster and need to prevent ILM from performing any actions on your indices.</p>
628
+ <p>The API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped.
629
+ Use the get ILM status API to check whether ILM is running.</p>
630
+
601
631
 
602
632
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-stop.html>`_
603
633
 
604
- :param master_timeout:
605
- :param timeout:
634
+ :param master_timeout: Explicit operation timeout for connection to master node
635
+ :param timeout: Explicit operation timeout
606
636
  """
607
637
  __path_parts: t.Dict[str, str] = {}
608
638
  __path = "/_ilm/stop"