elasticsearch 8.18.1__py3-none-any.whl → 8.19.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 +56 -76
- elasticsearch/_async/client/async_search.py +5 -9
- elasticsearch/_async/client/autoscaling.py +4 -4
- elasticsearch/_async/client/cat.py +620 -65
- elasticsearch/_async/client/ccr.py +13 -13
- elasticsearch/_async/client/cluster.py +31 -22
- elasticsearch/_async/client/connector.py +30 -30
- elasticsearch/_async/client/dangling_indices.py +3 -3
- elasticsearch/_async/client/enrich.py +5 -5
- elasticsearch/_async/client/eql.py +13 -5
- elasticsearch/_async/client/esql.py +38 -9
- elasticsearch/_async/client/features.py +2 -2
- elasticsearch/_async/client/fleet.py +13 -13
- elasticsearch/_async/client/graph.py +1 -1
- elasticsearch/_async/client/ilm.py +11 -11
- elasticsearch/_async/client/indices.py +131 -82
- elasticsearch/_async/client/inference.py +411 -112
- elasticsearch/_async/client/ingest.py +9 -16
- 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 +76 -88
- elasticsearch/_async/client/nodes.py +9 -8
- elasticsearch/_async/client/query_rules.py +8 -8
- elasticsearch/_async/client/rollup.py +8 -8
- elasticsearch/_async/client/search_application.py +10 -10
- elasticsearch/_async/client/searchable_snapshots.py +4 -4
- elasticsearch/_async/client/security.py +72 -80
- elasticsearch/_async/client/shutdown.py +3 -3
- elasticsearch/_async/client/simulate.py +1 -1
- elasticsearch/_async/client/slm.py +9 -9
- elasticsearch/_async/client/snapshot.py +19 -13
- elasticsearch/_async/client/sql.py +6 -6
- elasticsearch/_async/client/ssl.py +1 -1
- elasticsearch/_async/client/synonyms.py +7 -7
- elasticsearch/_async/client/tasks.py +3 -3
- elasticsearch/_async/client/text_structure.py +4 -4
- elasticsearch/_async/client/transform.py +9 -9
- elasticsearch/_async/client/xpack.py +1 -1
- elasticsearch/_sync/client/__init__.py +56 -76
- elasticsearch/_sync/client/async_search.py +5 -9
- elasticsearch/_sync/client/autoscaling.py +4 -4
- elasticsearch/_sync/client/cat.py +620 -65
- elasticsearch/_sync/client/ccr.py +13 -13
- elasticsearch/_sync/client/cluster.py +31 -22
- elasticsearch/_sync/client/connector.py +30 -30
- elasticsearch/_sync/client/dangling_indices.py +3 -3
- elasticsearch/_sync/client/enrich.py +5 -5
- elasticsearch/_sync/client/eql.py +13 -5
- elasticsearch/_sync/client/esql.py +38 -9
- elasticsearch/_sync/client/features.py +2 -2
- elasticsearch/_sync/client/fleet.py +13 -13
- elasticsearch/_sync/client/graph.py +1 -1
- elasticsearch/_sync/client/ilm.py +11 -11
- elasticsearch/_sync/client/indices.py +131 -82
- elasticsearch/_sync/client/inference.py +411 -112
- elasticsearch/_sync/client/ingest.py +9 -16
- 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 +76 -88
- elasticsearch/_sync/client/nodes.py +9 -8
- elasticsearch/_sync/client/query_rules.py +8 -8
- elasticsearch/_sync/client/rollup.py +8 -8
- elasticsearch/_sync/client/search_application.py +10 -10
- elasticsearch/_sync/client/searchable_snapshots.py +4 -4
- elasticsearch/_sync/client/security.py +72 -80
- elasticsearch/_sync/client/shutdown.py +3 -3
- elasticsearch/_sync/client/simulate.py +1 -1
- elasticsearch/_sync/client/slm.py +9 -9
- elasticsearch/_sync/client/snapshot.py +19 -13
- elasticsearch/_sync/client/sql.py +6 -6
- elasticsearch/_sync/client/ssl.py +1 -1
- elasticsearch/_sync/client/synonyms.py +7 -7
- elasticsearch/_sync/client/tasks.py +3 -3
- elasticsearch/_sync/client/text_structure.py +4 -4
- elasticsearch/_sync/client/transform.py +9 -9
- elasticsearch/_sync/client/xpack.py +1 -1
- elasticsearch/_version.py +1 -1
- elasticsearch/compat.py +5 -0
- elasticsearch/dsl/__init__.py +2 -1
- elasticsearch/dsl/_async/document.py +1 -1
- elasticsearch/dsl/_sync/document.py +1 -1
- elasticsearch/dsl/aggs.py +2 -3
- elasticsearch/dsl/document_base.py +176 -16
- elasticsearch/dsl/field.py +223 -38
- elasticsearch/dsl/query.py +49 -4
- elasticsearch/dsl/types.py +107 -16
- elasticsearch/dsl/utils.py +1 -1
- elasticsearch/esql/__init__.py +18 -0
- elasticsearch/esql/esql.py +1105 -0
- elasticsearch/esql/functions.py +1738 -0
- elasticsearch/exceptions.py +2 -0
- {elasticsearch-8.18.1.dist-info → elasticsearch-8.19.0.dist-info}/METADATA +1 -3
- elasticsearch-8.19.0.dist-info/RECORD +164 -0
- elasticsearch-8.18.1.dist-info/RECORD +0 -163
- elasticsearch-8.18.1.dist-info/licenses/LICENSE.txt +0 -175
- elasticsearch-8.18.1.dist-info/licenses/NOTICE.txt +0 -559
- {elasticsearch-8.18.1.dist-info → elasticsearch-8.19.0.dist-info}/WHEEL +0 -0
- {elasticsearch-8.18.1.dist-info → elasticsearch-8.19.0.dist-info}/licenses/LICENSE +0 -0
- {elasticsearch-8.18.1.dist-info → elasticsearch-8.19.0.dist-info}/licenses/NOTICE +0 -0
|
@@ -98,7 +98,7 @@ class IngestClient(NamespacedClient):
|
|
|
98
98
|
<p>Delete IP geolocation database configurations.</p>
|
|
99
99
|
|
|
100
100
|
|
|
101
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
101
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/delete-ip-location-database-api.html>`_
|
|
102
102
|
|
|
103
103
|
:param id: A comma-separated list of IP location database configurations.
|
|
104
104
|
:param master_timeout: The period to wait for a connection to the master node.
|
|
@@ -155,7 +155,7 @@ class IngestClient(NamespacedClient):
|
|
|
155
155
|
Delete one or more ingest pipelines.</p>
|
|
156
156
|
|
|
157
157
|
|
|
158
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
158
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/delete-pipeline-api.html>`_
|
|
159
159
|
|
|
160
160
|
:param id: Pipeline ID or wildcard expression of pipeline IDs used to limit the
|
|
161
161
|
request. To delete all ingest pipelines in a cluster, use a value of `*`.
|
|
@@ -208,7 +208,7 @@ class IngestClient(NamespacedClient):
|
|
|
208
208
|
Get download statistics for GeoIP2 databases that are used with the GeoIP processor.</p>
|
|
209
209
|
|
|
210
210
|
|
|
211
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
211
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/geoip-processor.html>`_
|
|
212
212
|
"""
|
|
213
213
|
__path_parts: t.Dict[str, str] = {}
|
|
214
214
|
__path = "/_ingest/geoip/stats"
|
|
@@ -288,7 +288,6 @@ class IngestClient(NamespacedClient):
|
|
|
288
288
|
error_trace: t.Optional[bool] = None,
|
|
289
289
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
290
290
|
human: t.Optional[bool] = None,
|
|
291
|
-
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
292
291
|
pretty: t.Optional[bool] = None,
|
|
293
292
|
) -> ObjectApiResponse[t.Any]:
|
|
294
293
|
"""
|
|
@@ -297,15 +296,11 @@ class IngestClient(NamespacedClient):
|
|
|
297
296
|
<p>Get IP geolocation database configurations.</p>
|
|
298
297
|
|
|
299
298
|
|
|
300
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
299
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/get-ip-location-database-api.html>`_
|
|
301
300
|
|
|
302
301
|
:param id: Comma-separated list of database configuration IDs to retrieve. Wildcard
|
|
303
302
|
(`*`) expressions are supported. To get all database configurations, omit
|
|
304
303
|
this parameter or use `*`.
|
|
305
|
-
:param master_timeout: The period to wait for a connection to the master node.
|
|
306
|
-
If no response is received before the timeout expires, the request fails
|
|
307
|
-
and returns an error. A value of `-1` indicates that the request should never
|
|
308
|
-
time out.
|
|
309
304
|
"""
|
|
310
305
|
__path_parts: t.Dict[str, str]
|
|
311
306
|
if id not in SKIP_IN_PATH:
|
|
@@ -321,8 +316,6 @@ class IngestClient(NamespacedClient):
|
|
|
321
316
|
__query["filter_path"] = filter_path
|
|
322
317
|
if human is not None:
|
|
323
318
|
__query["human"] = human
|
|
324
|
-
if master_timeout is not None:
|
|
325
|
-
__query["master_timeout"] = master_timeout
|
|
326
319
|
if pretty is not None:
|
|
327
320
|
__query["pretty"] = pretty
|
|
328
321
|
__headers = {"accept": "application/json"}
|
|
@@ -355,7 +348,7 @@ class IngestClient(NamespacedClient):
|
|
|
355
348
|
This API returns a local reference of the pipeline.</p>
|
|
356
349
|
|
|
357
350
|
|
|
358
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
351
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/get-pipeline-api.html>`_
|
|
359
352
|
|
|
360
353
|
:param id: Comma-separated list of pipeline IDs to retrieve. Wildcard (`*`) expressions
|
|
361
354
|
are supported. To get all ingest pipelines, omit this parameter or use `*`.
|
|
@@ -412,7 +405,7 @@ class IngestClient(NamespacedClient):
|
|
|
412
405
|
A grok pattern is like a regular expression that supports aliased expressions that can be reused.</p>
|
|
413
406
|
|
|
414
407
|
|
|
415
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
408
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/grok-processor.html>`_
|
|
416
409
|
"""
|
|
417
410
|
__path_parts: t.Dict[str, str] = {}
|
|
418
411
|
__path = "/_ingest/processor/grok"
|
|
@@ -534,7 +527,7 @@ class IngestClient(NamespacedClient):
|
|
|
534
527
|
<p>Create or update an IP geolocation database configuration.</p>
|
|
535
528
|
|
|
536
529
|
|
|
537
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
530
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/put-ip-location-database-api.html>`_
|
|
538
531
|
|
|
539
532
|
:param id: The database configuration identifier.
|
|
540
533
|
:param configuration:
|
|
@@ -620,7 +613,7 @@ class IngestClient(NamespacedClient):
|
|
|
620
613
|
Changes made using this API take effect immediately.</p>
|
|
621
614
|
|
|
622
615
|
|
|
623
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
616
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ingest.html>`_
|
|
624
617
|
|
|
625
618
|
:param id: ID of the ingest pipeline to create or update.
|
|
626
619
|
:param deprecated: Marks this ingest pipeline as deprecated. When a deprecated
|
|
@@ -717,7 +710,7 @@ class IngestClient(NamespacedClient):
|
|
|
717
710
|
You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request.</p>
|
|
718
711
|
|
|
719
712
|
|
|
720
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
713
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/simulate-pipeline-api.html>`_
|
|
721
714
|
|
|
722
715
|
:param docs: Sample documents to test in the pipeline.
|
|
723
716
|
:param id: The pipeline to test. If you don't specify a `pipeline` in the request
|
|
@@ -44,7 +44,7 @@ class LicenseClient(NamespacedClient):
|
|
|
44
44
|
<p>If the operator privileges feature is enabled, only operator users can use this API.</p>
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
47
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/delete-license.html>`_
|
|
48
48
|
|
|
49
49
|
:param master_timeout: The period to wait for a connection to the master node.
|
|
50
50
|
:param timeout: The period to wait for a response. If no response is received
|
|
@@ -98,7 +98,7 @@ class LicenseClient(NamespacedClient):
|
|
|
98
98
|
</blockquote>
|
|
99
99
|
|
|
100
100
|
|
|
101
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
101
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/get-license.html>`_
|
|
102
102
|
|
|
103
103
|
:param accept_enterprise: If `true`, this parameter returns enterprise for Enterprise
|
|
104
104
|
license types. If `false`, this parameter returns platinum for both platinum
|
|
@@ -147,7 +147,7 @@ class LicenseClient(NamespacedClient):
|
|
|
147
147
|
<p>Get the basic license status.</p>
|
|
148
148
|
|
|
149
149
|
|
|
150
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
150
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/get-basic-status.html>`_
|
|
151
151
|
"""
|
|
152
152
|
__path_parts: t.Dict[str, str] = {}
|
|
153
153
|
__path = "/_license/basic_status"
|
|
@@ -185,7 +185,7 @@ class LicenseClient(NamespacedClient):
|
|
|
185
185
|
<p>Get the trial status.</p>
|
|
186
186
|
|
|
187
187
|
|
|
188
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
188
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/get-trial-status.html>`_
|
|
189
189
|
"""
|
|
190
190
|
__path_parts: t.Dict[str, str] = {}
|
|
191
191
|
__path = "/_license/trial_status"
|
|
@@ -308,7 +308,7 @@ class LicenseClient(NamespacedClient):
|
|
|
308
308
|
<p>To check the status of your basic license, use the get basic license API.</p>
|
|
309
309
|
|
|
310
310
|
|
|
311
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
311
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/start-basic.html>`_
|
|
312
312
|
|
|
313
313
|
:param acknowledge: whether the user has acknowledged acknowledge messages (default:
|
|
314
314
|
false)
|
|
@@ -353,7 +353,7 @@ class LicenseClient(NamespacedClient):
|
|
|
353
353
|
human: t.Optional[bool] = None,
|
|
354
354
|
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
355
355
|
pretty: t.Optional[bool] = None,
|
|
356
|
-
|
|
356
|
+
type: t.Optional[str] = None,
|
|
357
357
|
) -> ObjectApiResponse[t.Any]:
|
|
358
358
|
"""
|
|
359
359
|
.. raw:: html
|
|
@@ -365,12 +365,12 @@ class LicenseClient(NamespacedClient):
|
|
|
365
365
|
<p>To check the status of your trial, use the get trial status API.</p>
|
|
366
366
|
|
|
367
367
|
|
|
368
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
368
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/start-trial.html>`_
|
|
369
369
|
|
|
370
370
|
:param acknowledge: whether the user has acknowledged acknowledge messages (default:
|
|
371
371
|
false)
|
|
372
372
|
:param master_timeout: Period to wait for a connection to the master node.
|
|
373
|
-
:param
|
|
373
|
+
:param type: The type of trial license to generate (default: "trial")
|
|
374
374
|
"""
|
|
375
375
|
__path_parts: t.Dict[str, str] = {}
|
|
376
376
|
__path = "/_license/start_trial"
|
|
@@ -387,8 +387,8 @@ class LicenseClient(NamespacedClient):
|
|
|
387
387
|
__query["master_timeout"] = master_timeout
|
|
388
388
|
if pretty is not None:
|
|
389
389
|
__query["pretty"] = pretty
|
|
390
|
-
if
|
|
391
|
-
__query["
|
|
390
|
+
if type is not None:
|
|
391
|
+
__query["type"] = type
|
|
392
392
|
__headers = {"accept": "application/json"}
|
|
393
393
|
return self.perform_request( # type: ignore[return-value]
|
|
394
394
|
"POST",
|
|
@@ -43,7 +43,7 @@ class LogstashClient(NamespacedClient):
|
|
|
43
43
|
If the request succeeds, you receive an empty response with an appropriate status code.</p>
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
46
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/logstash-api-delete-pipeline.html>`_
|
|
47
47
|
|
|
48
48
|
:param id: An identifier for the pipeline.
|
|
49
49
|
"""
|
|
@@ -87,7 +87,7 @@ class LogstashClient(NamespacedClient):
|
|
|
87
87
|
Get pipelines that are used for Logstash Central Management.</p>
|
|
88
88
|
|
|
89
89
|
|
|
90
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
90
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/logstash-api-get-pipeline.html>`_
|
|
91
91
|
|
|
92
92
|
:param id: A comma-separated list of pipeline identifiers.
|
|
93
93
|
"""
|
|
@@ -139,7 +139,7 @@ class LogstashClient(NamespacedClient):
|
|
|
139
139
|
If the specified pipeline exists, it is replaced.</p>
|
|
140
140
|
|
|
141
141
|
|
|
142
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
142
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/logstash-api-put-pipeline.html>`_
|
|
143
143
|
|
|
144
144
|
:param id: An identifier for the pipeline.
|
|
145
145
|
:param pipeline:
|
|
@@ -44,7 +44,7 @@ class MigrationClient(NamespacedClient):
|
|
|
44
44
|
You are strongly recommended to use the Upgrade Assistant.</p>
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
47
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/migration-api-deprecation.html>`_
|
|
48
48
|
|
|
49
49
|
:param index: Comma-separate list of data streams or indices to check. Wildcard
|
|
50
50
|
(*) expressions are supported.
|
|
@@ -94,7 +94,7 @@ class MigrationClient(NamespacedClient):
|
|
|
94
94
|
You are strongly recommended to use the Upgrade Assistant.</p>
|
|
95
95
|
|
|
96
96
|
|
|
97
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
97
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/feature-migration-api.html>`_
|
|
98
98
|
"""
|
|
99
99
|
__path_parts: t.Dict[str, str] = {}
|
|
100
100
|
__path = "/_migration/system_features"
|
|
@@ -136,7 +136,7 @@ class MigrationClient(NamespacedClient):
|
|
|
136
136
|
<p>TIP: The API is designed for indirect use by the Upgrade Assistant. We strongly recommend you use the Upgrade Assistant.</p>
|
|
137
137
|
|
|
138
138
|
|
|
139
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
139
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/feature-migration-api.html>`_
|
|
140
140
|
"""
|
|
141
141
|
__path_parts: t.Dict[str, str] = {}
|
|
142
142
|
__path = "/_migration/system_features"
|