elasticsearch 8.12.1__py3-none-any.whl → 8.13.1__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 +7 -0
- elasticsearch/_async/client/__init__.py +477 -128
- elasticsearch/_async/client/_base.py +41 -1
- elasticsearch/_async/client/async_search.py +40 -12
- elasticsearch/_async/client/autoscaling.py +37 -11
- elasticsearch/_async/client/cat.py +260 -69
- elasticsearch/_async/client/ccr.py +123 -38
- elasticsearch/_async/client/cluster.py +153 -42
- elasticsearch/_async/client/dangling_indices.py +27 -8
- elasticsearch/_async/client/enrich.py +48 -14
- elasticsearch/_async/client/eql.py +38 -12
- elasticsearch/_async/client/esql.py +10 -2
- elasticsearch/_async/client/features.py +17 -4
- elasticsearch/_async/client/fleet.py +30 -7
- elasticsearch/_async/client/graph.py +11 -3
- elasticsearch/_async/client/ilm.py +101 -29
- elasticsearch/_async/client/indices.py +688 -181
- elasticsearch/_async/client/inference.py +111 -44
- elasticsearch/_async/client/ingest.py +59 -16
- elasticsearch/_async/client/license.py +58 -14
- elasticsearch/_async/client/logstash.py +31 -9
- elasticsearch/_async/client/migration.py +28 -7
- elasticsearch/_async/client/ml.py +781 -214
- elasticsearch/_async/client/monitoring.py +10 -2
- elasticsearch/_async/client/nodes.py +103 -29
- elasticsearch/_async/client/query_ruleset.py +37 -11
- elasticsearch/_async/client/rollup.py +79 -24
- elasticsearch/_async/client/search_application.py +76 -23
- elasticsearch/_async/client/searchable_snapshots.py +49 -12
- elasticsearch/_async/client/security.py +544 -143
- elasticsearch/_async/client/shutdown.py +28 -6
- elasticsearch/_async/client/slm.py +80 -22
- elasticsearch/_async/client/snapshot.py +140 -54
- elasticsearch/_async/client/sql.py +55 -15
- elasticsearch/_async/client/ssl.py +9 -2
- elasticsearch/_async/client/synonyms.py +75 -21
- elasticsearch/_async/client/tasks.py +29 -8
- elasticsearch/_async/client/text_structure.py +74 -2
- elasticsearch/_async/client/transform.py +106 -32
- elasticsearch/_async/client/watcher.py +110 -31
- elasticsearch/_async/client/xpack.py +16 -4
- elasticsearch/_async/helpers.py +1 -1
- elasticsearch/_otel.py +92 -0
- elasticsearch/_sync/client/__init__.py +477 -128
- elasticsearch/_sync/client/_base.py +41 -1
- elasticsearch/_sync/client/async_search.py +40 -12
- elasticsearch/_sync/client/autoscaling.py +37 -11
- elasticsearch/_sync/client/cat.py +260 -69
- elasticsearch/_sync/client/ccr.py +123 -38
- elasticsearch/_sync/client/cluster.py +153 -42
- elasticsearch/_sync/client/dangling_indices.py +27 -8
- elasticsearch/_sync/client/enrich.py +48 -14
- elasticsearch/_sync/client/eql.py +38 -12
- elasticsearch/_sync/client/esql.py +10 -2
- elasticsearch/_sync/client/features.py +17 -4
- elasticsearch/_sync/client/fleet.py +30 -7
- elasticsearch/_sync/client/graph.py +11 -3
- elasticsearch/_sync/client/ilm.py +101 -29
- elasticsearch/_sync/client/indices.py +688 -181
- elasticsearch/_sync/client/inference.py +111 -44
- elasticsearch/_sync/client/ingest.py +59 -16
- elasticsearch/_sync/client/license.py +58 -14
- elasticsearch/_sync/client/logstash.py +31 -9
- elasticsearch/_sync/client/migration.py +28 -7
- elasticsearch/_sync/client/ml.py +781 -214
- elasticsearch/_sync/client/monitoring.py +10 -2
- elasticsearch/_sync/client/nodes.py +103 -29
- elasticsearch/_sync/client/query_ruleset.py +37 -11
- elasticsearch/_sync/client/rollup.py +79 -24
- elasticsearch/_sync/client/search_application.py +76 -23
- elasticsearch/_sync/client/searchable_snapshots.py +49 -12
- elasticsearch/_sync/client/security.py +544 -143
- elasticsearch/_sync/client/shutdown.py +28 -6
- elasticsearch/_sync/client/slm.py +80 -22
- elasticsearch/_sync/client/snapshot.py +140 -54
- elasticsearch/_sync/client/sql.py +55 -15
- elasticsearch/_sync/client/ssl.py +9 -2
- elasticsearch/_sync/client/synonyms.py +75 -21
- elasticsearch/_sync/client/tasks.py +29 -8
- elasticsearch/_sync/client/text_structure.py +74 -2
- elasticsearch/_sync/client/transform.py +106 -32
- elasticsearch/_sync/client/watcher.py +110 -31
- elasticsearch/_sync/client/xpack.py +16 -4
- elasticsearch/_version.py +1 -1
- elasticsearch/helpers/actions.py +1 -1
- elasticsearch/helpers/vectorstore/__init__.py +62 -0
- elasticsearch/helpers/vectorstore/_async/__init__.py +16 -0
- elasticsearch/helpers/vectorstore/_async/_utils.py +39 -0
- elasticsearch/helpers/vectorstore/_async/embedding_service.py +89 -0
- elasticsearch/helpers/vectorstore/_async/strategies.py +466 -0
- elasticsearch/helpers/vectorstore/_async/vectorstore.py +391 -0
- elasticsearch/helpers/vectorstore/_sync/__init__.py +16 -0
- elasticsearch/helpers/vectorstore/_sync/_utils.py +39 -0
- elasticsearch/helpers/vectorstore/_sync/embedding_service.py +89 -0
- elasticsearch/helpers/vectorstore/_sync/strategies.py +466 -0
- elasticsearch/helpers/vectorstore/_sync/vectorstore.py +388 -0
- elasticsearch/helpers/vectorstore/_utils.py +116 -0
- elasticsearch/serializer.py +14 -0
- {elasticsearch-8.12.1.dist-info → elasticsearch-8.13.1.dist-info}/METADATA +28 -8
- elasticsearch-8.13.1.dist-info/RECORD +116 -0
- {elasticsearch-8.12.1.dist-info → elasticsearch-8.13.1.dist-info}/WHEEL +1 -1
- elasticsearch-8.12.1.dist-info/RECORD +0 -103
- {elasticsearch-8.12.1.dist-info → elasticsearch-8.13.1.dist-info}/LICENSE +0 -0
- {elasticsearch-8.12.1.dist-info → elasticsearch-8.13.1.dist-info}/NOTICE +0 -0
- {elasticsearch-8.12.1.dist-info → elasticsearch-8.13.1.dist-info}/top_level.txt +0 -0
|
@@ -24,6 +24,7 @@ from .utils import SKIP_IN_PATH, _quote, _rewrite_parameters
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
class LogstashClient(NamespacedClient):
|
|
27
|
+
|
|
27
28
|
@_rewrite_parameters()
|
|
28
29
|
def delete_pipeline(
|
|
29
30
|
self,
|
|
@@ -37,13 +38,14 @@ class LogstashClient(NamespacedClient):
|
|
|
37
38
|
"""
|
|
38
39
|
Deletes Logstash Pipelines used by Central Management
|
|
39
40
|
|
|
40
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
41
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/logstash-api-delete-pipeline.html>`_
|
|
41
42
|
|
|
42
43
|
:param id: Identifier for the pipeline.
|
|
43
44
|
"""
|
|
44
45
|
if id in SKIP_IN_PATH:
|
|
45
46
|
raise ValueError("Empty value passed for parameter 'id'")
|
|
46
|
-
|
|
47
|
+
__path_parts: t.Dict[str, str] = {"id": _quote(id)}
|
|
48
|
+
__path = f'/_logstash/pipeline/{__path_parts["id"]}'
|
|
47
49
|
__query: t.Dict[str, t.Any] = {}
|
|
48
50
|
if error_trace is not None:
|
|
49
51
|
__query["error_trace"] = error_trace
|
|
@@ -55,7 +57,12 @@ class LogstashClient(NamespacedClient):
|
|
|
55
57
|
__query["pretty"] = pretty
|
|
56
58
|
__headers = {"accept": "application/json"}
|
|
57
59
|
return self.perform_request( # type: ignore[return-value]
|
|
58
|
-
"DELETE",
|
|
60
|
+
"DELETE",
|
|
61
|
+
__path,
|
|
62
|
+
params=__query,
|
|
63
|
+
headers=__headers,
|
|
64
|
+
endpoint_id="logstash.delete_pipeline",
|
|
65
|
+
path_parts=__path_parts,
|
|
59
66
|
)
|
|
60
67
|
|
|
61
68
|
@_rewrite_parameters()
|
|
@@ -71,13 +78,16 @@ class LogstashClient(NamespacedClient):
|
|
|
71
78
|
"""
|
|
72
79
|
Retrieves Logstash Pipelines used by Central Management
|
|
73
80
|
|
|
74
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
81
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/logstash-api-get-pipeline.html>`_
|
|
75
82
|
|
|
76
83
|
:param id: Comma-separated list of pipeline identifiers.
|
|
77
84
|
"""
|
|
85
|
+
__path_parts: t.Dict[str, str]
|
|
78
86
|
if id not in SKIP_IN_PATH:
|
|
79
|
-
|
|
87
|
+
__path_parts = {"id": _quote(id)}
|
|
88
|
+
__path = f'/_logstash/pipeline/{__path_parts["id"]}'
|
|
80
89
|
else:
|
|
90
|
+
__path_parts = {}
|
|
81
91
|
__path = "/_logstash/pipeline"
|
|
82
92
|
__query: t.Dict[str, t.Any] = {}
|
|
83
93
|
if error_trace is not None:
|
|
@@ -90,7 +100,12 @@ class LogstashClient(NamespacedClient):
|
|
|
90
100
|
__query["pretty"] = pretty
|
|
91
101
|
__headers = {"accept": "application/json"}
|
|
92
102
|
return self.perform_request( # type: ignore[return-value]
|
|
93
|
-
"GET",
|
|
103
|
+
"GET",
|
|
104
|
+
__path,
|
|
105
|
+
params=__query,
|
|
106
|
+
headers=__headers,
|
|
107
|
+
endpoint_id="logstash.get_pipeline",
|
|
108
|
+
path_parts=__path_parts,
|
|
94
109
|
)
|
|
95
110
|
|
|
96
111
|
@_rewrite_parameters(
|
|
@@ -110,7 +125,7 @@ class LogstashClient(NamespacedClient):
|
|
|
110
125
|
"""
|
|
111
126
|
Adds and updates Logstash Pipelines used for Central Management
|
|
112
127
|
|
|
113
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
128
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/logstash-api-put-pipeline.html>`_
|
|
114
129
|
|
|
115
130
|
:param id: Identifier for the pipeline.
|
|
116
131
|
:param pipeline:
|
|
@@ -123,7 +138,8 @@ class LogstashClient(NamespacedClient):
|
|
|
123
138
|
)
|
|
124
139
|
elif pipeline is not None and body is not None:
|
|
125
140
|
raise ValueError("Cannot set both 'pipeline' and 'body'")
|
|
126
|
-
|
|
141
|
+
__path_parts: t.Dict[str, str] = {"id": _quote(id)}
|
|
142
|
+
__path = f'/_logstash/pipeline/{__path_parts["id"]}'
|
|
127
143
|
__query: t.Dict[str, t.Any] = {}
|
|
128
144
|
if error_trace is not None:
|
|
129
145
|
__query["error_trace"] = error_trace
|
|
@@ -136,5 +152,11 @@ class LogstashClient(NamespacedClient):
|
|
|
136
152
|
__body = pipeline if pipeline is not None else body
|
|
137
153
|
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
138
154
|
return self.perform_request( # type: ignore[return-value]
|
|
139
|
-
"PUT",
|
|
155
|
+
"PUT",
|
|
156
|
+
__path,
|
|
157
|
+
params=__query,
|
|
158
|
+
headers=__headers,
|
|
159
|
+
body=__body,
|
|
160
|
+
endpoint_id="logstash.put_pipeline",
|
|
161
|
+
path_parts=__path_parts,
|
|
140
162
|
)
|
|
@@ -24,6 +24,7 @@ from .utils import SKIP_IN_PATH, _quote, _rewrite_parameters
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
class MigrationClient(NamespacedClient):
|
|
27
|
+
|
|
27
28
|
@_rewrite_parameters()
|
|
28
29
|
def deprecations(
|
|
29
30
|
self,
|
|
@@ -39,14 +40,17 @@ class MigrationClient(NamespacedClient):
|
|
|
39
40
|
that use deprecated features that will be removed or changed in the next major
|
|
40
41
|
version.
|
|
41
42
|
|
|
42
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
43
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/migration-api-deprecation.html>`_
|
|
43
44
|
|
|
44
45
|
:param index: Comma-separate list of data streams or indices to check. Wildcard
|
|
45
46
|
(*) expressions are supported.
|
|
46
47
|
"""
|
|
48
|
+
__path_parts: t.Dict[str, str]
|
|
47
49
|
if index not in SKIP_IN_PATH:
|
|
48
|
-
|
|
50
|
+
__path_parts = {"index": _quote(index)}
|
|
51
|
+
__path = f'/{__path_parts["index"]}/_migration/deprecations'
|
|
49
52
|
else:
|
|
53
|
+
__path_parts = {}
|
|
50
54
|
__path = "/_migration/deprecations"
|
|
51
55
|
__query: t.Dict[str, t.Any] = {}
|
|
52
56
|
if error_trace is not None:
|
|
@@ -59,7 +63,12 @@ class MigrationClient(NamespacedClient):
|
|
|
59
63
|
__query["pretty"] = pretty
|
|
60
64
|
__headers = {"accept": "application/json"}
|
|
61
65
|
return self.perform_request( # type: ignore[return-value]
|
|
62
|
-
"GET",
|
|
66
|
+
"GET",
|
|
67
|
+
__path,
|
|
68
|
+
params=__query,
|
|
69
|
+
headers=__headers,
|
|
70
|
+
endpoint_id="migration.deprecations",
|
|
71
|
+
path_parts=__path_parts,
|
|
63
72
|
)
|
|
64
73
|
|
|
65
74
|
@_rewrite_parameters()
|
|
@@ -74,8 +83,9 @@ class MigrationClient(NamespacedClient):
|
|
|
74
83
|
"""
|
|
75
84
|
Find out whether system features need to be upgraded or not
|
|
76
85
|
|
|
77
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
86
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/migration-api-feature-upgrade.html>`_
|
|
78
87
|
"""
|
|
88
|
+
__path_parts: t.Dict[str, str] = {}
|
|
79
89
|
__path = "/_migration/system_features"
|
|
80
90
|
__query: t.Dict[str, t.Any] = {}
|
|
81
91
|
if error_trace is not None:
|
|
@@ -88,7 +98,12 @@ class MigrationClient(NamespacedClient):
|
|
|
88
98
|
__query["pretty"] = pretty
|
|
89
99
|
__headers = {"accept": "application/json"}
|
|
90
100
|
return self.perform_request( # type: ignore[return-value]
|
|
91
|
-
"GET",
|
|
101
|
+
"GET",
|
|
102
|
+
__path,
|
|
103
|
+
params=__query,
|
|
104
|
+
headers=__headers,
|
|
105
|
+
endpoint_id="migration.get_feature_upgrade_status",
|
|
106
|
+
path_parts=__path_parts,
|
|
92
107
|
)
|
|
93
108
|
|
|
94
109
|
@_rewrite_parameters()
|
|
@@ -103,8 +118,9 @@ class MigrationClient(NamespacedClient):
|
|
|
103
118
|
"""
|
|
104
119
|
Begin upgrades for system features
|
|
105
120
|
|
|
106
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
121
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/migration-api-feature-upgrade.html>`_
|
|
107
122
|
"""
|
|
123
|
+
__path_parts: t.Dict[str, str] = {}
|
|
108
124
|
__path = "/_migration/system_features"
|
|
109
125
|
__query: t.Dict[str, t.Any] = {}
|
|
110
126
|
if error_trace is not None:
|
|
@@ -117,5 +133,10 @@ class MigrationClient(NamespacedClient):
|
|
|
117
133
|
__query["pretty"] = pretty
|
|
118
134
|
__headers = {"accept": "application/json"}
|
|
119
135
|
return self.perform_request( # type: ignore[return-value]
|
|
120
|
-
"POST",
|
|
136
|
+
"POST",
|
|
137
|
+
__path,
|
|
138
|
+
params=__query,
|
|
139
|
+
headers=__headers,
|
|
140
|
+
endpoint_id="migration.post_feature_upgrade",
|
|
141
|
+
path_parts=__path_parts,
|
|
121
142
|
)
|