elasticsearch 8.15.0__py3-none-any.whl → 8.16.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.
- elasticsearch/_async/client/__init__.py +202 -117
- elasticsearch/_async/client/async_search.py +25 -25
- elasticsearch/_async/client/autoscaling.py +24 -11
- elasticsearch/_async/client/cat.py +75 -66
- elasticsearch/_async/client/ccr.py +13 -13
- elasticsearch/_async/client/cluster.py +40 -37
- elasticsearch/_async/client/connector.py +112 -51
- elasticsearch/_async/client/dangling_indices.py +27 -12
- elasticsearch/_async/client/enrich.py +10 -10
- elasticsearch/_async/client/eql.py +4 -4
- elasticsearch/_async/client/esql.py +42 -4
- elasticsearch/_async/client/features.py +4 -3
- elasticsearch/_async/client/fleet.py +10 -2
- elasticsearch/_async/client/graph.py +1 -1
- elasticsearch/_async/client/ilm.py +16 -12
- elasticsearch/_async/client/indices.py +189 -108
- elasticsearch/_async/client/inference.py +15 -5
- elasticsearch/_async/client/ingest.py +200 -9
- elasticsearch/_async/client/license.py +10 -10
- elasticsearch/_async/client/logstash.py +3 -3
- elasticsearch/_async/client/migration.py +3 -3
- elasticsearch/_async/client/ml.py +294 -291
- elasticsearch/_async/client/monitoring.py +1 -1
- elasticsearch/_async/client/nodes.py +16 -8
- elasticsearch/_async/client/query_rules.py +61 -8
- elasticsearch/_async/client/rollup.py +23 -9
- elasticsearch/_async/client/search_application.py +35 -16
- elasticsearch/_async/client/searchable_snapshots.py +13 -5
- elasticsearch/_async/client/security.py +371 -180
- elasticsearch/_async/client/slm.py +9 -9
- elasticsearch/_async/client/snapshot.py +97 -12
- elasticsearch/_async/client/sql.py +11 -7
- elasticsearch/_async/client/ssl.py +18 -3
- elasticsearch/_async/client/synonyms.py +10 -8
- elasticsearch/_async/client/tasks.py +19 -9
- elasticsearch/_async/client/text_structure.py +2 -2
- elasticsearch/_async/client/transform.py +78 -72
- elasticsearch/_async/client/utils.py +4 -0
- elasticsearch/_async/client/watcher.py +11 -11
- elasticsearch/_async/client/xpack.py +5 -3
- elasticsearch/_async/helpers.py +19 -10
- elasticsearch/_otel.py +23 -1
- elasticsearch/_sync/client/__init__.py +202 -117
- elasticsearch/_sync/client/async_search.py +25 -25
- elasticsearch/_sync/client/autoscaling.py +24 -11
- elasticsearch/_sync/client/cat.py +75 -66
- elasticsearch/_sync/client/ccr.py +13 -13
- elasticsearch/_sync/client/cluster.py +40 -37
- elasticsearch/_sync/client/connector.py +112 -51
- elasticsearch/_sync/client/dangling_indices.py +27 -12
- elasticsearch/_sync/client/enrich.py +10 -10
- elasticsearch/_sync/client/eql.py +4 -4
- elasticsearch/_sync/client/esql.py +42 -4
- elasticsearch/_sync/client/features.py +4 -3
- elasticsearch/_sync/client/fleet.py +10 -2
- elasticsearch/_sync/client/graph.py +1 -1
- elasticsearch/_sync/client/ilm.py +16 -12
- elasticsearch/_sync/client/indices.py +189 -108
- elasticsearch/_sync/client/inference.py +15 -5
- elasticsearch/_sync/client/ingest.py +200 -9
- elasticsearch/_sync/client/license.py +10 -10
- elasticsearch/_sync/client/logstash.py +3 -3
- elasticsearch/_sync/client/migration.py +3 -3
- elasticsearch/_sync/client/ml.py +294 -291
- elasticsearch/_sync/client/monitoring.py +1 -1
- elasticsearch/_sync/client/nodes.py +16 -8
- elasticsearch/_sync/client/query_rules.py +61 -8
- elasticsearch/_sync/client/rollup.py +23 -9
- elasticsearch/_sync/client/search_application.py +35 -16
- elasticsearch/_sync/client/searchable_snapshots.py +13 -5
- elasticsearch/_sync/client/security.py +371 -180
- elasticsearch/_sync/client/slm.py +9 -9
- elasticsearch/_sync/client/snapshot.py +97 -12
- elasticsearch/_sync/client/sql.py +11 -7
- elasticsearch/_sync/client/ssl.py +18 -3
- elasticsearch/_sync/client/synonyms.py +10 -8
- elasticsearch/_sync/client/tasks.py +19 -9
- elasticsearch/_sync/client/text_structure.py +2 -2
- elasticsearch/_sync/client/transform.py +78 -72
- elasticsearch/_sync/client/utils.py +40 -0
- elasticsearch/_sync/client/watcher.py +11 -11
- elasticsearch/_sync/client/xpack.py +5 -3
- elasticsearch/_version.py +1 -1
- elasticsearch/exceptions.py +4 -0
- elasticsearch/helpers/actions.py +134 -111
- elasticsearch/helpers/errors.py +12 -4
- elasticsearch/helpers/vectorstore/_async/strategies.py +30 -9
- elasticsearch/helpers/vectorstore/_sync/strategies.py +30 -9
- {elasticsearch-8.15.0.dist-info → elasticsearch-8.16.0.dist-info}/METADATA +6 -7
- elasticsearch-8.16.0.dist-info/RECORD +117 -0
- {elasticsearch-8.15.0.dist-info → elasticsearch-8.16.0.dist-info}/WHEEL +1 -1
- elasticsearch-8.15.0.dist-info/RECORD +0 -117
- {elasticsearch-8.15.0.dist-info → elasticsearch-8.16.0.dist-info}/licenses/LICENSE +0 -0
- {elasticsearch-8.15.0.dist-info → elasticsearch-8.16.0.dist-info}/licenses/NOTICE +0 -0
|
@@ -20,12 +20,19 @@ import typing as t
|
|
|
20
20
|
from elastic_transport import ObjectApiResponse
|
|
21
21
|
|
|
22
22
|
from ._base import NamespacedClient
|
|
23
|
-
from .utils import
|
|
23
|
+
from .utils import (
|
|
24
|
+
SKIP_IN_PATH,
|
|
25
|
+
Stability,
|
|
26
|
+
_quote,
|
|
27
|
+
_rewrite_parameters,
|
|
28
|
+
_stability_warning,
|
|
29
|
+
)
|
|
24
30
|
|
|
25
31
|
|
|
26
32
|
class InferenceClient(NamespacedClient):
|
|
27
33
|
|
|
28
34
|
@_rewrite_parameters()
|
|
35
|
+
@_stability_warning(Stability.EXPERIMENTAL)
|
|
29
36
|
async def delete(
|
|
30
37
|
self,
|
|
31
38
|
*,
|
|
@@ -46,7 +53,7 @@ class InferenceClient(NamespacedClient):
|
|
|
46
53
|
"""
|
|
47
54
|
Delete an inference endpoint
|
|
48
55
|
|
|
49
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
56
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/delete-inference-api.html>`_
|
|
50
57
|
|
|
51
58
|
:param inference_id: The inference Id
|
|
52
59
|
:param task_type: The task type
|
|
@@ -93,6 +100,7 @@ class InferenceClient(NamespacedClient):
|
|
|
93
100
|
)
|
|
94
101
|
|
|
95
102
|
@_rewrite_parameters()
|
|
103
|
+
@_stability_warning(Stability.EXPERIMENTAL)
|
|
96
104
|
async def get(
|
|
97
105
|
self,
|
|
98
106
|
*,
|
|
@@ -111,7 +119,7 @@ class InferenceClient(NamespacedClient):
|
|
|
111
119
|
"""
|
|
112
120
|
Get an inference endpoint
|
|
113
121
|
|
|
114
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
122
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/get-inference-api.html>`_
|
|
115
123
|
|
|
116
124
|
:param task_type: The task type
|
|
117
125
|
:param inference_id: The inference Id
|
|
@@ -151,6 +159,7 @@ class InferenceClient(NamespacedClient):
|
|
|
151
159
|
@_rewrite_parameters(
|
|
152
160
|
body_fields=("input", "query", "task_settings"),
|
|
153
161
|
)
|
|
162
|
+
@_stability_warning(Stability.EXPERIMENTAL)
|
|
154
163
|
async def inference(
|
|
155
164
|
self,
|
|
156
165
|
*,
|
|
@@ -174,7 +183,7 @@ class InferenceClient(NamespacedClient):
|
|
|
174
183
|
"""
|
|
175
184
|
Perform inference on the service
|
|
176
185
|
|
|
177
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
186
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/post-inference-api.html>`_
|
|
178
187
|
|
|
179
188
|
:param inference_id: The inference Id
|
|
180
189
|
:param input: Inference input. Either a string or an array of strings.
|
|
@@ -237,6 +246,7 @@ class InferenceClient(NamespacedClient):
|
|
|
237
246
|
@_rewrite_parameters(
|
|
238
247
|
body_name="inference_config",
|
|
239
248
|
)
|
|
249
|
+
@_stability_warning(Stability.EXPERIMENTAL)
|
|
240
250
|
async def put(
|
|
241
251
|
self,
|
|
242
252
|
*,
|
|
@@ -257,7 +267,7 @@ class InferenceClient(NamespacedClient):
|
|
|
257
267
|
"""
|
|
258
268
|
Create an inference endpoint
|
|
259
269
|
|
|
260
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
270
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/put-inference-api.html>`_
|
|
261
271
|
|
|
262
272
|
:param inference_id: The inference Id
|
|
263
273
|
:param inference_config:
|
|
@@ -25,6 +25,57 @@ from .utils import SKIP_IN_PATH, _quote, _rewrite_parameters
|
|
|
25
25
|
|
|
26
26
|
class IngestClient(NamespacedClient):
|
|
27
27
|
|
|
28
|
+
@_rewrite_parameters()
|
|
29
|
+
async def delete_geoip_database(
|
|
30
|
+
self,
|
|
31
|
+
*,
|
|
32
|
+
id: t.Union[str, t.Sequence[str]],
|
|
33
|
+
error_trace: t.Optional[bool] = None,
|
|
34
|
+
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
35
|
+
human: t.Optional[bool] = None,
|
|
36
|
+
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
37
|
+
pretty: t.Optional[bool] = None,
|
|
38
|
+
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
39
|
+
) -> ObjectApiResponse[t.Any]:
|
|
40
|
+
"""
|
|
41
|
+
Deletes a geoip database configuration.
|
|
42
|
+
|
|
43
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/delete-geoip-database-api.html>`_
|
|
44
|
+
|
|
45
|
+
:param id: A comma-separated list of geoip database configurations to delete
|
|
46
|
+
:param master_timeout: Period to wait for a connection to the master node. If
|
|
47
|
+
no response is received before the timeout expires, the request fails and
|
|
48
|
+
returns an error.
|
|
49
|
+
:param timeout: Period to wait for a response. If no response is received before
|
|
50
|
+
the timeout expires, the request fails and returns an error.
|
|
51
|
+
"""
|
|
52
|
+
if id in SKIP_IN_PATH:
|
|
53
|
+
raise ValueError("Empty value passed for parameter 'id'")
|
|
54
|
+
__path_parts: t.Dict[str, str] = {"id": _quote(id)}
|
|
55
|
+
__path = f'/_ingest/geoip/database/{__path_parts["id"]}'
|
|
56
|
+
__query: t.Dict[str, t.Any] = {}
|
|
57
|
+
if error_trace is not None:
|
|
58
|
+
__query["error_trace"] = error_trace
|
|
59
|
+
if filter_path is not None:
|
|
60
|
+
__query["filter_path"] = filter_path
|
|
61
|
+
if human is not None:
|
|
62
|
+
__query["human"] = human
|
|
63
|
+
if master_timeout is not None:
|
|
64
|
+
__query["master_timeout"] = master_timeout
|
|
65
|
+
if pretty is not None:
|
|
66
|
+
__query["pretty"] = pretty
|
|
67
|
+
if timeout is not None:
|
|
68
|
+
__query["timeout"] = timeout
|
|
69
|
+
__headers = {"accept": "application/json"}
|
|
70
|
+
return await self.perform_request( # type: ignore[return-value]
|
|
71
|
+
"DELETE",
|
|
72
|
+
__path,
|
|
73
|
+
params=__query,
|
|
74
|
+
headers=__headers,
|
|
75
|
+
endpoint_id="ingest.delete_geoip_database",
|
|
76
|
+
path_parts=__path_parts,
|
|
77
|
+
)
|
|
78
|
+
|
|
28
79
|
@_rewrite_parameters()
|
|
29
80
|
async def delete_pipeline(
|
|
30
81
|
self,
|
|
@@ -40,7 +91,7 @@ class IngestClient(NamespacedClient):
|
|
|
40
91
|
"""
|
|
41
92
|
Deletes one or more existing ingest pipeline.
|
|
42
93
|
|
|
43
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
94
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/delete-pipeline-api.html>`_
|
|
44
95
|
|
|
45
96
|
:param id: Pipeline ID or wildcard expression of pipeline IDs used to limit the
|
|
46
97
|
request. To delete all ingest pipelines in a cluster, use a value of `*`.
|
|
@@ -89,7 +140,7 @@ class IngestClient(NamespacedClient):
|
|
|
89
140
|
"""
|
|
90
141
|
Gets download statistics for GeoIP2 databases used with the geoip processor.
|
|
91
142
|
|
|
92
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
143
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/geoip-processor.html>`_
|
|
93
144
|
"""
|
|
94
145
|
__path_parts: t.Dict[str, str] = {}
|
|
95
146
|
__path = "/_ingest/geoip/stats"
|
|
@@ -112,6 +163,57 @@ class IngestClient(NamespacedClient):
|
|
|
112
163
|
path_parts=__path_parts,
|
|
113
164
|
)
|
|
114
165
|
|
|
166
|
+
@_rewrite_parameters()
|
|
167
|
+
async def get_geoip_database(
|
|
168
|
+
self,
|
|
169
|
+
*,
|
|
170
|
+
id: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
171
|
+
error_trace: t.Optional[bool] = None,
|
|
172
|
+
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
173
|
+
human: t.Optional[bool] = None,
|
|
174
|
+
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
175
|
+
pretty: t.Optional[bool] = None,
|
|
176
|
+
) -> ObjectApiResponse[t.Any]:
|
|
177
|
+
"""
|
|
178
|
+
Returns information about one or more geoip database configurations.
|
|
179
|
+
|
|
180
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/get-geoip-database-api.html>`_
|
|
181
|
+
|
|
182
|
+
:param id: Comma-separated list of database configuration IDs to retrieve. Wildcard
|
|
183
|
+
(`*`) expressions are supported. To get all database configurations, omit
|
|
184
|
+
this parameter or use `*`.
|
|
185
|
+
:param master_timeout: Period to wait for a connection to the master node. If
|
|
186
|
+
no response is received before the timeout expires, the request fails and
|
|
187
|
+
returns an error.
|
|
188
|
+
"""
|
|
189
|
+
__path_parts: t.Dict[str, str]
|
|
190
|
+
if id not in SKIP_IN_PATH:
|
|
191
|
+
__path_parts = {"id": _quote(id)}
|
|
192
|
+
__path = f'/_ingest/geoip/database/{__path_parts["id"]}'
|
|
193
|
+
else:
|
|
194
|
+
__path_parts = {}
|
|
195
|
+
__path = "/_ingest/geoip/database"
|
|
196
|
+
__query: t.Dict[str, t.Any] = {}
|
|
197
|
+
if error_trace is not None:
|
|
198
|
+
__query["error_trace"] = error_trace
|
|
199
|
+
if filter_path is not None:
|
|
200
|
+
__query["filter_path"] = filter_path
|
|
201
|
+
if human is not None:
|
|
202
|
+
__query["human"] = human
|
|
203
|
+
if master_timeout is not None:
|
|
204
|
+
__query["master_timeout"] = master_timeout
|
|
205
|
+
if pretty is not None:
|
|
206
|
+
__query["pretty"] = pretty
|
|
207
|
+
__headers = {"accept": "application/json"}
|
|
208
|
+
return await self.perform_request( # type: ignore[return-value]
|
|
209
|
+
"GET",
|
|
210
|
+
__path,
|
|
211
|
+
params=__query,
|
|
212
|
+
headers=__headers,
|
|
213
|
+
endpoint_id="ingest.get_geoip_database",
|
|
214
|
+
path_parts=__path_parts,
|
|
215
|
+
)
|
|
216
|
+
|
|
115
217
|
@_rewrite_parameters()
|
|
116
218
|
async def get_pipeline(
|
|
117
219
|
self,
|
|
@@ -128,7 +230,7 @@ class IngestClient(NamespacedClient):
|
|
|
128
230
|
Returns information about one or more ingest pipelines. This API returns a local
|
|
129
231
|
reference of the pipeline.
|
|
130
232
|
|
|
131
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
233
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/get-pipeline-api.html>`_
|
|
132
234
|
|
|
133
235
|
:param id: Comma-separated list of pipeline IDs to retrieve. Wildcard (`*`) expressions
|
|
134
236
|
are supported. To get all ingest pipelines, omit this parameter or use `*`.
|
|
@@ -182,7 +284,7 @@ class IngestClient(NamespacedClient):
|
|
|
182
284
|
you expect will match. A grok pattern is like a regular expression that supports
|
|
183
285
|
aliased expressions that can be reused.
|
|
184
286
|
|
|
185
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
287
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/grok-processor.html>`_
|
|
186
288
|
"""
|
|
187
289
|
__path_parts: t.Dict[str, str] = {}
|
|
188
290
|
__path = "/_ingest/processor/grok"
|
|
@@ -206,13 +308,94 @@ class IngestClient(NamespacedClient):
|
|
|
206
308
|
)
|
|
207
309
|
|
|
208
310
|
@_rewrite_parameters(
|
|
209
|
-
body_fields=("
|
|
311
|
+
body_fields=("maxmind", "name"),
|
|
312
|
+
)
|
|
313
|
+
async def put_geoip_database(
|
|
314
|
+
self,
|
|
315
|
+
*,
|
|
316
|
+
id: str,
|
|
317
|
+
maxmind: t.Optional[t.Mapping[str, t.Any]] = None,
|
|
318
|
+
name: t.Optional[str] = None,
|
|
319
|
+
error_trace: t.Optional[bool] = None,
|
|
320
|
+
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
321
|
+
human: t.Optional[bool] = None,
|
|
322
|
+
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
323
|
+
pretty: t.Optional[bool] = None,
|
|
324
|
+
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
325
|
+
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
326
|
+
) -> ObjectApiResponse[t.Any]:
|
|
327
|
+
"""
|
|
328
|
+
Returns information about one or more geoip database configurations.
|
|
329
|
+
|
|
330
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/put-geoip-database-api.html>`_
|
|
331
|
+
|
|
332
|
+
:param id: ID of the database configuration to create or update.
|
|
333
|
+
:param maxmind: The configuration necessary to identify which IP geolocation
|
|
334
|
+
provider to use to download the database, as well as any provider-specific
|
|
335
|
+
configuration necessary for such downloading. At present, the only supported
|
|
336
|
+
provider is maxmind, and the maxmind provider requires that an account_id
|
|
337
|
+
(string) is configured.
|
|
338
|
+
:param name: The provider-assigned name of the IP geolocation database to download.
|
|
339
|
+
:param master_timeout: Period to wait for a connection to the master node. If
|
|
340
|
+
no response is received before the timeout expires, the request fails and
|
|
341
|
+
returns an error.
|
|
342
|
+
:param timeout: Period to wait for a response. If no response is received before
|
|
343
|
+
the timeout expires, the request fails and returns an error.
|
|
344
|
+
"""
|
|
345
|
+
if id in SKIP_IN_PATH:
|
|
346
|
+
raise ValueError("Empty value passed for parameter 'id'")
|
|
347
|
+
if maxmind is None and body is None:
|
|
348
|
+
raise ValueError("Empty value passed for parameter 'maxmind'")
|
|
349
|
+
if name is None and body is None:
|
|
350
|
+
raise ValueError("Empty value passed for parameter 'name'")
|
|
351
|
+
__path_parts: t.Dict[str, str] = {"id": _quote(id)}
|
|
352
|
+
__path = f'/_ingest/geoip/database/{__path_parts["id"]}'
|
|
353
|
+
__query: t.Dict[str, t.Any] = {}
|
|
354
|
+
__body: t.Dict[str, t.Any] = body if body is not None else {}
|
|
355
|
+
if error_trace is not None:
|
|
356
|
+
__query["error_trace"] = error_trace
|
|
357
|
+
if filter_path is not None:
|
|
358
|
+
__query["filter_path"] = filter_path
|
|
359
|
+
if human is not None:
|
|
360
|
+
__query["human"] = human
|
|
361
|
+
if master_timeout is not None:
|
|
362
|
+
__query["master_timeout"] = master_timeout
|
|
363
|
+
if pretty is not None:
|
|
364
|
+
__query["pretty"] = pretty
|
|
365
|
+
if timeout is not None:
|
|
366
|
+
__query["timeout"] = timeout
|
|
367
|
+
if not __body:
|
|
368
|
+
if maxmind is not None:
|
|
369
|
+
__body["maxmind"] = maxmind
|
|
370
|
+
if name is not None:
|
|
371
|
+
__body["name"] = name
|
|
372
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
373
|
+
return await self.perform_request( # type: ignore[return-value]
|
|
374
|
+
"PUT",
|
|
375
|
+
__path,
|
|
376
|
+
params=__query,
|
|
377
|
+
headers=__headers,
|
|
378
|
+
body=__body,
|
|
379
|
+
endpoint_id="ingest.put_geoip_database",
|
|
380
|
+
path_parts=__path_parts,
|
|
381
|
+
)
|
|
382
|
+
|
|
383
|
+
@_rewrite_parameters(
|
|
384
|
+
body_fields=(
|
|
385
|
+
"deprecated",
|
|
386
|
+
"description",
|
|
387
|
+
"meta",
|
|
388
|
+
"on_failure",
|
|
389
|
+
"processors",
|
|
390
|
+
"version",
|
|
391
|
+
),
|
|
210
392
|
parameter_aliases={"_meta": "meta"},
|
|
211
393
|
)
|
|
212
394
|
async def put_pipeline(
|
|
213
395
|
self,
|
|
214
396
|
*,
|
|
215
397
|
id: str,
|
|
398
|
+
deprecated: t.Optional[bool] = None,
|
|
216
399
|
description: t.Optional[str] = None,
|
|
217
400
|
error_trace: t.Optional[bool] = None,
|
|
218
401
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
@@ -231,9 +414,13 @@ class IngestClient(NamespacedClient):
|
|
|
231
414
|
Creates or updates an ingest pipeline. Changes made using this API take effect
|
|
232
415
|
immediately.
|
|
233
416
|
|
|
234
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
417
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ingest.html>`_
|
|
235
418
|
|
|
236
419
|
:param id: ID of the ingest pipeline to create or update.
|
|
420
|
+
:param deprecated: Marks this ingest pipeline as deprecated. When a deprecated
|
|
421
|
+
ingest pipeline is referenced as the default or final pipeline when creating
|
|
422
|
+
or updating a non-deprecated index template, Elasticsearch will emit a deprecation
|
|
423
|
+
warning.
|
|
237
424
|
:param description: Description of the ingest pipeline.
|
|
238
425
|
:param if_version: Required version for optimistic concurrency control for pipeline
|
|
239
426
|
updates
|
|
@@ -277,6 +464,8 @@ class IngestClient(NamespacedClient):
|
|
|
277
464
|
if timeout is not None:
|
|
278
465
|
__query["timeout"] = timeout
|
|
279
466
|
if not __body:
|
|
467
|
+
if deprecated is not None:
|
|
468
|
+
__body["deprecated"] = deprecated
|
|
280
469
|
if description is not None:
|
|
281
470
|
__body["description"] = description
|
|
282
471
|
if meta is not None:
|
|
@@ -304,8 +493,8 @@ class IngestClient(NamespacedClient):
|
|
|
304
493
|
async def simulate(
|
|
305
494
|
self,
|
|
306
495
|
*,
|
|
307
|
-
id: t.Optional[str] = None,
|
|
308
496
|
docs: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
|
|
497
|
+
id: t.Optional[str] = None,
|
|
309
498
|
error_trace: t.Optional[bool] = None,
|
|
310
499
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
311
500
|
human: t.Optional[bool] = None,
|
|
@@ -317,17 +506,19 @@ class IngestClient(NamespacedClient):
|
|
|
317
506
|
"""
|
|
318
507
|
Executes an ingest pipeline against a set of provided documents.
|
|
319
508
|
|
|
320
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
509
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/simulate-pipeline-api.html>`_
|
|
321
510
|
|
|
511
|
+
:param docs: Sample documents to test in the pipeline.
|
|
322
512
|
:param id: Pipeline to test. If you don’t specify a `pipeline` in the request
|
|
323
513
|
body, this parameter is required.
|
|
324
|
-
:param docs: Sample documents to test in the pipeline.
|
|
325
514
|
:param pipeline: Pipeline to test. If you don’t specify the `pipeline` request
|
|
326
515
|
path parameter, this parameter is required. If you specify both this and
|
|
327
516
|
the request path parameter, the API only uses the request path parameter.
|
|
328
517
|
:param verbose: If `true`, the response includes output data for each processor
|
|
329
518
|
in the executed pipeline.
|
|
330
519
|
"""
|
|
520
|
+
if docs is None and body is None:
|
|
521
|
+
raise ValueError("Empty value passed for parameter 'docs'")
|
|
331
522
|
__path_parts: t.Dict[str, str]
|
|
332
523
|
if id not in SKIP_IN_PATH:
|
|
333
524
|
__path_parts = {"id": _quote(id)}
|
|
@@ -37,7 +37,7 @@ class LicenseClient(NamespacedClient):
|
|
|
37
37
|
"""
|
|
38
38
|
Deletes licensing information for the cluster
|
|
39
39
|
|
|
40
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
40
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/delete-license.html>`_
|
|
41
41
|
"""
|
|
42
42
|
__path_parts: t.Dict[str, str] = {}
|
|
43
43
|
__path = "/_license"
|
|
@@ -72,11 +72,11 @@ class LicenseClient(NamespacedClient):
|
|
|
72
72
|
pretty: t.Optional[bool] = None,
|
|
73
73
|
) -> ObjectApiResponse[t.Any]:
|
|
74
74
|
"""
|
|
75
|
-
|
|
76
|
-
when it
|
|
77
|
-
of licenses,
|
|
75
|
+
Get license information. Returns information about your Elastic license, including
|
|
76
|
+
its type, its status, when it was issued, and when it expires. For more information
|
|
77
|
+
about the different types of licenses, refer to [Elastic Stack subscriptions](https://www.elastic.co/subscriptions).
|
|
78
78
|
|
|
79
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
79
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/get-license.html>`_
|
|
80
80
|
|
|
81
81
|
:param accept_enterprise: If `true`, this parameter returns enterprise for Enterprise
|
|
82
82
|
license types. If `false`, this parameter returns platinum for both platinum
|
|
@@ -122,7 +122,7 @@ class LicenseClient(NamespacedClient):
|
|
|
122
122
|
"""
|
|
123
123
|
Retrieves information about the status of the basic license.
|
|
124
124
|
|
|
125
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
125
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/get-basic-status.html>`_
|
|
126
126
|
"""
|
|
127
127
|
__path_parts: t.Dict[str, str] = {}
|
|
128
128
|
__path = "/_license/basic_status"
|
|
@@ -157,7 +157,7 @@ class LicenseClient(NamespacedClient):
|
|
|
157
157
|
"""
|
|
158
158
|
Retrieves information about the status of the trial license.
|
|
159
159
|
|
|
160
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
160
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/get-trial-status.html>`_
|
|
161
161
|
"""
|
|
162
162
|
__path_parts: t.Dict[str, str] = {}
|
|
163
163
|
__path = "/_license/trial_status"
|
|
@@ -198,7 +198,7 @@ class LicenseClient(NamespacedClient):
|
|
|
198
198
|
"""
|
|
199
199
|
Updates the license for the cluster.
|
|
200
200
|
|
|
201
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
201
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/update-license.html>`_
|
|
202
202
|
|
|
203
203
|
:param acknowledge: Specifies whether you acknowledge the license changes.
|
|
204
204
|
:param license:
|
|
@@ -257,7 +257,7 @@ class LicenseClient(NamespacedClient):
|
|
|
257
257
|
acknowledge parameter set to true. To check the status of your basic license,
|
|
258
258
|
use the following API: [Get basic status](https://www.elastic.co/guide/en/elasticsearch/reference/current/get-basic-status.html).
|
|
259
259
|
|
|
260
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
260
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/start-basic.html>`_
|
|
261
261
|
|
|
262
262
|
:param acknowledge: whether the user has acknowledged acknowledge messages (default:
|
|
263
263
|
false)
|
|
@@ -300,7 +300,7 @@ class LicenseClient(NamespacedClient):
|
|
|
300
300
|
The start trial API enables you to start a 30-day trial, which gives access to
|
|
301
301
|
all subscription features.
|
|
302
302
|
|
|
303
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
303
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/start-trial.html>`_
|
|
304
304
|
|
|
305
305
|
:param acknowledge: whether the user has acknowledged acknowledge messages (default:
|
|
306
306
|
false)
|
|
@@ -38,7 +38,7 @@ class LogstashClient(NamespacedClient):
|
|
|
38
38
|
"""
|
|
39
39
|
Deletes a pipeline used for Logstash Central Management.
|
|
40
40
|
|
|
41
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
41
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/logstash-api-delete-pipeline.html>`_
|
|
42
42
|
|
|
43
43
|
:param id: Identifier for the pipeline.
|
|
44
44
|
"""
|
|
@@ -78,7 +78,7 @@ class LogstashClient(NamespacedClient):
|
|
|
78
78
|
"""
|
|
79
79
|
Retrieves pipelines used for Logstash Central Management.
|
|
80
80
|
|
|
81
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
81
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/logstash-api-get-pipeline.html>`_
|
|
82
82
|
|
|
83
83
|
:param id: Comma-separated list of pipeline identifiers.
|
|
84
84
|
"""
|
|
@@ -125,7 +125,7 @@ class LogstashClient(NamespacedClient):
|
|
|
125
125
|
"""
|
|
126
126
|
Creates or updates a pipeline used for Logstash Central Management.
|
|
127
127
|
|
|
128
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
128
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/logstash-api-put-pipeline.html>`_
|
|
129
129
|
|
|
130
130
|
:param id: Identifier for the pipeline.
|
|
131
131
|
:param pipeline:
|
|
@@ -40,7 +40,7 @@ class MigrationClient(NamespacedClient):
|
|
|
40
40
|
that use deprecated features that will be removed or changed in the next major
|
|
41
41
|
version.
|
|
42
42
|
|
|
43
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
43
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/migration-api-deprecation.html>`_
|
|
44
44
|
|
|
45
45
|
:param index: Comma-separate list of data streams or indices to check. Wildcard
|
|
46
46
|
(*) expressions are supported.
|
|
@@ -83,7 +83,7 @@ class MigrationClient(NamespacedClient):
|
|
|
83
83
|
"""
|
|
84
84
|
Find out whether system features need to be upgraded or not
|
|
85
85
|
|
|
86
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
86
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/migration-api-feature-upgrade.html>`_
|
|
87
87
|
"""
|
|
88
88
|
__path_parts: t.Dict[str, str] = {}
|
|
89
89
|
__path = "/_migration/system_features"
|
|
@@ -118,7 +118,7 @@ class MigrationClient(NamespacedClient):
|
|
|
118
118
|
"""
|
|
119
119
|
Begin upgrades for system features
|
|
120
120
|
|
|
121
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
121
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/migration-api-feature-upgrade.html>`_
|
|
122
122
|
"""
|
|
123
123
|
__path_parts: t.Dict[str, str] = {}
|
|
124
124
|
__path = "/_migration/system_features"
|