elasticsearch 8.19.2__py3-none-any.whl → 8.19.3__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 +39 -18
- elasticsearch/_async/client/async_search.py +3 -3
- elasticsearch/_async/client/autoscaling.py +8 -4
- elasticsearch/_async/client/cat.py +40 -2
- elasticsearch/_async/client/ccr.py +2 -2
- elasticsearch/_async/client/cluster.py +10 -9
- elasticsearch/_async/client/connector.py +34 -33
- elasticsearch/_async/client/dangling_indices.py +6 -10
- elasticsearch/_async/client/eql.py +2 -2
- elasticsearch/_async/client/esql.py +1 -1
- elasticsearch/_async/client/features.py +2 -2
- elasticsearch/_async/client/fleet.py +3 -3
- elasticsearch/_async/client/indices.py +235 -25
- elasticsearch/_async/client/ingest.py +1 -1
- elasticsearch/_async/client/license.py +3 -5
- elasticsearch/_async/client/ml.py +61 -21
- elasticsearch/_async/client/monitoring.py +2 -1
- elasticsearch/_async/client/nodes.py +7 -7
- elasticsearch/_async/client/rollup.py +9 -9
- elasticsearch/_async/client/search_application.py +11 -11
- elasticsearch/_async/client/searchable_snapshots.py +4 -4
- elasticsearch/_async/client/security.py +4 -4
- elasticsearch/_async/client/shutdown.py +7 -2
- elasticsearch/_async/client/simulate.py +2 -2
- elasticsearch/_async/client/slm.py +1 -1
- elasticsearch/_async/client/snapshot.py +3 -2
- elasticsearch/_async/client/streams.py +6 -6
- elasticsearch/_async/client/tasks.py +4 -4
- elasticsearch/_async/client/text_structure.py +5 -1
- elasticsearch/_async/client/transform.py +37 -0
- elasticsearch/_async/client/utils.py +4 -2
- elasticsearch/_async/client/watcher.py +2 -2
- elasticsearch/_async/client/xpack.py +2 -1
- elasticsearch/_sync/client/__init__.py +41 -18
- elasticsearch/_sync/client/async_search.py +3 -3
- elasticsearch/_sync/client/autoscaling.py +8 -4
- elasticsearch/_sync/client/cat.py +40 -2
- elasticsearch/_sync/client/ccr.py +2 -2
- elasticsearch/_sync/client/cluster.py +10 -9
- elasticsearch/_sync/client/connector.py +34 -33
- elasticsearch/_sync/client/dangling_indices.py +6 -10
- elasticsearch/_sync/client/eql.py +2 -2
- elasticsearch/_sync/client/esql.py +1 -1
- elasticsearch/_sync/client/features.py +2 -2
- elasticsearch/_sync/client/fleet.py +3 -3
- elasticsearch/_sync/client/indices.py +235 -25
- elasticsearch/_sync/client/ingest.py +1 -1
- elasticsearch/_sync/client/license.py +3 -5
- elasticsearch/_sync/client/ml.py +61 -21
- elasticsearch/_sync/client/monitoring.py +2 -1
- elasticsearch/_sync/client/nodes.py +7 -7
- elasticsearch/_sync/client/rollup.py +9 -9
- elasticsearch/_sync/client/search_application.py +11 -11
- elasticsearch/_sync/client/searchable_snapshots.py +4 -4
- elasticsearch/_sync/client/security.py +4 -4
- elasticsearch/_sync/client/shutdown.py +7 -2
- elasticsearch/_sync/client/simulate.py +2 -2
- elasticsearch/_sync/client/slm.py +1 -1
- elasticsearch/_sync/client/snapshot.py +3 -2
- elasticsearch/_sync/client/streams.py +6 -6
- elasticsearch/_sync/client/tasks.py +4 -4
- elasticsearch/_sync/client/text_structure.py +5 -1
- elasticsearch/_sync/client/transform.py +37 -0
- elasticsearch/_sync/client/utils.py +16 -2
- elasticsearch/_sync/client/watcher.py +2 -2
- elasticsearch/_sync/client/xpack.py +2 -1
- elasticsearch/_version.py +2 -2
- elasticsearch/dsl/_async/document.py +4 -5
- elasticsearch/dsl/_async/index.py +1 -1
- elasticsearch/dsl/_async/search.py +2 -3
- elasticsearch/dsl/_sync/document.py +4 -5
- elasticsearch/dsl/_sync/index.py +1 -1
- elasticsearch/dsl/_sync/search.py +2 -3
- elasticsearch/dsl/aggs.py +7 -7
- elasticsearch/dsl/async_connections.py +1 -2
- elasticsearch/dsl/connections.py +1 -2
- elasticsearch/dsl/document_base.py +1 -1
- elasticsearch/dsl/query.py +23 -0
- elasticsearch/dsl/serializer.py +1 -2
- elasticsearch/dsl/types.py +2 -0
- elasticsearch/dsl/utils.py +1 -2
- elasticsearch/esql/esql.py +1 -1
- elasticsearch/esql/functions.py +2 -2
- elasticsearch/helpers/vectorstore/__init__.py +7 -7
- elasticsearch/helpers/vectorstore/_async/_utils.py +1 -1
- elasticsearch/helpers/vectorstore/_async/embedding_service.py +2 -2
- elasticsearch/helpers/vectorstore/_async/strategies.py +3 -3
- elasticsearch/helpers/vectorstore/_async/vectorstore.py +5 -5
- elasticsearch/helpers/vectorstore/_sync/_utils.py +1 -1
- elasticsearch/helpers/vectorstore/_sync/embedding_service.py +2 -2
- elasticsearch/helpers/vectorstore/_sync/strategies.py +3 -3
- elasticsearch/helpers/vectorstore/_sync/vectorstore.py +5 -5
- {elasticsearch-8.19.2.dist-info → elasticsearch-8.19.3.dist-info}/METADATA +1 -1
- elasticsearch-8.19.3.dist-info/RECORD +166 -0
- {elasticsearch-8.19.2.dist-info → elasticsearch-8.19.3.dist-info}/WHEEL +1 -1
- elasticsearch-8.19.2.dist-info/RECORD +0 -166
- {elasticsearch-8.19.2.dist-info → elasticsearch-8.19.3.dist-info}/licenses/LICENSE +0 -0
- {elasticsearch-8.19.2.dist-info → elasticsearch-8.19.3.dist-info}/licenses/NOTICE +0 -0
|
@@ -23,16 +23,17 @@ from ._base import NamespacedClient
|
|
|
23
23
|
from .utils import (
|
|
24
24
|
SKIP_IN_PATH,
|
|
25
25
|
Stability,
|
|
26
|
+
Visibility,
|
|
27
|
+
_availability_warning,
|
|
26
28
|
_quote,
|
|
27
29
|
_rewrite_parameters,
|
|
28
|
-
_stability_warning,
|
|
29
30
|
)
|
|
30
31
|
|
|
31
32
|
|
|
32
33
|
class ConnectorClient(NamespacedClient):
|
|
33
34
|
|
|
34
35
|
@_rewrite_parameters()
|
|
35
|
-
@
|
|
36
|
+
@_availability_warning(Stability.EXPERIMENTAL)
|
|
36
37
|
async def check_in(
|
|
37
38
|
self,
|
|
38
39
|
*,
|
|
@@ -77,7 +78,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
77
78
|
)
|
|
78
79
|
|
|
79
80
|
@_rewrite_parameters()
|
|
80
|
-
@
|
|
81
|
+
@_availability_warning(Stability.BETA)
|
|
81
82
|
async def delete(
|
|
82
83
|
self,
|
|
83
84
|
*,
|
|
@@ -130,7 +131,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
130
131
|
)
|
|
131
132
|
|
|
132
133
|
@_rewrite_parameters()
|
|
133
|
-
@
|
|
134
|
+
@_availability_warning(Stability.BETA)
|
|
134
135
|
async def get(
|
|
135
136
|
self,
|
|
136
137
|
*,
|
|
@@ -190,7 +191,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
190
191
|
"sync_cursor",
|
|
191
192
|
),
|
|
192
193
|
)
|
|
193
|
-
@
|
|
194
|
+
@_availability_warning(Stability.EXPERIMENTAL, Visibility.PRIVATE)
|
|
194
195
|
async def last_sync(
|
|
195
196
|
self,
|
|
196
197
|
*,
|
|
@@ -324,7 +325,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
324
325
|
@_rewrite_parameters(
|
|
325
326
|
parameter_aliases={"from": "from_"},
|
|
326
327
|
)
|
|
327
|
-
@
|
|
328
|
+
@_availability_warning(Stability.BETA)
|
|
328
329
|
async def list(
|
|
329
330
|
self,
|
|
330
331
|
*,
|
|
@@ -402,7 +403,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
402
403
|
"service_type",
|
|
403
404
|
),
|
|
404
405
|
)
|
|
405
|
-
@
|
|
406
|
+
@_availability_warning(Stability.BETA)
|
|
406
407
|
async def post(
|
|
407
408
|
self,
|
|
408
409
|
*,
|
|
@@ -486,7 +487,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
486
487
|
"service_type",
|
|
487
488
|
),
|
|
488
489
|
)
|
|
489
|
-
@
|
|
490
|
+
@_availability_warning(Stability.BETA)
|
|
490
491
|
async def put(
|
|
491
492
|
self,
|
|
492
493
|
*,
|
|
@@ -566,7 +567,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
566
567
|
)
|
|
567
568
|
|
|
568
569
|
@_rewrite_parameters()
|
|
569
|
-
@
|
|
570
|
+
@_availability_warning(Stability.BETA)
|
|
570
571
|
async def sync_job_cancel(
|
|
571
572
|
self,
|
|
572
573
|
*,
|
|
@@ -616,7 +617,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
616
617
|
)
|
|
617
618
|
|
|
618
619
|
@_rewrite_parameters()
|
|
619
|
-
@
|
|
620
|
+
@_availability_warning(Stability.EXPERIMENTAL)
|
|
620
621
|
async def sync_job_check_in(
|
|
621
622
|
self,
|
|
622
623
|
*,
|
|
@@ -670,7 +671,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
670
671
|
@_rewrite_parameters(
|
|
671
672
|
body_fields=("worker_hostname", "sync_cursor"),
|
|
672
673
|
)
|
|
673
|
-
@
|
|
674
|
+
@_availability_warning(Stability.EXPERIMENTAL)
|
|
674
675
|
async def sync_job_claim(
|
|
675
676
|
self,
|
|
676
677
|
*,
|
|
@@ -739,7 +740,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
739
740
|
)
|
|
740
741
|
|
|
741
742
|
@_rewrite_parameters()
|
|
742
|
-
@
|
|
743
|
+
@_availability_warning(Stability.BETA)
|
|
743
744
|
async def sync_job_delete(
|
|
744
745
|
self,
|
|
745
746
|
*,
|
|
@@ -790,7 +791,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
790
791
|
@_rewrite_parameters(
|
|
791
792
|
body_fields=("error",),
|
|
792
793
|
)
|
|
793
|
-
@
|
|
794
|
+
@_availability_warning(Stability.EXPERIMENTAL)
|
|
794
795
|
async def sync_job_error(
|
|
795
796
|
self,
|
|
796
797
|
*,
|
|
@@ -849,7 +850,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
849
850
|
)
|
|
850
851
|
|
|
851
852
|
@_rewrite_parameters()
|
|
852
|
-
@
|
|
853
|
+
@_availability_warning(Stability.BETA)
|
|
853
854
|
async def sync_job_get(
|
|
854
855
|
self,
|
|
855
856
|
*,
|
|
@@ -897,7 +898,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
897
898
|
@_rewrite_parameters(
|
|
898
899
|
parameter_aliases={"from": "from_"},
|
|
899
900
|
)
|
|
900
|
-
@
|
|
901
|
+
@_availability_warning(Stability.BETA)
|
|
901
902
|
async def sync_job_list(
|
|
902
903
|
self,
|
|
903
904
|
*,
|
|
@@ -980,7 +981,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
980
981
|
@_rewrite_parameters(
|
|
981
982
|
body_fields=("id", "job_type", "trigger_method"),
|
|
982
983
|
)
|
|
983
|
-
@
|
|
984
|
+
@_availability_warning(Stability.BETA)
|
|
984
985
|
async def sync_job_post(
|
|
985
986
|
self,
|
|
986
987
|
*,
|
|
@@ -1052,7 +1053,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1052
1053
|
"total_document_count",
|
|
1053
1054
|
),
|
|
1054
1055
|
)
|
|
1055
|
-
@
|
|
1056
|
+
@_availability_warning(Stability.EXPERIMENTAL)
|
|
1056
1057
|
async def sync_job_update_stats(
|
|
1057
1058
|
self,
|
|
1058
1059
|
*,
|
|
@@ -1146,7 +1147,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1146
1147
|
)
|
|
1147
1148
|
|
|
1148
1149
|
@_rewrite_parameters()
|
|
1149
|
-
@
|
|
1150
|
+
@_availability_warning(Stability.EXPERIMENTAL)
|
|
1150
1151
|
async def update_active_filtering(
|
|
1151
1152
|
self,
|
|
1152
1153
|
*,
|
|
@@ -1193,7 +1194,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1193
1194
|
@_rewrite_parameters(
|
|
1194
1195
|
body_fields=("api_key_id", "api_key_secret_id"),
|
|
1195
1196
|
)
|
|
1196
|
-
@
|
|
1197
|
+
@_availability_warning(Stability.BETA)
|
|
1197
1198
|
async def update_api_key_id(
|
|
1198
1199
|
self,
|
|
1199
1200
|
*,
|
|
@@ -1255,7 +1256,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1255
1256
|
@_rewrite_parameters(
|
|
1256
1257
|
body_fields=("configuration", "values"),
|
|
1257
1258
|
)
|
|
1258
|
-
@
|
|
1259
|
+
@_availability_warning(Stability.BETA)
|
|
1259
1260
|
async def update_configuration(
|
|
1260
1261
|
self,
|
|
1261
1262
|
*,
|
|
@@ -1314,7 +1315,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1314
1315
|
@_rewrite_parameters(
|
|
1315
1316
|
body_fields=("error",),
|
|
1316
1317
|
)
|
|
1317
|
-
@
|
|
1318
|
+
@_availability_warning(Stability.EXPERIMENTAL)
|
|
1318
1319
|
async def update_error(
|
|
1319
1320
|
self,
|
|
1320
1321
|
*,
|
|
@@ -1373,7 +1374,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1373
1374
|
@_rewrite_parameters(
|
|
1374
1375
|
body_fields=("features",),
|
|
1375
1376
|
)
|
|
1376
|
-
@
|
|
1377
|
+
@_availability_warning(Stability.EXPERIMENTAL)
|
|
1377
1378
|
async def update_features(
|
|
1378
1379
|
self,
|
|
1379
1380
|
*,
|
|
@@ -1441,7 +1442,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1441
1442
|
@_rewrite_parameters(
|
|
1442
1443
|
body_fields=("advanced_snippet", "filtering", "rules"),
|
|
1443
1444
|
)
|
|
1444
|
-
@
|
|
1445
|
+
@_availability_warning(Stability.BETA)
|
|
1445
1446
|
async def update_filtering(
|
|
1446
1447
|
self,
|
|
1447
1448
|
*,
|
|
@@ -1506,7 +1507,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1506
1507
|
@_rewrite_parameters(
|
|
1507
1508
|
body_fields=("validation",),
|
|
1508
1509
|
)
|
|
1509
|
-
@
|
|
1510
|
+
@_availability_warning(Stability.EXPERIMENTAL)
|
|
1510
1511
|
async def update_filtering_validation(
|
|
1511
1512
|
self,
|
|
1512
1513
|
*,
|
|
@@ -1525,7 +1526,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1525
1526
|
<p>Update the draft filtering validation info for a connector.</p>
|
|
1526
1527
|
|
|
1527
1528
|
|
|
1528
|
-
`<https://www.elastic.co/
|
|
1529
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-connector-update-filtering-validation>`_
|
|
1529
1530
|
|
|
1530
1531
|
:param connector_id: The unique identifier of the connector to be updated
|
|
1531
1532
|
:param validation:
|
|
@@ -1563,7 +1564,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1563
1564
|
@_rewrite_parameters(
|
|
1564
1565
|
body_fields=("index_name",),
|
|
1565
1566
|
)
|
|
1566
|
-
@
|
|
1567
|
+
@_availability_warning(Stability.BETA)
|
|
1567
1568
|
async def update_index_name(
|
|
1568
1569
|
self,
|
|
1569
1570
|
*,
|
|
@@ -1620,7 +1621,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1620
1621
|
@_rewrite_parameters(
|
|
1621
1622
|
body_fields=("description", "name"),
|
|
1622
1623
|
)
|
|
1623
|
-
@
|
|
1624
|
+
@_availability_warning(Stability.BETA)
|
|
1624
1625
|
async def update_name(
|
|
1625
1626
|
self,
|
|
1626
1627
|
*,
|
|
@@ -1678,7 +1679,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1678
1679
|
@_rewrite_parameters(
|
|
1679
1680
|
body_fields=("is_native",),
|
|
1680
1681
|
)
|
|
1681
|
-
@
|
|
1682
|
+
@_availability_warning(Stability.BETA)
|
|
1682
1683
|
async def update_native(
|
|
1683
1684
|
self,
|
|
1684
1685
|
*,
|
|
@@ -1696,7 +1697,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1696
1697
|
<p>Update the connector is_native flag.</p>
|
|
1697
1698
|
|
|
1698
1699
|
|
|
1699
|
-
`<https://www.elastic.co/
|
|
1700
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-connector-update-native>`_
|
|
1700
1701
|
|
|
1701
1702
|
:param connector_id: The unique identifier of the connector to be updated
|
|
1702
1703
|
:param is_native:
|
|
@@ -1734,7 +1735,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1734
1735
|
@_rewrite_parameters(
|
|
1735
1736
|
body_fields=("pipeline",),
|
|
1736
1737
|
)
|
|
1737
|
-
@
|
|
1738
|
+
@_availability_warning(Stability.BETA)
|
|
1738
1739
|
async def update_pipeline(
|
|
1739
1740
|
self,
|
|
1740
1741
|
*,
|
|
@@ -1791,7 +1792,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1791
1792
|
@_rewrite_parameters(
|
|
1792
1793
|
body_fields=("scheduling",),
|
|
1793
1794
|
)
|
|
1794
|
-
@
|
|
1795
|
+
@_availability_warning(Stability.BETA)
|
|
1795
1796
|
async def update_scheduling(
|
|
1796
1797
|
self,
|
|
1797
1798
|
*,
|
|
@@ -1847,7 +1848,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1847
1848
|
@_rewrite_parameters(
|
|
1848
1849
|
body_fields=("service_type",),
|
|
1849
1850
|
)
|
|
1850
|
-
@
|
|
1851
|
+
@_availability_warning(Stability.BETA)
|
|
1851
1852
|
async def update_service_type(
|
|
1852
1853
|
self,
|
|
1853
1854
|
*,
|
|
@@ -1903,7 +1904,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1903
1904
|
@_rewrite_parameters(
|
|
1904
1905
|
body_fields=("status",),
|
|
1905
1906
|
)
|
|
1906
|
-
@
|
|
1907
|
+
@_availability_warning(Stability.EXPERIMENTAL)
|
|
1907
1908
|
async def update_status(
|
|
1908
1909
|
self,
|
|
1909
1910
|
*,
|
|
@@ -30,7 +30,7 @@ class DanglingIndicesClient(NamespacedClient):
|
|
|
30
30
|
self,
|
|
31
31
|
*,
|
|
32
32
|
index_uuid: str,
|
|
33
|
-
accept_data_loss: bool,
|
|
33
|
+
accept_data_loss: t.Optional[bool] = None,
|
|
34
34
|
error_trace: t.Optional[bool] = None,
|
|
35
35
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
36
36
|
human: t.Optional[bool] = None,
|
|
@@ -52,13 +52,11 @@ class DanglingIndicesClient(NamespacedClient):
|
|
|
52
52
|
API to find the UUID.
|
|
53
53
|
:param accept_data_loss: This parameter must be set to true to acknowledge that
|
|
54
54
|
it will no longer be possible to recove data from the dangling index.
|
|
55
|
-
:param master_timeout:
|
|
56
|
-
:param timeout:
|
|
55
|
+
:param master_timeout: The period to wait for a connection to the master node.
|
|
56
|
+
:param timeout: The period to wait for a response.
|
|
57
57
|
"""
|
|
58
58
|
if index_uuid in SKIP_IN_PATH:
|
|
59
59
|
raise ValueError("Empty value passed for parameter 'index_uuid'")
|
|
60
|
-
if accept_data_loss is None:
|
|
61
|
-
raise ValueError("Empty value passed for parameter 'accept_data_loss'")
|
|
62
60
|
__path_parts: t.Dict[str, str] = {"index_uuid": _quote(index_uuid)}
|
|
63
61
|
__path = f'/_dangling/{__path_parts["index_uuid"]}'
|
|
64
62
|
__query: t.Dict[str, t.Any] = {}
|
|
@@ -91,7 +89,7 @@ class DanglingIndicesClient(NamespacedClient):
|
|
|
91
89
|
self,
|
|
92
90
|
*,
|
|
93
91
|
index_uuid: str,
|
|
94
|
-
accept_data_loss: bool,
|
|
92
|
+
accept_data_loss: t.Optional[bool] = None,
|
|
95
93
|
error_trace: t.Optional[bool] = None,
|
|
96
94
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
97
95
|
human: t.Optional[bool] = None,
|
|
@@ -116,13 +114,11 @@ class DanglingIndicesClient(NamespacedClient):
|
|
|
116
114
|
from or determine which shard copies are fresh and which are stale, it cannot
|
|
117
115
|
guarantee that the imported data represents the latest state of the index
|
|
118
116
|
when it was last in the cluster.
|
|
119
|
-
:param master_timeout:
|
|
120
|
-
:param timeout:
|
|
117
|
+
:param master_timeout: The period to wait for a connection to the master node.
|
|
118
|
+
:param timeout: The period to wait for a response.
|
|
121
119
|
"""
|
|
122
120
|
if index_uuid in SKIP_IN_PATH:
|
|
123
121
|
raise ValueError("Empty value passed for parameter 'index_uuid'")
|
|
124
|
-
if accept_data_loss is None:
|
|
125
|
-
raise ValueError("Empty value passed for parameter 'accept_data_loss'")
|
|
126
122
|
__path_parts: t.Dict[str, str] = {"index_uuid": _quote(index_uuid)}
|
|
127
123
|
__path = f'/_dangling/{__path_parts["index_uuid"]}'
|
|
128
124
|
__query: t.Dict[str, t.Any] = {}
|
|
@@ -249,7 +249,7 @@ class EqlClient(NamespacedClient):
|
|
|
249
249
|
|
|
250
250
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/eql-search-api.html>`_
|
|
251
251
|
|
|
252
|
-
:param index:
|
|
252
|
+
:param index: Comma-separated list of index names to scope the operation
|
|
253
253
|
:param query: EQL query you wish to run.
|
|
254
254
|
:param allow_no_indices: Whether to ignore if a wildcard indices expression resolves
|
|
255
255
|
into no concrete indices. (This includes `_all` string or when no indices
|
|
@@ -291,7 +291,7 @@ class EqlClient(NamespacedClient):
|
|
|
291
291
|
Defaults to 10
|
|
292
292
|
:param tiebreaker_field: Field used to sort hits with the same timestamp in ascending
|
|
293
293
|
order
|
|
294
|
-
:param timestamp_field: Field containing event timestamp.
|
|
294
|
+
:param timestamp_field: Field containing event timestamp.
|
|
295
295
|
:param wait_for_completion_timeout:
|
|
296
296
|
"""
|
|
297
297
|
if index in SKIP_IN_PATH:
|
|
@@ -20,7 +20,7 @@ import typing as t
|
|
|
20
20
|
from elastic_transport import ObjectApiResponse
|
|
21
21
|
|
|
22
22
|
from ._base import NamespacedClient
|
|
23
|
-
from .utils import Stability,
|
|
23
|
+
from .utils import Stability, _availability_warning, _rewrite_parameters
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
class FeaturesClient(NamespacedClient):
|
|
@@ -76,7 +76,7 @@ class FeaturesClient(NamespacedClient):
|
|
|
76
76
|
)
|
|
77
77
|
|
|
78
78
|
@_rewrite_parameters()
|
|
79
|
-
@
|
|
79
|
+
@_availability_warning(Stability.EXPERIMENTAL)
|
|
80
80
|
async def reset_features(
|
|
81
81
|
self,
|
|
82
82
|
*,
|
|
@@ -23,9 +23,9 @@ from ._base import NamespacedClient
|
|
|
23
23
|
from .utils import (
|
|
24
24
|
SKIP_IN_PATH,
|
|
25
25
|
Stability,
|
|
26
|
+
_availability_warning,
|
|
26
27
|
_quote,
|
|
27
28
|
_rewrite_parameters,
|
|
28
|
-
_stability_warning,
|
|
29
29
|
)
|
|
30
30
|
|
|
31
31
|
|
|
@@ -101,7 +101,7 @@ class FleetClient(NamespacedClient):
|
|
|
101
101
|
@_rewrite_parameters(
|
|
102
102
|
body_name="searches",
|
|
103
103
|
)
|
|
104
|
-
@
|
|
104
|
+
@_availability_warning(Stability.EXPERIMENTAL)
|
|
105
105
|
async def msearch(
|
|
106
106
|
self,
|
|
107
107
|
*,
|
|
@@ -292,7 +292,7 @@ class FleetClient(NamespacedClient):
|
|
|
292
292
|
"from": "from_",
|
|
293
293
|
},
|
|
294
294
|
)
|
|
295
|
-
@
|
|
295
|
+
@_availability_warning(Stability.EXPERIMENTAL)
|
|
296
296
|
async def search(
|
|
297
297
|
self,
|
|
298
298
|
*,
|