elasticsearch 9.1.2__py3-none-any.whl → 9.1.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 +67 -65
- 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 +10 -10
- elasticsearch/_async/client/cluster.py +34 -33
- elasticsearch/_async/client/connector.py +42 -41
- elasticsearch/_async/client/dangling_indices.py +8 -12
- elasticsearch/_async/client/enrich.py +10 -10
- elasticsearch/_async/client/eql.py +10 -10
- elasticsearch/_async/client/esql.py +16 -16
- elasticsearch/_async/client/features.py +6 -6
- elasticsearch/_async/client/fleet.py +8 -12
- elasticsearch/_async/client/graph.py +3 -7
- elasticsearch/_async/client/ilm.py +20 -28
- elasticsearch/_async/client/indices.py +140 -160
- elasticsearch/_async/client/inference.py +30 -126
- elasticsearch/_async/client/ingest.py +9 -9
- elasticsearch/_async/client/license.py +5 -7
- elasticsearch/_async/client/logstash.py +4 -4
- elasticsearch/_async/client/migration.py +6 -6
- elasticsearch/_async/client/ml.py +125 -85
- elasticsearch/_async/client/monitoring.py +4 -3
- elasticsearch/_async/client/nodes.py +15 -15
- elasticsearch/_async/client/query_rules.py +16 -16
- elasticsearch/_async/client/rollup.py +21 -21
- elasticsearch/_async/client/search_application.py +19 -19
- elasticsearch/_async/client/searchable_snapshots.py +10 -10
- elasticsearch/_async/client/security.py +8 -7
- elasticsearch/_async/client/shutdown.py +9 -4
- elasticsearch/_async/client/simulate.py +4 -4
- elasticsearch/_async/client/slm.py +18 -22
- elasticsearch/_async/client/snapshot.py +20 -20
- elasticsearch/_async/client/sql.py +10 -10
- elasticsearch/_async/client/streams.py +6 -6
- elasticsearch/_async/client/synonyms.py +10 -10
- elasticsearch/_async/client/tasks.py +8 -8
- elasticsearch/_async/client/text_structure.py +13 -9
- elasticsearch/_async/client/transform.py +51 -12
- elasticsearch/_async/client/utils.py +4 -2
- elasticsearch/_async/client/watcher.py +26 -26
- elasticsearch/_async/client/xpack.py +6 -5
- elasticsearch/_sync/client/__init__.py +69 -65
- 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 +10 -10
- elasticsearch/_sync/client/cluster.py +34 -33
- elasticsearch/_sync/client/connector.py +42 -41
- elasticsearch/_sync/client/dangling_indices.py +8 -12
- elasticsearch/_sync/client/enrich.py +10 -10
- elasticsearch/_sync/client/eql.py +10 -10
- elasticsearch/_sync/client/esql.py +16 -16
- elasticsearch/_sync/client/features.py +6 -6
- elasticsearch/_sync/client/fleet.py +8 -12
- elasticsearch/_sync/client/graph.py +3 -7
- elasticsearch/_sync/client/ilm.py +20 -28
- elasticsearch/_sync/client/indices.py +140 -160
- elasticsearch/_sync/client/inference.py +30 -126
- elasticsearch/_sync/client/ingest.py +9 -9
- elasticsearch/_sync/client/license.py +5 -7
- elasticsearch/_sync/client/logstash.py +4 -4
- elasticsearch/_sync/client/migration.py +6 -6
- elasticsearch/_sync/client/ml.py +125 -85
- elasticsearch/_sync/client/monitoring.py +4 -3
- elasticsearch/_sync/client/nodes.py +15 -15
- elasticsearch/_sync/client/query_rules.py +16 -16
- elasticsearch/_sync/client/rollup.py +21 -21
- elasticsearch/_sync/client/search_application.py +19 -19
- elasticsearch/_sync/client/searchable_snapshots.py +10 -10
- elasticsearch/_sync/client/security.py +8 -7
- elasticsearch/_sync/client/shutdown.py +9 -4
- elasticsearch/_sync/client/simulate.py +4 -4
- elasticsearch/_sync/client/slm.py +18 -22
- elasticsearch/_sync/client/snapshot.py +20 -20
- elasticsearch/_sync/client/sql.py +10 -10
- elasticsearch/_sync/client/streams.py +6 -6
- elasticsearch/_sync/client/synonyms.py +10 -10
- elasticsearch/_sync/client/tasks.py +8 -8
- elasticsearch/_sync/client/text_structure.py +13 -9
- elasticsearch/_sync/client/transform.py +51 -12
- elasticsearch/_sync/client/utils.py +16 -2
- elasticsearch/_sync/client/watcher.py +26 -26
- elasticsearch/_sync/client/xpack.py +6 -5
- 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 +3 -3
- elasticsearch/dsl/async_connections.py +1 -2
- elasticsearch/dsl/connections.py +1 -2
- elasticsearch/dsl/document_base.py +1 -1
- elasticsearch/dsl/field.py +1 -9
- elasticsearch/dsl/query.py +24 -5
- elasticsearch/dsl/serializer.py +1 -2
- elasticsearch/dsl/types.py +11 -43
- 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-9.1.2.dist-info → elasticsearch-9.1.3.dist-info}/METADATA +1 -1
- elasticsearch-9.1.3.dist-info/RECORD +165 -0
- {elasticsearch-9.1.2.dist-info → elasticsearch-9.1.3.dist-info}/WHEEL +1 -1
- elasticsearch-9.1.2.dist-info/RECORD +0 -165
- {elasticsearch-9.1.2.dist-info → elasticsearch-9.1.3.dist-info}/licenses/LICENSE +0 -0
- {elasticsearch-9.1.2.dist-info → elasticsearch-9.1.3.dist-info}/licenses/NOTICE +0 -0
|
@@ -44,7 +44,7 @@ class InferenceClient(NamespacedClient):
|
|
|
44
44
|
"""
|
|
45
45
|
.. raw:: html
|
|
46
46
|
|
|
47
|
-
<p>Perform completion inference on the service
|
|
47
|
+
<p>Perform completion inference on the service.</p>
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-inference>`_
|
|
@@ -78,11 +78,7 @@ class InferenceClient(NamespacedClient):
|
|
|
78
78
|
__body["input"] = input
|
|
79
79
|
if task_settings is not None:
|
|
80
80
|
__body["task_settings"] = task_settings
|
|
81
|
-
|
|
82
|
-
__body = None # type: ignore[assignment]
|
|
83
|
-
__headers = {"accept": "application/json"}
|
|
84
|
-
if __body is not None:
|
|
85
|
-
__headers["content-type"] = "application/json"
|
|
81
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
86
82
|
return await self.perform_request( # type: ignore[return-value]
|
|
87
83
|
"POST",
|
|
88
84
|
__path,
|
|
@@ -120,7 +116,7 @@ class InferenceClient(NamespacedClient):
|
|
|
120
116
|
"""
|
|
121
117
|
.. raw:: html
|
|
122
118
|
|
|
123
|
-
<p>Delete an inference endpoint
|
|
119
|
+
<p>Delete an inference endpoint.</p>
|
|
124
120
|
|
|
125
121
|
|
|
126
122
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-delete>`_
|
|
@@ -194,7 +190,7 @@ class InferenceClient(NamespacedClient):
|
|
|
194
190
|
"""
|
|
195
191
|
.. raw:: html
|
|
196
192
|
|
|
197
|
-
<p>Get an inference endpoint
|
|
193
|
+
<p>Get an inference endpoint.</p>
|
|
198
194
|
|
|
199
195
|
|
|
200
196
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-get>`_
|
|
@@ -338,11 +334,7 @@ class InferenceClient(NamespacedClient):
|
|
|
338
334
|
__body["query"] = query
|
|
339
335
|
if task_settings is not None:
|
|
340
336
|
__body["task_settings"] = task_settings
|
|
341
|
-
|
|
342
|
-
__body = None # type: ignore[assignment]
|
|
343
|
-
__headers = {"accept": "application/json"}
|
|
344
|
-
if __body is not None:
|
|
345
|
-
__headers["content-type"] = "application/json"
|
|
337
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
346
338
|
return await self.perform_request( # type: ignore[return-value]
|
|
347
339
|
"POST",
|
|
348
340
|
__path,
|
|
@@ -546,11 +538,7 @@ class InferenceClient(NamespacedClient):
|
|
|
546
538
|
__body["chunking_settings"] = chunking_settings
|
|
547
539
|
if task_settings is not None:
|
|
548
540
|
__body["task_settings"] = task_settings
|
|
549
|
-
|
|
550
|
-
__body = None # type: ignore[assignment]
|
|
551
|
-
__headers = {"accept": "application/json"}
|
|
552
|
-
if __body is not None:
|
|
553
|
-
__headers["content-type"] = "application/json"
|
|
541
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
554
542
|
return await self.perform_request( # type: ignore[return-value]
|
|
555
543
|
"PUT",
|
|
556
544
|
__path,
|
|
@@ -646,11 +634,7 @@ class InferenceClient(NamespacedClient):
|
|
|
646
634
|
__body["chunking_settings"] = chunking_settings
|
|
647
635
|
if task_settings is not None:
|
|
648
636
|
__body["task_settings"] = task_settings
|
|
649
|
-
|
|
650
|
-
__body = None # type: ignore[assignment]
|
|
651
|
-
__headers = {"accept": "application/json"}
|
|
652
|
-
if __body is not None:
|
|
653
|
-
__headers["content-type"] = "application/json"
|
|
637
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
654
638
|
return await self.perform_request( # type: ignore[return-value]
|
|
655
639
|
"PUT",
|
|
656
640
|
__path,
|
|
@@ -752,11 +736,7 @@ class InferenceClient(NamespacedClient):
|
|
|
752
736
|
__body["chunking_settings"] = chunking_settings
|
|
753
737
|
if task_settings is not None:
|
|
754
738
|
__body["task_settings"] = task_settings
|
|
755
|
-
|
|
756
|
-
__body = None # type: ignore[assignment]
|
|
757
|
-
__headers = {"accept": "application/json"}
|
|
758
|
-
if __body is not None:
|
|
759
|
-
__headers["content-type"] = "application/json"
|
|
739
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
760
740
|
return await self.perform_request( # type: ignore[return-value]
|
|
761
741
|
"PUT",
|
|
762
742
|
__path,
|
|
@@ -849,11 +829,7 @@ class InferenceClient(NamespacedClient):
|
|
|
849
829
|
__body["chunking_settings"] = chunking_settings
|
|
850
830
|
if task_settings is not None:
|
|
851
831
|
__body["task_settings"] = task_settings
|
|
852
|
-
|
|
853
|
-
__body = None # type: ignore[assignment]
|
|
854
|
-
__headers = {"accept": "application/json"}
|
|
855
|
-
if __body is not None:
|
|
856
|
-
__headers["content-type"] = "application/json"
|
|
832
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
857
833
|
return await self.perform_request( # type: ignore[return-value]
|
|
858
834
|
"PUT",
|
|
859
835
|
__path,
|
|
@@ -945,11 +921,7 @@ class InferenceClient(NamespacedClient):
|
|
|
945
921
|
__body["chunking_settings"] = chunking_settings
|
|
946
922
|
if task_settings is not None:
|
|
947
923
|
__body["task_settings"] = task_settings
|
|
948
|
-
|
|
949
|
-
__body = None # type: ignore[assignment]
|
|
950
|
-
__headers = {"accept": "application/json"}
|
|
951
|
-
if __body is not None:
|
|
952
|
-
__headers["content-type"] = "application/json"
|
|
924
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
953
925
|
return await self.perform_request( # type: ignore[return-value]
|
|
954
926
|
"PUT",
|
|
955
927
|
__path,
|
|
@@ -1049,11 +1021,7 @@ class InferenceClient(NamespacedClient):
|
|
|
1049
1021
|
__body["chunking_settings"] = chunking_settings
|
|
1050
1022
|
if task_settings is not None:
|
|
1051
1023
|
__body["task_settings"] = task_settings
|
|
1052
|
-
|
|
1053
|
-
__body = None # type: ignore[assignment]
|
|
1054
|
-
__headers = {"accept": "application/json"}
|
|
1055
|
-
if __body is not None:
|
|
1056
|
-
__headers["content-type"] = "application/json"
|
|
1024
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
1057
1025
|
return await self.perform_request( # type: ignore[return-value]
|
|
1058
1026
|
"PUT",
|
|
1059
1027
|
__path,
|
|
@@ -1143,11 +1111,7 @@ class InferenceClient(NamespacedClient):
|
|
|
1143
1111
|
__body["chunking_settings"] = chunking_settings
|
|
1144
1112
|
if task_settings is not None:
|
|
1145
1113
|
__body["task_settings"] = task_settings
|
|
1146
|
-
|
|
1147
|
-
__body = None # type: ignore[assignment]
|
|
1148
|
-
__headers = {"accept": "application/json"}
|
|
1149
|
-
if __body is not None:
|
|
1150
|
-
__headers["content-type"] = "application/json"
|
|
1114
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
1151
1115
|
return await self.perform_request( # type: ignore[return-value]
|
|
1152
1116
|
"PUT",
|
|
1153
1117
|
__path,
|
|
@@ -1274,11 +1238,7 @@ class InferenceClient(NamespacedClient):
|
|
|
1274
1238
|
__body["chunking_settings"] = chunking_settings
|
|
1275
1239
|
if task_settings is not None:
|
|
1276
1240
|
__body["task_settings"] = task_settings
|
|
1277
|
-
|
|
1278
|
-
__body = None # type: ignore[assignment]
|
|
1279
|
-
__headers = {"accept": "application/json"}
|
|
1280
|
-
if __body is not None:
|
|
1281
|
-
__headers["content-type"] = "application/json"
|
|
1241
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
1282
1242
|
return await self.perform_request( # type: ignore[return-value]
|
|
1283
1243
|
"PUT",
|
|
1284
1244
|
__path,
|
|
@@ -1358,11 +1318,7 @@ class InferenceClient(NamespacedClient):
|
|
|
1358
1318
|
__body["service_settings"] = service_settings
|
|
1359
1319
|
if chunking_settings is not None:
|
|
1360
1320
|
__body["chunking_settings"] = chunking_settings
|
|
1361
|
-
|
|
1362
|
-
__body = None # type: ignore[assignment]
|
|
1363
|
-
__headers = {"accept": "application/json"}
|
|
1364
|
-
if __body is not None:
|
|
1365
|
-
__headers["content-type"] = "application/json"
|
|
1321
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
1366
1322
|
return await self.perform_request( # type: ignore[return-value]
|
|
1367
1323
|
"PUT",
|
|
1368
1324
|
__path,
|
|
@@ -1470,11 +1426,7 @@ class InferenceClient(NamespacedClient):
|
|
|
1470
1426
|
__body["chunking_settings"] = chunking_settings
|
|
1471
1427
|
if task_settings is not None:
|
|
1472
1428
|
__body["task_settings"] = task_settings
|
|
1473
|
-
|
|
1474
|
-
__body = None # type: ignore[assignment]
|
|
1475
|
-
__headers = {"accept": "application/json"}
|
|
1476
|
-
if __body is not None:
|
|
1477
|
-
__headers["content-type"] = "application/json"
|
|
1429
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
1478
1430
|
return await self.perform_request( # type: ignore[return-value]
|
|
1479
1431
|
"PUT",
|
|
1480
1432
|
__path,
|
|
@@ -1568,11 +1520,7 @@ class InferenceClient(NamespacedClient):
|
|
|
1568
1520
|
__body["service_settings"] = service_settings
|
|
1569
1521
|
if chunking_settings is not None:
|
|
1570
1522
|
__body["chunking_settings"] = chunking_settings
|
|
1571
|
-
|
|
1572
|
-
__body = None # type: ignore[assignment]
|
|
1573
|
-
__headers = {"accept": "application/json"}
|
|
1574
|
-
if __body is not None:
|
|
1575
|
-
__headers["content-type"] = "application/json"
|
|
1523
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
1576
1524
|
return await self.perform_request( # type: ignore[return-value]
|
|
1577
1525
|
"PUT",
|
|
1578
1526
|
__path,
|
|
@@ -1654,11 +1602,7 @@ class InferenceClient(NamespacedClient):
|
|
|
1654
1602
|
__body["service_settings"] = service_settings
|
|
1655
1603
|
if chunking_settings is not None:
|
|
1656
1604
|
__body["chunking_settings"] = chunking_settings
|
|
1657
|
-
|
|
1658
|
-
__body = None # type: ignore[assignment]
|
|
1659
|
-
__headers = {"accept": "application/json"}
|
|
1660
|
-
if __body is not None:
|
|
1661
|
-
__headers["content-type"] = "application/json"
|
|
1605
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
1662
1606
|
return await self.perform_request( # type: ignore[return-value]
|
|
1663
1607
|
"PUT",
|
|
1664
1608
|
__path,
|
|
@@ -1752,11 +1696,7 @@ class InferenceClient(NamespacedClient):
|
|
|
1752
1696
|
__body["chunking_settings"] = chunking_settings
|
|
1753
1697
|
if task_settings is not None:
|
|
1754
1698
|
__body["task_settings"] = task_settings
|
|
1755
|
-
|
|
1756
|
-
__body = None # type: ignore[assignment]
|
|
1757
|
-
__headers = {"accept": "application/json"}
|
|
1758
|
-
if __body is not None:
|
|
1759
|
-
__headers["content-type"] = "application/json"
|
|
1699
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
1760
1700
|
return await self.perform_request( # type: ignore[return-value]
|
|
1761
1701
|
"PUT",
|
|
1762
1702
|
__path,
|
|
@@ -1884,11 +1824,7 @@ class InferenceClient(NamespacedClient):
|
|
|
1884
1824
|
__body["chunking_settings"] = chunking_settings
|
|
1885
1825
|
if task_settings is not None:
|
|
1886
1826
|
__body["task_settings"] = task_settings
|
|
1887
|
-
|
|
1888
|
-
__body = None # type: ignore[assignment]
|
|
1889
|
-
__headers = {"accept": "application/json"}
|
|
1890
|
-
if __body is not None:
|
|
1891
|
-
__headers["content-type"] = "application/json"
|
|
1827
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
1892
1828
|
return await self.perform_request( # type: ignore[return-value]
|
|
1893
1829
|
"PUT",
|
|
1894
1830
|
__path,
|
|
@@ -1980,11 +1916,7 @@ class InferenceClient(NamespacedClient):
|
|
|
1980
1916
|
__body["chunking_settings"] = chunking_settings
|
|
1981
1917
|
if task_settings is not None:
|
|
1982
1918
|
__body["task_settings"] = task_settings
|
|
1983
|
-
|
|
1984
|
-
__body = None # type: ignore[assignment]
|
|
1985
|
-
__headers = {"accept": "application/json"}
|
|
1986
|
-
if __body is not None:
|
|
1987
|
-
__headers["content-type"] = "application/json"
|
|
1919
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
1988
1920
|
return await self.perform_request( # type: ignore[return-value]
|
|
1989
1921
|
"PUT",
|
|
1990
1922
|
__path,
|
|
@@ -2066,11 +1998,7 @@ class InferenceClient(NamespacedClient):
|
|
|
2066
1998
|
__body["service_settings"] = service_settings
|
|
2067
1999
|
if chunking_settings is not None:
|
|
2068
2000
|
__body["chunking_settings"] = chunking_settings
|
|
2069
|
-
|
|
2070
|
-
__body = None # type: ignore[assignment]
|
|
2071
|
-
__headers = {"accept": "application/json"}
|
|
2072
|
-
if __body is not None:
|
|
2073
|
-
__headers["content-type"] = "application/json"
|
|
2001
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
2074
2002
|
return await self.perform_request( # type: ignore[return-value]
|
|
2075
2003
|
"PUT",
|
|
2076
2004
|
__path,
|
|
@@ -2164,11 +2092,7 @@ class InferenceClient(NamespacedClient):
|
|
|
2164
2092
|
__body["chunking_settings"] = chunking_settings
|
|
2165
2093
|
if task_settings is not None:
|
|
2166
2094
|
__body["task_settings"] = task_settings
|
|
2167
|
-
|
|
2168
|
-
__body = None # type: ignore[assignment]
|
|
2169
|
-
__headers = {"accept": "application/json"}
|
|
2170
|
-
if __body is not None:
|
|
2171
|
-
__headers["content-type"] = "application/json"
|
|
2095
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
2172
2096
|
return await self.perform_request( # type: ignore[return-value]
|
|
2173
2097
|
"PUT",
|
|
2174
2098
|
__path,
|
|
@@ -2259,11 +2183,7 @@ class InferenceClient(NamespacedClient):
|
|
|
2259
2183
|
__body["chunking_settings"] = chunking_settings
|
|
2260
2184
|
if task_settings is not None:
|
|
2261
2185
|
__body["task_settings"] = task_settings
|
|
2262
|
-
|
|
2263
|
-
__body = None # type: ignore[assignment]
|
|
2264
|
-
__headers = {"accept": "application/json"}
|
|
2265
|
-
if __body is not None:
|
|
2266
|
-
__headers["content-type"] = "application/json"
|
|
2186
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
2267
2187
|
return await self.perform_request( # type: ignore[return-value]
|
|
2268
2188
|
"PUT",
|
|
2269
2189
|
__path,
|
|
@@ -2343,11 +2263,7 @@ class InferenceClient(NamespacedClient):
|
|
|
2343
2263
|
__body["service"] = service
|
|
2344
2264
|
if service_settings is not None:
|
|
2345
2265
|
__body["service_settings"] = service_settings
|
|
2346
|
-
|
|
2347
|
-
__body = None # type: ignore[assignment]
|
|
2348
|
-
__headers = {"accept": "application/json"}
|
|
2349
|
-
if __body is not None:
|
|
2350
|
-
__headers["content-type"] = "application/json"
|
|
2266
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
2351
2267
|
return await self.perform_request( # type: ignore[return-value]
|
|
2352
2268
|
"PUT",
|
|
2353
2269
|
__path,
|
|
@@ -2378,7 +2294,7 @@ class InferenceClient(NamespacedClient):
|
|
|
2378
2294
|
"""
|
|
2379
2295
|
.. raw:: html
|
|
2380
2296
|
|
|
2381
|
-
<p>Perform reranking inference on the service
|
|
2297
|
+
<p>Perform reranking inference on the service.</p>
|
|
2382
2298
|
|
|
2383
2299
|
|
|
2384
2300
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-inference>`_
|
|
@@ -2420,11 +2336,7 @@ class InferenceClient(NamespacedClient):
|
|
|
2420
2336
|
__body["query"] = query
|
|
2421
2337
|
if task_settings is not None:
|
|
2422
2338
|
__body["task_settings"] = task_settings
|
|
2423
|
-
|
|
2424
|
-
__body = None # type: ignore[assignment]
|
|
2425
|
-
__headers = {"accept": "application/json"}
|
|
2426
|
-
if __body is not None:
|
|
2427
|
-
__headers["content-type"] = "application/json"
|
|
2339
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
2428
2340
|
return await self.perform_request( # type: ignore[return-value]
|
|
2429
2341
|
"POST",
|
|
2430
2342
|
__path,
|
|
@@ -2454,7 +2366,7 @@ class InferenceClient(NamespacedClient):
|
|
|
2454
2366
|
"""
|
|
2455
2367
|
.. raw:: html
|
|
2456
2368
|
|
|
2457
|
-
<p>Perform sparse embedding inference on the service
|
|
2369
|
+
<p>Perform sparse embedding inference on the service.</p>
|
|
2458
2370
|
|
|
2459
2371
|
|
|
2460
2372
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-inference>`_
|
|
@@ -2488,11 +2400,7 @@ class InferenceClient(NamespacedClient):
|
|
|
2488
2400
|
__body["input"] = input
|
|
2489
2401
|
if task_settings is not None:
|
|
2490
2402
|
__body["task_settings"] = task_settings
|
|
2491
|
-
|
|
2492
|
-
__body = None # type: ignore[assignment]
|
|
2493
|
-
__headers = {"accept": "application/json"}
|
|
2494
|
-
if __body is not None:
|
|
2495
|
-
__headers["content-type"] = "application/json"
|
|
2403
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
2496
2404
|
return await self.perform_request( # type: ignore[return-value]
|
|
2497
2405
|
"POST",
|
|
2498
2406
|
__path,
|
|
@@ -2523,7 +2431,7 @@ class InferenceClient(NamespacedClient):
|
|
|
2523
2431
|
"""
|
|
2524
2432
|
.. raw:: html
|
|
2525
2433
|
|
|
2526
|
-
<p>Perform text embedding inference on the service
|
|
2434
|
+
<p>Perform text embedding inference on the service.</p>
|
|
2527
2435
|
|
|
2528
2436
|
|
|
2529
2437
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-inference>`_
|
|
@@ -2566,11 +2474,7 @@ class InferenceClient(NamespacedClient):
|
|
|
2566
2474
|
__body["input_type"] = input_type
|
|
2567
2475
|
if task_settings is not None:
|
|
2568
2476
|
__body["task_settings"] = task_settings
|
|
2569
|
-
|
|
2570
|
-
__body = None # type: ignore[assignment]
|
|
2571
|
-
__headers = {"accept": "application/json"}
|
|
2572
|
-
if __body is not None:
|
|
2573
|
-
__headers["content-type"] = "application/json"
|
|
2477
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
2574
2478
|
return await self.perform_request( # type: ignore[return-value]
|
|
2575
2479
|
"POST",
|
|
2576
2480
|
__path,
|
|
@@ -151,8 +151,8 @@ class IngestClient(NamespacedClient):
|
|
|
151
151
|
"""
|
|
152
152
|
.. raw:: html
|
|
153
153
|
|
|
154
|
-
<p>Delete pipelines
|
|
155
|
-
Delete one or more ingest pipelines.</p>
|
|
154
|
+
<p>Delete pipelines.</p>
|
|
155
|
+
<p>Delete one or more ingest pipelines.</p>
|
|
156
156
|
|
|
157
157
|
|
|
158
158
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-delete-pipeline>`_
|
|
@@ -204,8 +204,8 @@ class IngestClient(NamespacedClient):
|
|
|
204
204
|
"""
|
|
205
205
|
.. raw:: html
|
|
206
206
|
|
|
207
|
-
<p>Get GeoIP statistics
|
|
208
|
-
Get download statistics for GeoIP2 databases that are used with the GeoIP processor.</p>
|
|
207
|
+
<p>Get GeoIP statistics.</p>
|
|
208
|
+
<p>Get download statistics for GeoIP2 databases that are used with the GeoIP processor.</p>
|
|
209
209
|
|
|
210
210
|
|
|
211
211
|
`<https://www.elastic.co/docs/reference/enrich-processor/geoip-processor>`_
|
|
@@ -355,7 +355,7 @@ class IngestClient(NamespacedClient):
|
|
|
355
355
|
:param master_timeout: Period to wait for a connection to the master node. If
|
|
356
356
|
no response is received before the timeout expires, the request fails and
|
|
357
357
|
returns an error.
|
|
358
|
-
:param summary: Return pipelines without their definitions
|
|
358
|
+
:param summary: Return pipelines without their definitions
|
|
359
359
|
"""
|
|
360
360
|
__path_parts: t.Dict[str, str]
|
|
361
361
|
if id not in SKIP_IN_PATH:
|
|
@@ -399,8 +399,8 @@ class IngestClient(NamespacedClient):
|
|
|
399
399
|
"""
|
|
400
400
|
.. raw:: html
|
|
401
401
|
|
|
402
|
-
<p>Run a grok processor
|
|
403
|
-
Extract structured fields out of a single text field within a document.
|
|
402
|
+
<p>Run a grok processor.</p>
|
|
403
|
+
<p>Extract structured fields out of a single text field within a document.
|
|
404
404
|
You must choose which field to extract matched fields from, as well as the grok pattern you expect will match.
|
|
405
405
|
A grok pattern is like a regular expression that supports aliased expressions that can be reused.</p>
|
|
406
406
|
|
|
@@ -609,8 +609,8 @@ class IngestClient(NamespacedClient):
|
|
|
609
609
|
"""
|
|
610
610
|
.. raw:: html
|
|
611
611
|
|
|
612
|
-
<p>Create or update a pipeline
|
|
613
|
-
Changes made using this API take effect immediately.</p>
|
|
612
|
+
<p>Create or update a pipeline.</p>
|
|
613
|
+
<p>Changes made using this API take effect immediately.</p>
|
|
614
614
|
|
|
615
615
|
|
|
616
616
|
`<https://www.elastic.co/docs/manage-data/ingest/transform-enrich/ingest-pipelines>`_
|
|
@@ -310,8 +310,7 @@ class LicenseClient(NamespacedClient):
|
|
|
310
310
|
|
|
311
311
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-post-start-basic>`_
|
|
312
312
|
|
|
313
|
-
:param acknowledge:
|
|
314
|
-
false)
|
|
313
|
+
:param acknowledge: Whether the user has acknowledged acknowledge messages
|
|
315
314
|
:param master_timeout: Period to wait for a connection to the master node.
|
|
316
315
|
:param timeout: Period to wait for a response. If no response is received before
|
|
317
316
|
the timeout expires, the request fails and returns an error.
|
|
@@ -358,8 +357,8 @@ class LicenseClient(NamespacedClient):
|
|
|
358
357
|
"""
|
|
359
358
|
.. raw:: html
|
|
360
359
|
|
|
361
|
-
<p>Start a trial
|
|
362
|
-
Start a 30-day trial, which gives access to all subscription features.</p>
|
|
360
|
+
<p>Start a trial.</p>
|
|
361
|
+
<p>Start a 30-day trial, which gives access to all subscription features.</p>
|
|
363
362
|
<p>NOTE: You are allowed to start a trial only if your cluster has not already activated a trial for the current major product version.
|
|
364
363
|
For example, if you have already activated a trial for v8.0, you cannot start a new trial until v9.0. You can, however, request an extended trial at <a href="https://www.elastic.co/trialextension">https://www.elastic.co/trialextension</a>.</p>
|
|
365
364
|
<p>To check the status of your trial, use the get trial status API.</p>
|
|
@@ -367,10 +366,9 @@ class LicenseClient(NamespacedClient):
|
|
|
367
366
|
|
|
368
367
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-post-start-trial>`_
|
|
369
368
|
|
|
370
|
-
:param acknowledge:
|
|
371
|
-
false)
|
|
369
|
+
:param acknowledge: Whether the user has acknowledged acknowledge messages
|
|
372
370
|
:param master_timeout: Period to wait for a connection to the master node.
|
|
373
|
-
:param type: The type of trial license to generate
|
|
371
|
+
:param type: The type of trial license to generate
|
|
374
372
|
"""
|
|
375
373
|
__path_parts: t.Dict[str, str] = {}
|
|
376
374
|
__path = "/_license/start_trial"
|
|
@@ -38,8 +38,8 @@ class LogstashClient(NamespacedClient):
|
|
|
38
38
|
"""
|
|
39
39
|
.. raw:: html
|
|
40
40
|
|
|
41
|
-
<p>Delete a Logstash pipeline
|
|
42
|
-
Delete a pipeline that is used for Logstash Central Management.
|
|
41
|
+
<p>Delete a Logstash pipeline.</p>
|
|
42
|
+
<p>Delete a pipeline that is used for Logstash Central Management.
|
|
43
43
|
If the request succeeds, you receive an empty response with an appropriate status code.</p>
|
|
44
44
|
|
|
45
45
|
|
|
@@ -83,8 +83,8 @@ class LogstashClient(NamespacedClient):
|
|
|
83
83
|
"""
|
|
84
84
|
.. raw:: html
|
|
85
85
|
|
|
86
|
-
<p>Get Logstash pipelines
|
|
87
|
-
Get pipelines that are used for Logstash Central Management.</p>
|
|
86
|
+
<p>Get Logstash pipelines.</p>
|
|
87
|
+
<p>Get pipelines that are used for Logstash Central Management.</p>
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-logstash-get-pipeline>`_
|
|
@@ -38,8 +38,8 @@ class MigrationClient(NamespacedClient):
|
|
|
38
38
|
"""
|
|
39
39
|
.. raw:: html
|
|
40
40
|
|
|
41
|
-
<p>Get deprecation information
|
|
42
|
-
Get information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version.</p>
|
|
41
|
+
<p>Get deprecation information.</p>
|
|
42
|
+
<p>Get information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version.</p>
|
|
43
43
|
<p>TIP: This APIs is designed for indirect use by the Upgrade Assistant.
|
|
44
44
|
You are strongly recommended to use the Upgrade Assistant.</p>
|
|
45
45
|
|
|
@@ -87,8 +87,8 @@ class MigrationClient(NamespacedClient):
|
|
|
87
87
|
"""
|
|
88
88
|
.. raw:: html
|
|
89
89
|
|
|
90
|
-
<p>Get feature migration information
|
|
91
|
-
Version upgrades sometimes require changes to how features store configuration information and data in system indices.
|
|
90
|
+
<p>Get feature migration information.</p>
|
|
91
|
+
<p>Version upgrades sometimes require changes to how features store configuration information and data in system indices.
|
|
92
92
|
Check which features need to be migrated and the status of any migrations that are in progress.</p>
|
|
93
93
|
<p>TIP: This API is designed for indirect use by the Upgrade Assistant.
|
|
94
94
|
You are strongly recommended to use the Upgrade Assistant.</p>
|
|
@@ -129,8 +129,8 @@ class MigrationClient(NamespacedClient):
|
|
|
129
129
|
"""
|
|
130
130
|
.. raw:: html
|
|
131
131
|
|
|
132
|
-
<p>Start the feature migration
|
|
133
|
-
Version upgrades sometimes require changes to how features store configuration information and data in system indices.
|
|
132
|
+
<p>Start the feature migration.</p>
|
|
133
|
+
<p>Version upgrades sometimes require changes to how features store configuration information and data in system indices.
|
|
134
134
|
This API starts the automatic migration process.</p>
|
|
135
135
|
<p>Some functionality might be temporarily unavailable during the migration process.</p>
|
|
136
136
|
<p>TIP: The API is designed for indirect use by the Upgrade Assistant. We strongly recommend you use the Upgrade Assistant.</p>
|