elasticsearch 9.0.2__py3-none-any.whl → 9.1.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/__init__.py +3 -3
- elasticsearch/_async/client/__init__.py +88 -244
- elasticsearch/_async/client/async_search.py +4 -4
- elasticsearch/_async/client/autoscaling.py +4 -4
- elasticsearch/_async/client/cat.py +419 -51
- elasticsearch/_async/client/ccr.py +13 -13
- elasticsearch/_async/client/cluster.py +32 -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 +14 -6
- elasticsearch/_async/client/esql.py +125 -9
- elasticsearch/_async/client/features.py +2 -2
- elasticsearch/_async/client/fleet.py +3 -3
- elasticsearch/_async/client/graph.py +1 -1
- elasticsearch/_async/client/ilm.py +11 -11
- elasticsearch/_async/client/indices.py +592 -113
- elasticsearch/_async/client/inference.py +521 -44
- elasticsearch/_async/client/ingest.py +9 -16
- elasticsearch/_async/client/license.py +11 -11
- elasticsearch/_async/client/logstash.py +3 -3
- elasticsearch/_async/client/migration.py +3 -3
- elasticsearch/_async/client/ml.py +75 -87
- elasticsearch/_async/client/monitoring.py +1 -1
- elasticsearch/_async/client/nodes.py +7 -7
- elasticsearch/_async/client/query_rules.py +8 -8
- elasticsearch/_async/client/rollup.py +9 -30
- elasticsearch/_async/client/search_application.py +10 -10
- elasticsearch/_async/client/searchable_snapshots.py +4 -4
- elasticsearch/_async/client/security.py +79 -81
- 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 +64 -21
- elasticsearch/_async/client/sql.py +6 -6
- elasticsearch/_async/client/ssl.py +1 -1
- elasticsearch/_async/client/synonyms.py +26 -7
- elasticsearch/_async/client/tasks.py +4 -4
- elasticsearch/_async/client/text_structure.py +4 -4
- elasticsearch/_async/client/transform.py +11 -11
- elasticsearch/_async/client/watcher.py +17 -15
- elasticsearch/_async/client/xpack.py +2 -2
- elasticsearch/_otel.py +8 -8
- elasticsearch/_sync/client/__init__.py +88 -244
- elasticsearch/_sync/client/async_search.py +4 -4
- elasticsearch/_sync/client/autoscaling.py +4 -4
- elasticsearch/_sync/client/cat.py +419 -51
- elasticsearch/_sync/client/ccr.py +13 -13
- elasticsearch/_sync/client/cluster.py +32 -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 +14 -6
- elasticsearch/_sync/client/esql.py +125 -9
- elasticsearch/_sync/client/features.py +2 -2
- elasticsearch/_sync/client/fleet.py +3 -3
- elasticsearch/_sync/client/graph.py +1 -1
- elasticsearch/_sync/client/ilm.py +11 -11
- elasticsearch/_sync/client/indices.py +592 -113
- elasticsearch/_sync/client/inference.py +521 -44
- elasticsearch/_sync/client/ingest.py +9 -16
- elasticsearch/_sync/client/license.py +11 -11
- elasticsearch/_sync/client/logstash.py +3 -3
- elasticsearch/_sync/client/migration.py +3 -3
- elasticsearch/_sync/client/ml.py +75 -87
- elasticsearch/_sync/client/monitoring.py +1 -1
- elasticsearch/_sync/client/nodes.py +7 -7
- elasticsearch/_sync/client/query_rules.py +8 -8
- elasticsearch/_sync/client/rollup.py +9 -30
- elasticsearch/_sync/client/search_application.py +10 -10
- elasticsearch/_sync/client/searchable_snapshots.py +4 -4
- elasticsearch/_sync/client/security.py +79 -81
- 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 +64 -21
- elasticsearch/_sync/client/sql.py +6 -6
- elasticsearch/_sync/client/ssl.py +1 -1
- elasticsearch/_sync/client/synonyms.py +26 -7
- elasticsearch/_sync/client/tasks.py +4 -4
- elasticsearch/_sync/client/text_structure.py +4 -4
- elasticsearch/_sync/client/transform.py +11 -11
- elasticsearch/_sync/client/watcher.py +17 -15
- elasticsearch/_sync/client/xpack.py +2 -2
- elasticsearch/_version.py +1 -1
- elasticsearch/compat.py +5 -0
- elasticsearch/dsl/__init__.py +2 -1
- elasticsearch/dsl/aggs.py +20 -0
- elasticsearch/dsl/document_base.py +177 -17
- elasticsearch/dsl/field.py +230 -37
- elasticsearch/dsl/query.py +6 -3
- elasticsearch/dsl/response/__init__.py +1 -1
- elasticsearch/dsl/types.py +169 -11
- elasticsearch/dsl/utils.py +1 -1
- elasticsearch/{dsl/_sync/_sync_check → esql}/__init__.py +2 -0
- elasticsearch/esql/esql.py +1105 -0
- elasticsearch/esql/esql1.py1 +307 -0
- elasticsearch/esql/functions.py +1738 -0
- {elasticsearch-9.0.2.dist-info → elasticsearch-9.1.0.dist-info}/METADATA +3 -4
- elasticsearch-9.1.0.dist-info/RECORD +164 -0
- elasticsearch/dsl/_sync/_sync_check/document.py +0 -514
- elasticsearch/dsl/_sync/_sync_check/faceted_search.py +0 -50
- elasticsearch/dsl/_sync/_sync_check/index.py +0 -597
- elasticsearch/dsl/_sync/_sync_check/mapping.py +0 -49
- elasticsearch/dsl/_sync/_sync_check/search.py +0 -230
- elasticsearch/dsl/_sync/_sync_check/update_by_query.py +0 -45
- elasticsearch-9.0.2.dist-info/RECORD +0 -167
- {elasticsearch-9.0.2.dist-info → elasticsearch-9.1.0.dist-info}/WHEEL +0 -0
- {elasticsearch-9.0.2.dist-info → elasticsearch-9.1.0.dist-info}/licenses/LICENSE +0 -0
- {elasticsearch-9.0.2.dist-info → elasticsearch-9.1.0.dist-info}/licenses/NOTICE +0 -0
|
@@ -44,7 +44,7 @@ class IngestClient(NamespacedClient):
|
|
|
44
44
|
<p>Delete one or more IP geolocation database configurations.</p>
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
47
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-delete-geoip-database>`_
|
|
48
48
|
|
|
49
49
|
:param id: A comma-separated list of geoip database configurations to delete
|
|
50
50
|
:param master_timeout: The period to wait for a connection to the master node.
|
|
@@ -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/docs/api/doc/elasticsearch/
|
|
101
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-delete-ip-location-database>`_
|
|
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/docs/api/doc/elasticsearch/
|
|
158
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-delete-pipeline>`_
|
|
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 `*`.
|
|
@@ -248,7 +248,7 @@ class IngestClient(NamespacedClient):
|
|
|
248
248
|
<p>Get information about one or more IP geolocation database configurations.</p>
|
|
249
249
|
|
|
250
250
|
|
|
251
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
251
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-get-geoip-database>`_
|
|
252
252
|
|
|
253
253
|
:param id: A comma-separated list of database configuration IDs to retrieve.
|
|
254
254
|
Wildcard (`*`) expressions are supported. To get all database configurations,
|
|
@@ -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/docs/api/doc/elasticsearch/
|
|
299
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-get-ip-location-database>`_
|
|
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/docs/api/doc/elasticsearch/
|
|
351
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-get-pipeline>`_
|
|
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 `*`.
|
|
@@ -459,7 +452,7 @@ class IngestClient(NamespacedClient):
|
|
|
459
452
|
<p>Refer to the create or update IP geolocation database configuration API.</p>
|
|
460
453
|
|
|
461
454
|
|
|
462
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
455
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-put-geoip-database>`_
|
|
463
456
|
|
|
464
457
|
:param id: ID of the database configuration to create or update.
|
|
465
458
|
:param maxmind: The configuration necessary to identify which IP geolocation
|
|
@@ -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/docs/api/doc/elasticsearch/
|
|
530
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-put-ip-location-database>`_
|
|
538
531
|
|
|
539
532
|
:param id: The database configuration identifier.
|
|
540
533
|
:param configuration:
|
|
@@ -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/docs/api/doc/elasticsearch/
|
|
713
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-simulate>`_
|
|
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/docs/api/doc/elasticsearch/
|
|
47
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-delete>`_
|
|
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/docs/api/doc/elasticsearch/
|
|
101
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-get>`_
|
|
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/docs/api/doc/elasticsearch/
|
|
150
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-get-basic-status>`_
|
|
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/docs/api/doc/elasticsearch/
|
|
188
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-get-trial-status>`_
|
|
189
189
|
"""
|
|
190
190
|
__path_parts: t.Dict[str, str] = {}
|
|
191
191
|
__path = "/_license/trial_status"
|
|
@@ -237,7 +237,7 @@ class LicenseClient(NamespacedClient):
|
|
|
237
237
|
If the operator privileges feature is enabled, only operator users can use this API.</p>
|
|
238
238
|
|
|
239
239
|
|
|
240
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
240
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-post>`_
|
|
241
241
|
|
|
242
242
|
:param acknowledge: Specifies whether you acknowledge the license changes.
|
|
243
243
|
:param license:
|
|
@@ -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/docs/api/doc/elasticsearch/
|
|
311
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-post-start-basic>`_
|
|
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/docs/api/doc/elasticsearch/
|
|
368
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-post-start-trial>`_
|
|
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/docs/api/doc/elasticsearch/
|
|
46
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-logstash-delete-pipeline>`_
|
|
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/docs/api/doc/elasticsearch/
|
|
90
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-logstash-get-pipeline>`_
|
|
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/docs/api/doc/elasticsearch/
|
|
142
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-logstash-put-pipeline>`_
|
|
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/docs/api/doc/elasticsearch/
|
|
47
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-migration-deprecations>`_
|
|
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/docs/api/doc/elasticsearch/
|
|
97
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-migration-get-feature-upgrade-status>`_
|
|
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/docs/api/doc/elasticsearch/
|
|
139
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-migration-get-feature-upgrade-status>`_
|
|
140
140
|
"""
|
|
141
141
|
__path_parts: t.Dict[str, str] = {}
|
|
142
142
|
__path = "/_migration/system_features"
|