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,11 +36,13 @@ class AsyncSearchClient(NamespacedClient):
36
36
  pretty: t.Optional[bool] = None,
37
37
  ) -> ObjectApiResponse[t.Any]:
38
38
  """
39
- Delete an async search. If the asynchronous search is still running, it is cancelled.
40
- Otherwise, the saved search results are deleted. If the Elasticsearch security
41
- features are enabled, the deletion of a specific async search is restricted to:
42
- the authenticated user that submitted the original search request; users that
43
- have the `cancel_task` cluster privilege.
39
+ .. raw:: html
40
+
41
+ <p>Delete an async search.</p>
42
+ <p>If the asynchronous search is still running, it is cancelled.
43
+ Otherwise, the saved search results are deleted.
44
+ If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the <code>cancel_task</code> cluster privilege.</p>
45
+
44
46
 
45
47
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
46
48
 
@@ -85,10 +87,12 @@ class AsyncSearchClient(NamespacedClient):
85
87
  ] = None,
86
88
  ) -> ObjectApiResponse[t.Any]:
87
89
  """
88
- Get async search results. Retrieve the results of a previously submitted asynchronous
89
- search request. If the Elasticsearch security features are enabled, access to
90
- the results of a specific async search is restricted to the user or API key that
91
- submitted it.
90
+ .. raw:: html
91
+
92
+ <p>Get async search results.</p>
93
+ <p>Retrieve the results of a previously submitted asynchronous search request.
94
+ If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it.</p>
95
+
92
96
 
93
97
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
94
98
 
@@ -149,10 +153,12 @@ class AsyncSearchClient(NamespacedClient):
149
153
  pretty: t.Optional[bool] = None,
150
154
  ) -> ObjectApiResponse[t.Any]:
151
155
  """
152
- Get the async search status. Get the status of a previously submitted async search
153
- request given its identifier, without retrieving search results. If the Elasticsearch
154
- security features are enabled, use of this API is restricted to the `monitoring_user`
155
- role.
156
+ .. raw:: html
157
+
158
+ <p>Get the async search status.</p>
159
+ <p>Get the status of a previously submitted async search request given its identifier, without retrieving search results.
160
+ If the Elasticsearch security features are enabled, use of this API is restricted to the <code>monitoring_user</code> role.</p>
161
+
156
162
 
157
163
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
158
164
 
@@ -264,6 +270,7 @@ class AsyncSearchClient(NamespacedClient):
264
270
  ignore_throttled: t.Optional[bool] = None,
265
271
  ignore_unavailable: t.Optional[bool] = None,
266
272
  indices_boost: t.Optional[t.Sequence[t.Mapping[str, float]]] = None,
273
+ keep_alive: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
267
274
  keep_on_completion: t.Optional[bool] = None,
268
275
  knn: t.Optional[
269
276
  t.Union[t.Mapping[str, t.Any], t.Sequence[t.Mapping[str, t.Any]]]
@@ -326,15 +333,14 @@ class AsyncSearchClient(NamespacedClient):
326
333
  body: t.Optional[t.Dict[str, t.Any]] = None,
327
334
  ) -> ObjectApiResponse[t.Any]:
328
335
  """
329
- Run an async search. When the primary sort of the results is an indexed field,
330
- shards get sorted based on minimum and maximum value that they hold for that
331
- field. Partial results become available following the sort criteria that was
332
- requested. Warning: Asynchronous search does not support scroll or search requests
333
- that include only the suggest section. By default, Elasticsearch does not allow
334
- you to store an async search response larger than 10Mb and an attempt to do this
335
- results in an error. The maximum allowed size for a stored async search response
336
- can be set by changing the `search.max_async_search_response_size` cluster level
337
- setting.
336
+ .. raw:: html
337
+
338
+ <p>Run an async search.</p>
339
+ <p>When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested.</p>
340
+ <p>Warning: Asynchronous search does not support scroll or search requests that include only the suggest section.</p>
341
+ <p>By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error.
342
+ The maximum allowed size for a stored async search response can be set by changing the <code>search.max_async_search_response_size</code> cluster level setting.</p>
343
+
338
344
 
339
345
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
340
346
 
@@ -379,6 +385,9 @@ class AsyncSearchClient(NamespacedClient):
379
385
  :param ignore_unavailable: Whether specified concrete indices should be ignored
380
386
  when unavailable (missing or closed)
381
387
  :param indices_boost: Boosts the _score of documents from specified indices.
388
+ :param keep_alive: Specifies how long the async search needs to be available.
389
+ Ongoing async searches and any saved search results are deleted after this
390
+ period.
382
391
  :param keep_on_completion: If `true`, results are stored for later retrieval
383
392
  when the search completes within the `wait_for_completion_timeout`.
384
393
  :param knn: Defines the approximate kNN search to run.
@@ -505,6 +514,8 @@ class AsyncSearchClient(NamespacedClient):
505
514
  __query["ignore_throttled"] = ignore_throttled
506
515
  if ignore_unavailable is not None:
507
516
  __query["ignore_unavailable"] = ignore_unavailable
517
+ if keep_alive is not None:
518
+ __query["keep_alive"] = keep_alive
508
519
  if keep_on_completion is not None:
509
520
  __query["keep_on_completion"] = keep_on_completion
510
521
  if lenient is not None:
@@ -38,9 +38,11 @@ class AutoscalingClient(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 an autoscaling policy. NOTE: This feature is designed for indirect use
42
- by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes.
43
- Direct use is not supported.
41
+ .. raw:: html
42
+
43
+ <p>Delete an autoscaling policy.</p>
44
+ <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>
45
+
44
46
 
45
47
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-delete-autoscaling-policy.html>`_
46
48
 
@@ -89,18 +91,18 @@ class AutoscalingClient(NamespacedClient):
89
91
  pretty: t.Optional[bool] = None,
90
92
  ) -> ObjectApiResponse[t.Any]:
91
93
  """
92
- Get the autoscaling capacity. NOTE: This feature is designed for indirect use
93
- by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes.
94
- Direct use is not supported. This API gets the current autoscaling capacity based
95
- on the configured autoscaling policy. It will return information to size the
96
- cluster appropriately to the current workload. The `required_capacity` is calculated
97
- as the maximum of the `required_capacity` result of all individual deciders that
98
- are enabled for the policy. The operator should verify that the `current_nodes`
99
- match the operator’s knowledge of the cluster to avoid making autoscaling decisions
100
- based on stale or incomplete information. The response contains decider-specific
101
- information you can use to diagnose how and why autoscaling determined a certain
102
- capacity was required. This information is provided for diagnosis only. Do not
103
- use this information to make autoscaling decisions.
94
+ .. raw:: html
95
+
96
+ <p>Get the autoscaling capacity.</p>
97
+ <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>
98
+ <p>This API gets the current autoscaling capacity based on the configured autoscaling policy.
99
+ It will return information to size the cluster appropriately to the current workload.</p>
100
+ <p>The <code>required_capacity</code> is calculated as the maximum of the <code>required_capacity</code> result of all individual deciders that are enabled for the policy.</p>
101
+ <p>The operator should verify that the <code>current_nodes</code> match the operator’s knowledge of the cluster to avoid making autoscaling decisions based on stale or incomplete information.</p>
102
+ <p>The response contains decider-specific information you can use to diagnose how and why autoscaling determined a certain capacity was required.
103
+ This information is provided for diagnosis only.
104
+ Do not use this information to make autoscaling decisions.</p>
105
+
104
106
 
105
107
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-get-autoscaling-capacity.html>`_
106
108
 
@@ -143,9 +145,11 @@ class AutoscalingClient(NamespacedClient):
143
145
  pretty: t.Optional[bool] = None,
144
146
  ) -> ObjectApiResponse[t.Any]:
145
147
  """
146
- Get an autoscaling policy. NOTE: This feature is designed for indirect use by
147
- Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes.
148
- Direct use is not supported.
148
+ .. raw:: html
149
+
150
+ <p>Get an autoscaling policy.</p>
151
+ <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>
152
+
149
153
 
150
154
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-get-autoscaling-capacity.html>`_
151
155
 
@@ -196,9 +200,11 @@ class AutoscalingClient(NamespacedClient):
196
200
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
197
201
  ) -> ObjectApiResponse[t.Any]:
198
202
  """
199
- Create or update an autoscaling policy. NOTE: This feature is designed for indirect
200
- use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on
201
- Kubernetes. Direct use is not supported.
203
+ .. raw:: html
204
+
205
+ <p>Create or update an autoscaling policy.</p>
206
+ <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>
207
+
202
208
 
203
209
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-put-autoscaling-policy.html>`_
204
210