elasticsearch 8.13.2__py3-none-any.whl → 8.15.0__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 (96) hide show
  1. elasticsearch/_async/client/__init__.py +204 -169
  2. elasticsearch/_async/client/async_search.py +35 -20
  3. elasticsearch/_async/client/autoscaling.py +4 -4
  4. elasticsearch/_async/client/cat.py +785 -180
  5. elasticsearch/_async/client/ccr.py +20 -32
  6. elasticsearch/_async/client/cluster.py +94 -88
  7. elasticsearch/_async/client/connector.py +1470 -0
  8. elasticsearch/_async/client/dangling_indices.py +7 -11
  9. elasticsearch/_async/client/enrich.py +8 -8
  10. elasticsearch/_async/client/eql.py +17 -16
  11. elasticsearch/_async/client/esql.py +2 -2
  12. elasticsearch/_async/client/features.py +2 -2
  13. elasticsearch/_async/client/fleet.py +18 -17
  14. elasticsearch/_async/client/graph.py +4 -4
  15. elasticsearch/_async/client/ilm.py +36 -44
  16. elasticsearch/_async/client/indices.py +401 -411
  17. elasticsearch/_async/client/inference.py +65 -39
  18. elasticsearch/_async/client/ingest.py +22 -23
  19. elasticsearch/_async/client/license.py +18 -10
  20. elasticsearch/_async/client/logstash.py +6 -6
  21. elasticsearch/_async/client/migration.py +3 -3
  22. elasticsearch/_async/client/ml.py +383 -176
  23. elasticsearch/_async/client/monitoring.py +2 -2
  24. elasticsearch/_async/client/nodes.py +32 -32
  25. elasticsearch/_async/client/query_rules.py +384 -0
  26. elasticsearch/_async/client/rollup.py +13 -13
  27. elasticsearch/_async/client/search_application.py +15 -10
  28. elasticsearch/_async/client/searchable_snapshots.py +9 -13
  29. elasticsearch/_async/client/security.py +587 -104
  30. elasticsearch/_async/client/shutdown.py +7 -7
  31. elasticsearch/_async/client/slm.py +11 -13
  32. elasticsearch/_async/client/snapshot.py +39 -52
  33. elasticsearch/_async/client/sql.py +12 -14
  34. elasticsearch/_async/client/ssl.py +1 -1
  35. elasticsearch/_async/client/synonyms.py +8 -8
  36. elasticsearch/_async/client/tasks.py +9 -10
  37. elasticsearch/_async/client/text_structure.py +3 -3
  38. elasticsearch/_async/client/transform.py +89 -34
  39. elasticsearch/_async/client/watcher.py +30 -15
  40. elasticsearch/_async/client/xpack.py +6 -7
  41. elasticsearch/_otel.py +2 -6
  42. elasticsearch/_sync/client/__init__.py +204 -169
  43. elasticsearch/_sync/client/async_search.py +35 -20
  44. elasticsearch/_sync/client/autoscaling.py +4 -4
  45. elasticsearch/_sync/client/cat.py +785 -180
  46. elasticsearch/_sync/client/ccr.py +20 -32
  47. elasticsearch/_sync/client/cluster.py +94 -88
  48. elasticsearch/_sync/client/connector.py +1470 -0
  49. elasticsearch/_sync/client/dangling_indices.py +7 -11
  50. elasticsearch/_sync/client/enrich.py +8 -8
  51. elasticsearch/_sync/client/eql.py +17 -16
  52. elasticsearch/_sync/client/esql.py +2 -2
  53. elasticsearch/_sync/client/features.py +2 -2
  54. elasticsearch/_sync/client/fleet.py +18 -17
  55. elasticsearch/_sync/client/graph.py +4 -4
  56. elasticsearch/_sync/client/ilm.py +36 -44
  57. elasticsearch/_sync/client/indices.py +401 -411
  58. elasticsearch/_sync/client/inference.py +65 -39
  59. elasticsearch/_sync/client/ingest.py +22 -23
  60. elasticsearch/_sync/client/license.py +18 -10
  61. elasticsearch/_sync/client/logstash.py +6 -6
  62. elasticsearch/_sync/client/migration.py +3 -3
  63. elasticsearch/_sync/client/ml.py +383 -176
  64. elasticsearch/_sync/client/monitoring.py +2 -2
  65. elasticsearch/_sync/client/nodes.py +32 -32
  66. elasticsearch/_sync/client/query_rules.py +384 -0
  67. elasticsearch/_sync/client/rollup.py +13 -13
  68. elasticsearch/_sync/client/search_application.py +15 -10
  69. elasticsearch/_sync/client/searchable_snapshots.py +9 -13
  70. elasticsearch/_sync/client/security.py +587 -104
  71. elasticsearch/_sync/client/shutdown.py +7 -7
  72. elasticsearch/_sync/client/slm.py +11 -13
  73. elasticsearch/_sync/client/snapshot.py +39 -52
  74. elasticsearch/_sync/client/sql.py +12 -14
  75. elasticsearch/_sync/client/ssl.py +1 -1
  76. elasticsearch/_sync/client/synonyms.py +8 -8
  77. elasticsearch/_sync/client/tasks.py +9 -10
  78. elasticsearch/_sync/client/text_structure.py +3 -3
  79. elasticsearch/_sync/client/transform.py +89 -34
  80. elasticsearch/_sync/client/watcher.py +30 -15
  81. elasticsearch/_sync/client/xpack.py +6 -7
  82. elasticsearch/_version.py +1 -1
  83. elasticsearch/client.py +3 -3
  84. elasticsearch/helpers/vectorstore/_async/vectorstore.py +36 -6
  85. elasticsearch/helpers/vectorstore/_sync/vectorstore.py +36 -6
  86. elasticsearch/serializer.py +34 -1
  87. elasticsearch-8.15.0.dist-info/METADATA +177 -0
  88. elasticsearch-8.15.0.dist-info/RECORD +117 -0
  89. {elasticsearch-8.13.2.dist-info → elasticsearch-8.15.0.dist-info}/WHEEL +1 -2
  90. elasticsearch/_async/client/query_ruleset.py +0 -205
  91. elasticsearch/_sync/client/query_ruleset.py +0 -205
  92. elasticsearch-8.13.2.dist-info/METADATA +0 -147
  93. elasticsearch-8.13.2.dist-info/RECORD +0 -116
  94. elasticsearch-8.13.2.dist-info/top_level.txt +0 -1
  95. {elasticsearch-8.13.2.dist-info → elasticsearch-8.15.0.dist-info/licenses}/LICENSE +0 -0
  96. {elasticsearch-8.13.2.dist-info → elasticsearch-8.15.0.dist-info/licenses}/NOTICE +0 -0
@@ -36,10 +36,13 @@ class AsyncSearchClient(NamespacedClient):
36
36
  pretty: t.Optional[bool] = None,
37
37
  ) -> ObjectApiResponse[t.Any]:
38
38
  """
39
- Deletes an async search by ID. If the search is still running, the search request
40
- will be cancelled. Otherwise, the saved search results are deleted.
39
+ Deletes an async search by identifier. If the search is still running, the search
40
+ request will be cancelled. Otherwise, the saved search results are deleted. If
41
+ the Elasticsearch security features are enabled, the deletion of a specific async
42
+ search is restricted to: the authenticated user that submitted the original search
43
+ request; users that have the `cancel_task` cluster privilege.
41
44
 
42
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/async-search.html>`_
45
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html>`_
43
46
 
44
47
  :param id: A unique identifier for the async search.
45
48
  """
@@ -74,18 +77,20 @@ class AsyncSearchClient(NamespacedClient):
74
77
  error_trace: t.Optional[bool] = None,
75
78
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
76
79
  human: t.Optional[bool] = None,
77
- keep_alive: t.Optional[t.Union["t.Literal[-1]", "t.Literal[0]", str]] = None,
80
+ keep_alive: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
78
81
  pretty: t.Optional[bool] = None,
79
82
  typed_keys: t.Optional[bool] = None,
80
83
  wait_for_completion_timeout: t.Optional[
81
- t.Union["t.Literal[-1]", "t.Literal[0]", str]
84
+ t.Union[str, t.Literal[-1], t.Literal[0]]
82
85
  ] = None,
83
86
  ) -> ObjectApiResponse[t.Any]:
84
87
  """
85
88
  Retrieves the results of a previously submitted async search request given its
86
- ID.
89
+ identifier. If the Elasticsearch security features are enabled, access to the
90
+ results of a specific async search is restricted to the user or API key that
91
+ submitted it.
87
92
 
88
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/async-search.html>`_
93
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html>`_
89
94
 
90
95
  :param id: A unique identifier for the async search.
91
96
  :param keep_alive: Specifies how long the async search should be available in
@@ -143,10 +148,12 @@ class AsyncSearchClient(NamespacedClient):
143
148
  pretty: t.Optional[bool] = None,
144
149
  ) -> ObjectApiResponse[t.Any]:
145
150
  """
146
- Retrieves the status of a previously submitted async search request given its
147
- ID.
151
+ Get async search status Retrieves the status of a previously submitted async
152
+ search request given its identifier, without retrieving search results. If the
153
+ Elasticsearch security features are enabled, use of this API is restricted to
154
+ the `monitoring_user` role.
148
155
 
149
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/async-search.html>`_
156
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html>`_
150
157
 
151
158
  :param id: A unique identifier for the async search.
152
159
  """
@@ -229,16 +236,16 @@ class AsyncSearchClient(NamespacedClient):
229
236
  batched_reduce_size: t.Optional[int] = None,
230
237
  ccs_minimize_roundtrips: t.Optional[bool] = None,
231
238
  collapse: t.Optional[t.Mapping[str, t.Any]] = None,
232
- default_operator: t.Optional[t.Union["t.Literal['and', 'or']", str]] = None,
239
+ default_operator: t.Optional[t.Union[str, t.Literal["and", "or"]]] = None,
233
240
  df: t.Optional[str] = None,
234
241
  docvalue_fields: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
235
242
  error_trace: t.Optional[bool] = None,
236
243
  expand_wildcards: t.Optional[
237
244
  t.Union[
238
245
  t.Sequence[
239
- t.Union["t.Literal['all', 'closed', 'hidden', 'none', 'open']", str]
246
+ t.Union[str, t.Literal["all", "closed", "hidden", "none", "open"]]
240
247
  ],
241
- t.Union["t.Literal['all', 'closed', 'hidden', 'none', 'open']", str],
248
+ t.Union[str, t.Literal["all", "closed", "hidden", "none", "open"]],
242
249
  ]
243
250
  ] = None,
244
251
  explain: t.Optional[bool] = None,
@@ -251,7 +258,7 @@ class AsyncSearchClient(NamespacedClient):
251
258
  ignore_throttled: t.Optional[bool] = None,
252
259
  ignore_unavailable: t.Optional[bool] = None,
253
260
  indices_boost: t.Optional[t.Sequence[t.Mapping[str, float]]] = None,
254
- keep_alive: t.Optional[t.Union["t.Literal[-1]", "t.Literal[0]", str]] = None,
261
+ keep_alive: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
255
262
  keep_on_completion: t.Optional[bool] = None,
256
263
  knn: t.Optional[
257
264
  t.Union[t.Mapping[str, t.Any], t.Sequence[t.Mapping[str, t.Any]]]
@@ -276,12 +283,12 @@ class AsyncSearchClient(NamespacedClient):
276
283
  routing: t.Optional[str] = None,
277
284
  runtime_mappings: t.Optional[t.Mapping[str, t.Mapping[str, t.Any]]] = None,
278
285
  script_fields: t.Optional[t.Mapping[str, t.Mapping[str, t.Any]]] = None,
279
- scroll: t.Optional[t.Union["t.Literal[-1]", "t.Literal[0]", str]] = None,
286
+ scroll: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
280
287
  search_after: t.Optional[
281
288
  t.Sequence[t.Union[None, bool, float, int, str, t.Any]]
282
289
  ] = None,
283
290
  search_type: t.Optional[
284
- t.Union["t.Literal['dfs_query_then_fetch', 'query_then_fetch']", str]
291
+ t.Union[str, t.Literal["dfs_query_then_fetch", "query_then_fetch"]]
285
292
  ] = None,
286
293
  seq_no_primary_term: t.Optional[bool] = None,
287
294
  size: t.Optional[int] = None,
@@ -300,7 +307,7 @@ class AsyncSearchClient(NamespacedClient):
300
307
  suggest: t.Optional[t.Mapping[str, t.Any]] = None,
301
308
  suggest_field: t.Optional[str] = None,
302
309
  suggest_mode: t.Optional[
303
- t.Union["t.Literal['always', 'missing', 'popular']", str]
310
+ t.Union[str, t.Literal["always", "missing", "popular"]]
304
311
  ] = None,
305
312
  suggest_size: t.Optional[int] = None,
306
313
  suggest_text: t.Optional[str] = None,
@@ -311,14 +318,22 @@ class AsyncSearchClient(NamespacedClient):
311
318
  typed_keys: t.Optional[bool] = None,
312
319
  version: t.Optional[bool] = None,
313
320
  wait_for_completion_timeout: t.Optional[
314
- t.Union["t.Literal[-1]", "t.Literal[0]", str]
321
+ t.Union[str, t.Literal[-1], t.Literal[0]]
315
322
  ] = None,
316
323
  body: t.Optional[t.Dict[str, t.Any]] = None,
317
324
  ) -> ObjectApiResponse[t.Any]:
318
325
  """
319
- Executes a search request asynchronously.
326
+ Runs a search request asynchronously. When the primary sort of the results is
327
+ an indexed field, shards get sorted based on minimum and maximum value that they
328
+ hold for that field, hence partial results become available following the sort
329
+ criteria that was requested. Warning: Async search does not support scroll nor
330
+ search requests that only include the suggest section. By default, Elasticsearch
331
+ doesn’t allow you to store an async search response larger than 10Mb and an attempt
332
+ to do this results in an error. The maximum allowed size for a stored async search
333
+ response can be set by changing the `search.max_async_search_response_size` cluster
334
+ level setting.
320
335
 
321
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/async-search.html>`_
336
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html>`_
322
337
 
323
338
  :param index: A comma-separated list of index names to search; use `_all` or
324
339
  empty string to perform the operation on all indices
@@ -39,7 +39,7 @@ class AutoscalingClient(NamespacedClient):
39
39
  Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK.
40
40
  Direct use is not supported.
41
41
 
42
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/autoscaling-delete-autoscaling-policy.html>`_
42
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-delete-autoscaling-policy.html>`_
43
43
 
44
44
  :param name: the name of the autoscaling policy
45
45
  """
@@ -79,7 +79,7 @@ class AutoscalingClient(NamespacedClient):
79
79
  Gets the current autoscaling capacity based on the configured autoscaling policy.
80
80
  Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
81
81
 
82
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/autoscaling-get-autoscaling-capacity.html>`_
82
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-get-autoscaling-capacity.html>`_
83
83
  """
84
84
  __path_parts: t.Dict[str, str] = {}
85
85
  __path = "/_autoscaling/capacity"
@@ -116,7 +116,7 @@ class AutoscalingClient(NamespacedClient):
116
116
  Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK.
117
117
  Direct use is not supported.
118
118
 
119
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/autoscaling-get-autoscaling-capacity.html>`_
119
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-get-autoscaling-capacity.html>`_
120
120
 
121
121
  :param name: the name of the autoscaling policy
122
122
  """
@@ -161,7 +161,7 @@ class AutoscalingClient(NamespacedClient):
161
161
  Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK.
162
162
  Direct use is not supported.
163
163
 
164
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/autoscaling-put-autoscaling-policy.html>`_
164
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-put-autoscaling-policy.html>`_
165
165
 
166
166
  :param name: the name of the autoscaling policy
167
167
  :param policy: