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
@@ -38,7 +38,7 @@ class SearchApplicationClient(NamespacedClient):
38
38
  """
39
39
  Deletes a search application.
40
40
 
41
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/delete-search-application.html>`_
41
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/delete-search-application.html>`_
42
42
 
43
43
  :param name: The name of the search application to delete
44
44
  """
@@ -78,7 +78,7 @@ class SearchApplicationClient(NamespacedClient):
78
78
  """
79
79
  Delete a behavioral analytics collection.
80
80
 
81
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/delete-analytics-collection.html>`_
81
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/delete-analytics-collection.html>`_
82
82
 
83
83
  :param name: The name of the analytics collection to be deleted
84
84
  """
@@ -116,9 +116,9 @@ class SearchApplicationClient(NamespacedClient):
116
116
  pretty: t.Optional[bool] = None,
117
117
  ) -> ObjectApiResponse[t.Any]:
118
118
  """
119
- Returns the details about a search application.
119
+ Returns the details about a search application
120
120
 
121
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/get-search-application.html>`_
121
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/get-search-application.html>`_
122
122
 
123
123
  :param name: The name of the search application
124
124
  """
@@ -158,7 +158,7 @@ class SearchApplicationClient(NamespacedClient):
158
158
  """
159
159
  Returns the existing behavioral analytics collections.
160
160
 
161
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/list-analytics-collection.html>`_
161
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/list-analytics-collection.html>`_
162
162
 
163
163
  :param name: A list of analytics collections to limit the returned information
164
164
  """
@@ -205,7 +205,7 @@ class SearchApplicationClient(NamespacedClient):
205
205
  """
206
206
  Returns the existing search applications.
207
207
 
208
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/list-search-applications.html>`_
208
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/list-search-applications.html>`_
209
209
 
210
210
  :param from_: Starting offset.
211
211
  :param q: Query in the Lucene query string syntax.
@@ -256,7 +256,7 @@ class SearchApplicationClient(NamespacedClient):
256
256
  """
257
257
  Creates or updates a search application.
258
258
 
259
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/put-search-application.html>`_
259
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/put-search-application.html>`_
260
260
 
261
261
  :param name: The name of the search application to be created or updated.
262
262
  :param search_application:
@@ -309,7 +309,7 @@ class SearchApplicationClient(NamespacedClient):
309
309
  """
310
310
  Creates a behavioral analytics collection.
311
311
 
312
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/put-analytics-collection.html>`_
312
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/put-analytics-collection.html>`_
313
313
 
314
314
  :param name: The name of the analytics collection to be created or updated.
315
315
  """
@@ -349,16 +349,19 @@ class SearchApplicationClient(NamespacedClient):
349
349
  human: t.Optional[bool] = None,
350
350
  params: t.Optional[t.Mapping[str, t.Any]] = None,
351
351
  pretty: t.Optional[bool] = None,
352
+ typed_keys: t.Optional[bool] = None,
352
353
  body: t.Optional[t.Dict[str, t.Any]] = None,
353
354
  ) -> ObjectApiResponse[t.Any]:
354
355
  """
355
- Perform a search against a search application
356
+ Perform a search against a search application.
356
357
 
357
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/search-application-search.html>`_
358
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/search-application-search.html>`_
358
359
 
359
360
  :param name: The name of the search application to be searched.
360
361
  :param params: Query parameters specific to this request, which will override
361
362
  any defaults specified in the template.
363
+ :param typed_keys: Determines whether aggregation names are prefixed by their
364
+ respective types in the response.
362
365
  """
363
366
  if name in SKIP_IN_PATH:
364
367
  raise ValueError("Empty value passed for parameter 'name'")
@@ -374,6 +377,8 @@ class SearchApplicationClient(NamespacedClient):
374
377
  __query["human"] = human
375
378
  if pretty is not None:
376
379
  __query["pretty"] = pretty
380
+ if typed_keys is not None:
381
+ __query["typed_keys"] = typed_keys
377
382
  if not __body:
378
383
  if params is not None:
379
384
  __body["params"] = params
@@ -33,15 +33,13 @@ class SearchableSnapshotsClient(NamespacedClient):
33
33
  error_trace: t.Optional[bool] = None,
34
34
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
35
35
  human: t.Optional[bool] = None,
36
- master_timeout: t.Optional[
37
- t.Union["t.Literal[-1]", "t.Literal[0]", str]
38
- ] = None,
36
+ master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
39
37
  pretty: t.Optional[bool] = None,
40
38
  ) -> ObjectApiResponse[t.Any]:
41
39
  """
42
40
  Retrieve node-level cache statistics about searchable snapshots.
43
41
 
44
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/searchable-snapshots-apis.html>`_
42
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/searchable-snapshots-apis.html>`_
45
43
 
46
44
  :param node_id: A comma-separated list of node IDs or names to limit the returned
47
45
  information; use `_local` to return information from the node you're connecting
@@ -86,9 +84,9 @@ class SearchableSnapshotsClient(NamespacedClient):
86
84
  expand_wildcards: t.Optional[
87
85
  t.Union[
88
86
  t.Sequence[
89
- t.Union["t.Literal['all', 'closed', 'hidden', 'none', 'open']", str]
87
+ t.Union[str, t.Literal["all", "closed", "hidden", "none", "open"]]
90
88
  ],
91
- t.Union["t.Literal['all', 'closed', 'hidden', 'none', 'open']", str],
89
+ t.Union[str, t.Literal["all", "closed", "hidden", "none", "open"]],
92
90
  ]
93
91
  ] = None,
94
92
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
@@ -99,7 +97,7 @@ class SearchableSnapshotsClient(NamespacedClient):
99
97
  """
100
98
  Clear the cache of searchable snapshots.
101
99
 
102
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/searchable-snapshots-apis.html>`_
100
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/searchable-snapshots-apis.html>`_
103
101
 
104
102
  :param index: A comma-separated list of index names
105
103
  :param allow_no_indices: Whether to ignore if a wildcard indices expression resolves
@@ -161,9 +159,7 @@ class SearchableSnapshotsClient(NamespacedClient):
161
159
  human: t.Optional[bool] = None,
162
160
  ignore_index_settings: t.Optional[t.Sequence[str]] = None,
163
161
  index_settings: t.Optional[t.Mapping[str, t.Any]] = None,
164
- master_timeout: t.Optional[
165
- t.Union["t.Literal[-1]", "t.Literal[0]", str]
166
- ] = None,
162
+ master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
167
163
  pretty: t.Optional[bool] = None,
168
164
  renamed_index: t.Optional[str] = None,
169
165
  storage: t.Optional[str] = None,
@@ -173,7 +169,7 @@ class SearchableSnapshotsClient(NamespacedClient):
173
169
  """
174
170
  Mount a snapshot as a searchable index.
175
171
 
176
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/searchable-snapshots-api-mount-snapshot.html>`_
172
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/searchable-snapshots-api-mount-snapshot.html>`_
177
173
 
178
174
  :param repository: The name of the repository containing the snapshot of the
179
175
  index to mount
@@ -246,14 +242,14 @@ class SearchableSnapshotsClient(NamespacedClient):
246
242
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
247
243
  human: t.Optional[bool] = None,
248
244
  level: t.Optional[
249
- t.Union["t.Literal['cluster', 'indices', 'shards']", str]
245
+ t.Union[str, t.Literal["cluster", "indices", "shards"]]
250
246
  ] = None,
251
247
  pretty: t.Optional[bool] = None,
252
248
  ) -> ObjectApiResponse[t.Any]:
253
249
  """
254
250
  Retrieve shard-level statistics about searchable snapshots.
255
251
 
256
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/searchable-snapshots-apis.html>`_
252
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/searchable-snapshots-apis.html>`_
257
253
 
258
254
  :param index: A comma-separated list of index names
259
255
  :param level: Return stats aggregated at cluster, index or shard level