elasticsearch 8.13.2__py3-none-any.whl → 8.15.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 +204 -169
- elasticsearch/_async/client/async_search.py +35 -20
- elasticsearch/_async/client/autoscaling.py +4 -4
- elasticsearch/_async/client/cat.py +785 -180
- elasticsearch/_async/client/ccr.py +20 -32
- elasticsearch/_async/client/cluster.py +94 -88
- elasticsearch/_async/client/connector.py +1470 -0
- elasticsearch/_async/client/dangling_indices.py +7 -11
- elasticsearch/_async/client/enrich.py +8 -8
- elasticsearch/_async/client/eql.py +17 -16
- elasticsearch/_async/client/esql.py +2 -2
- elasticsearch/_async/client/features.py +2 -2
- elasticsearch/_async/client/fleet.py +18 -17
- elasticsearch/_async/client/graph.py +4 -4
- elasticsearch/_async/client/ilm.py +36 -44
- elasticsearch/_async/client/indices.py +401 -411
- elasticsearch/_async/client/inference.py +65 -39
- elasticsearch/_async/client/ingest.py +22 -23
- elasticsearch/_async/client/license.py +18 -10
- elasticsearch/_async/client/logstash.py +6 -6
- elasticsearch/_async/client/migration.py +3 -3
- elasticsearch/_async/client/ml.py +383 -176
- elasticsearch/_async/client/monitoring.py +2 -2
- elasticsearch/_async/client/nodes.py +32 -32
- elasticsearch/_async/client/query_rules.py +384 -0
- elasticsearch/_async/client/rollup.py +13 -13
- elasticsearch/_async/client/search_application.py +15 -10
- elasticsearch/_async/client/searchable_snapshots.py +9 -13
- elasticsearch/_async/client/security.py +587 -104
- elasticsearch/_async/client/shutdown.py +7 -7
- elasticsearch/_async/client/slm.py +11 -13
- elasticsearch/_async/client/snapshot.py +39 -52
- elasticsearch/_async/client/sql.py +12 -14
- elasticsearch/_async/client/ssl.py +1 -1
- elasticsearch/_async/client/synonyms.py +8 -8
- elasticsearch/_async/client/tasks.py +9 -10
- elasticsearch/_async/client/text_structure.py +3 -3
- elasticsearch/_async/client/transform.py +89 -34
- elasticsearch/_async/client/watcher.py +30 -15
- elasticsearch/_async/client/xpack.py +6 -7
- elasticsearch/_otel.py +2 -6
- elasticsearch/_sync/client/__init__.py +204 -169
- elasticsearch/_sync/client/async_search.py +35 -20
- elasticsearch/_sync/client/autoscaling.py +4 -4
- elasticsearch/_sync/client/cat.py +785 -180
- elasticsearch/_sync/client/ccr.py +20 -32
- elasticsearch/_sync/client/cluster.py +94 -88
- elasticsearch/_sync/client/connector.py +1470 -0
- elasticsearch/_sync/client/dangling_indices.py +7 -11
- elasticsearch/_sync/client/enrich.py +8 -8
- elasticsearch/_sync/client/eql.py +17 -16
- elasticsearch/_sync/client/esql.py +2 -2
- elasticsearch/_sync/client/features.py +2 -2
- elasticsearch/_sync/client/fleet.py +18 -17
- elasticsearch/_sync/client/graph.py +4 -4
- elasticsearch/_sync/client/ilm.py +36 -44
- elasticsearch/_sync/client/indices.py +401 -411
- elasticsearch/_sync/client/inference.py +65 -39
- elasticsearch/_sync/client/ingest.py +22 -23
- elasticsearch/_sync/client/license.py +18 -10
- elasticsearch/_sync/client/logstash.py +6 -6
- elasticsearch/_sync/client/migration.py +3 -3
- elasticsearch/_sync/client/ml.py +383 -176
- elasticsearch/_sync/client/monitoring.py +2 -2
- elasticsearch/_sync/client/nodes.py +32 -32
- elasticsearch/_sync/client/query_rules.py +384 -0
- elasticsearch/_sync/client/rollup.py +13 -13
- elasticsearch/_sync/client/search_application.py +15 -10
- elasticsearch/_sync/client/searchable_snapshots.py +9 -13
- elasticsearch/_sync/client/security.py +587 -104
- elasticsearch/_sync/client/shutdown.py +7 -7
- elasticsearch/_sync/client/slm.py +11 -13
- elasticsearch/_sync/client/snapshot.py +39 -52
- elasticsearch/_sync/client/sql.py +12 -14
- elasticsearch/_sync/client/ssl.py +1 -1
- elasticsearch/_sync/client/synonyms.py +8 -8
- elasticsearch/_sync/client/tasks.py +9 -10
- elasticsearch/_sync/client/text_structure.py +3 -3
- elasticsearch/_sync/client/transform.py +89 -34
- elasticsearch/_sync/client/watcher.py +30 -15
- elasticsearch/_sync/client/xpack.py +6 -7
- elasticsearch/_version.py +1 -1
- elasticsearch/client.py +3 -3
- elasticsearch/helpers/vectorstore/_async/vectorstore.py +36 -6
- elasticsearch/helpers/vectorstore/_sync/vectorstore.py +36 -6
- elasticsearch/serializer.py +34 -1
- elasticsearch-8.15.0.dist-info/METADATA +177 -0
- elasticsearch-8.15.0.dist-info/RECORD +117 -0
- {elasticsearch-8.13.2.dist-info → elasticsearch-8.15.0.dist-info}/WHEEL +1 -2
- elasticsearch/_async/client/query_ruleset.py +0 -205
- elasticsearch/_sync/client/query_ruleset.py +0 -205
- elasticsearch-8.13.2.dist-info/METADATA +0 -147
- elasticsearch-8.13.2.dist-info/RECORD +0 -116
- elasticsearch-8.13.2.dist-info/top_level.txt +0 -1
- {elasticsearch-8.13.2.dist-info → elasticsearch-8.15.0.dist-info/licenses}/LICENSE +0 -0
- {elasticsearch-8.13.2.dist-info → elasticsearch-8.15.0.dist-info/licenses}/NOTICE +0 -0
|
@@ -26,25 +26,34 @@ from .utils import SKIP_IN_PATH, _quote, _rewrite_parameters
|
|
|
26
26
|
class InferenceClient(NamespacedClient):
|
|
27
27
|
|
|
28
28
|
@_rewrite_parameters()
|
|
29
|
-
def
|
|
29
|
+
def delete(
|
|
30
30
|
self,
|
|
31
31
|
*,
|
|
32
32
|
inference_id: str,
|
|
33
33
|
task_type: t.Optional[
|
|
34
|
-
t.Union[
|
|
34
|
+
t.Union[
|
|
35
|
+
str,
|
|
36
|
+
t.Literal["completion", "rerank", "sparse_embedding", "text_embedding"],
|
|
37
|
+
]
|
|
35
38
|
] = None,
|
|
39
|
+
dry_run: t.Optional[bool] = None,
|
|
36
40
|
error_trace: t.Optional[bool] = None,
|
|
37
41
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
42
|
+
force: t.Optional[bool] = None,
|
|
38
43
|
human: t.Optional[bool] = None,
|
|
39
44
|
pretty: t.Optional[bool] = None,
|
|
40
45
|
) -> ObjectApiResponse[t.Any]:
|
|
41
46
|
"""
|
|
42
|
-
Delete
|
|
47
|
+
Delete an inference endpoint
|
|
43
48
|
|
|
44
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
49
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/delete-inference-api.html>`_
|
|
45
50
|
|
|
46
51
|
:param inference_id: The inference Id
|
|
47
52
|
:param task_type: The task type
|
|
53
|
+
:param dry_run: When true, the endpoint is not deleted, and a list of ingest
|
|
54
|
+
processors which reference this endpoint is returned
|
|
55
|
+
:param force: When true, the inference endpoint is forcefully deleted even if
|
|
56
|
+
it is still being used by ingest processors or semantic text fields
|
|
48
57
|
"""
|
|
49
58
|
if inference_id in SKIP_IN_PATH:
|
|
50
59
|
raise ValueError("Empty value passed for parameter 'inference_id'")
|
|
@@ -61,10 +70,14 @@ class InferenceClient(NamespacedClient):
|
|
|
61
70
|
else:
|
|
62
71
|
raise ValueError("Couldn't find a path for the given parameters")
|
|
63
72
|
__query: t.Dict[str, t.Any] = {}
|
|
73
|
+
if dry_run is not None:
|
|
74
|
+
__query["dry_run"] = dry_run
|
|
64
75
|
if error_trace is not None:
|
|
65
76
|
__query["error_trace"] = error_trace
|
|
66
77
|
if filter_path is not None:
|
|
67
78
|
__query["filter_path"] = filter_path
|
|
79
|
+
if force is not None:
|
|
80
|
+
__query["force"] = force
|
|
68
81
|
if human is not None:
|
|
69
82
|
__query["human"] = human
|
|
70
83
|
if pretty is not None:
|
|
@@ -75,33 +88,34 @@ class InferenceClient(NamespacedClient):
|
|
|
75
88
|
__path,
|
|
76
89
|
params=__query,
|
|
77
90
|
headers=__headers,
|
|
78
|
-
endpoint_id="inference.
|
|
91
|
+
endpoint_id="inference.delete",
|
|
79
92
|
path_parts=__path_parts,
|
|
80
93
|
)
|
|
81
94
|
|
|
82
95
|
@_rewrite_parameters()
|
|
83
|
-
def
|
|
96
|
+
def get(
|
|
84
97
|
self,
|
|
85
98
|
*,
|
|
86
|
-
inference_id: str,
|
|
87
99
|
task_type: t.Optional[
|
|
88
|
-
t.Union[
|
|
100
|
+
t.Union[
|
|
101
|
+
str,
|
|
102
|
+
t.Literal["completion", "rerank", "sparse_embedding", "text_embedding"],
|
|
103
|
+
]
|
|
89
104
|
] = None,
|
|
105
|
+
inference_id: t.Optional[str] = None,
|
|
90
106
|
error_trace: t.Optional[bool] = None,
|
|
91
107
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
92
108
|
human: t.Optional[bool] = None,
|
|
93
109
|
pretty: t.Optional[bool] = None,
|
|
94
110
|
) -> ObjectApiResponse[t.Any]:
|
|
95
111
|
"""
|
|
96
|
-
Get
|
|
112
|
+
Get an inference endpoint
|
|
97
113
|
|
|
98
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
114
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/get-inference-api.html>`_
|
|
99
115
|
|
|
100
|
-
:param inference_id: The inference Id
|
|
101
116
|
:param task_type: The task type
|
|
117
|
+
:param inference_id: The inference Id
|
|
102
118
|
"""
|
|
103
|
-
if inference_id in SKIP_IN_PATH:
|
|
104
|
-
raise ValueError("Empty value passed for parameter 'inference_id'")
|
|
105
119
|
__path_parts: t.Dict[str, str]
|
|
106
120
|
if task_type not in SKIP_IN_PATH and inference_id not in SKIP_IN_PATH:
|
|
107
121
|
__path_parts = {
|
|
@@ -113,7 +127,8 @@ class InferenceClient(NamespacedClient):
|
|
|
113
127
|
__path_parts = {"inference_id": _quote(inference_id)}
|
|
114
128
|
__path = f'/_inference/{__path_parts["inference_id"]}'
|
|
115
129
|
else:
|
|
116
|
-
|
|
130
|
+
__path_parts = {}
|
|
131
|
+
__path = "/_inference"
|
|
117
132
|
__query: t.Dict[str, t.Any] = {}
|
|
118
133
|
if error_trace is not None:
|
|
119
134
|
__query["error_trace"] = error_trace
|
|
@@ -129,12 +144,12 @@ class InferenceClient(NamespacedClient):
|
|
|
129
144
|
__path,
|
|
130
145
|
params=__query,
|
|
131
146
|
headers=__headers,
|
|
132
|
-
endpoint_id="inference.
|
|
147
|
+
endpoint_id="inference.get",
|
|
133
148
|
path_parts=__path_parts,
|
|
134
149
|
)
|
|
135
150
|
|
|
136
151
|
@_rewrite_parameters(
|
|
137
|
-
body_fields=("input", "task_settings"),
|
|
152
|
+
body_fields=("input", "query", "task_settings"),
|
|
138
153
|
)
|
|
139
154
|
def inference(
|
|
140
155
|
self,
|
|
@@ -142,24 +157,32 @@ class InferenceClient(NamespacedClient):
|
|
|
142
157
|
inference_id: str,
|
|
143
158
|
input: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
144
159
|
task_type: t.Optional[
|
|
145
|
-
t.Union[
|
|
160
|
+
t.Union[
|
|
161
|
+
str,
|
|
162
|
+
t.Literal["completion", "rerank", "sparse_embedding", "text_embedding"],
|
|
163
|
+
]
|
|
146
164
|
] = None,
|
|
147
165
|
error_trace: t.Optional[bool] = None,
|
|
148
166
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
149
167
|
human: t.Optional[bool] = None,
|
|
150
168
|
pretty: t.Optional[bool] = None,
|
|
169
|
+
query: t.Optional[str] = None,
|
|
151
170
|
task_settings: t.Optional[t.Any] = None,
|
|
171
|
+
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
152
172
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
153
173
|
) -> ObjectApiResponse[t.Any]:
|
|
154
174
|
"""
|
|
155
|
-
Perform inference on
|
|
175
|
+
Perform inference on the service
|
|
156
176
|
|
|
157
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
177
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/post-inference-api.html>`_
|
|
158
178
|
|
|
159
179
|
:param inference_id: The inference Id
|
|
160
|
-
:param input:
|
|
180
|
+
:param input: Inference input. Either a string or an array of strings.
|
|
161
181
|
:param task_type: The task type
|
|
182
|
+
:param query: Query input, required for rerank task. Not required for other tasks.
|
|
162
183
|
:param task_settings: Optional task settings
|
|
184
|
+
:param timeout: Specifies the amount of time to wait for the inference request
|
|
185
|
+
to complete.
|
|
163
186
|
"""
|
|
164
187
|
if inference_id in SKIP_IN_PATH:
|
|
165
188
|
raise ValueError("Empty value passed for parameter 'inference_id'")
|
|
@@ -187,9 +210,13 @@ class InferenceClient(NamespacedClient):
|
|
|
187
210
|
__query["human"] = human
|
|
188
211
|
if pretty is not None:
|
|
189
212
|
__query["pretty"] = pretty
|
|
213
|
+
if timeout is not None:
|
|
214
|
+
__query["timeout"] = timeout
|
|
190
215
|
if not __body:
|
|
191
216
|
if input is not None:
|
|
192
217
|
__body["input"] = input
|
|
218
|
+
if query is not None:
|
|
219
|
+
__body["query"] = query
|
|
193
220
|
if task_settings is not None:
|
|
194
221
|
__body["task_settings"] = task_settings
|
|
195
222
|
if not __body:
|
|
@@ -208,39 +235,42 @@ class InferenceClient(NamespacedClient):
|
|
|
208
235
|
)
|
|
209
236
|
|
|
210
237
|
@_rewrite_parameters(
|
|
211
|
-
body_name="
|
|
238
|
+
body_name="inference_config",
|
|
212
239
|
)
|
|
213
|
-
def
|
|
240
|
+
def put(
|
|
214
241
|
self,
|
|
215
242
|
*,
|
|
216
243
|
inference_id: str,
|
|
244
|
+
inference_config: t.Optional[t.Mapping[str, t.Any]] = None,
|
|
245
|
+
body: t.Optional[t.Mapping[str, t.Any]] = None,
|
|
217
246
|
task_type: t.Optional[
|
|
218
|
-
t.Union[
|
|
247
|
+
t.Union[
|
|
248
|
+
str,
|
|
249
|
+
t.Literal["completion", "rerank", "sparse_embedding", "text_embedding"],
|
|
250
|
+
]
|
|
219
251
|
] = None,
|
|
220
252
|
error_trace: t.Optional[bool] = None,
|
|
221
253
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
222
254
|
human: t.Optional[bool] = None,
|
|
223
|
-
model_config: t.Optional[t.Mapping[str, t.Any]] = None,
|
|
224
|
-
body: t.Optional[t.Mapping[str, t.Any]] = None,
|
|
225
255
|
pretty: t.Optional[bool] = None,
|
|
226
256
|
) -> ObjectApiResponse[t.Any]:
|
|
227
257
|
"""
|
|
228
|
-
|
|
258
|
+
Create an inference endpoint
|
|
229
259
|
|
|
230
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
260
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/put-inference-api.html>`_
|
|
231
261
|
|
|
232
262
|
:param inference_id: The inference Id
|
|
263
|
+
:param inference_config:
|
|
233
264
|
:param task_type: The task type
|
|
234
|
-
:param model_config:
|
|
235
265
|
"""
|
|
236
266
|
if inference_id in SKIP_IN_PATH:
|
|
237
267
|
raise ValueError("Empty value passed for parameter 'inference_id'")
|
|
238
|
-
if
|
|
268
|
+
if inference_config is None and body is None:
|
|
239
269
|
raise ValueError(
|
|
240
|
-
"Empty value passed for parameters '
|
|
270
|
+
"Empty value passed for parameters 'inference_config' and 'body', one of them should be set."
|
|
241
271
|
)
|
|
242
|
-
elif
|
|
243
|
-
raise ValueError("Cannot set both '
|
|
272
|
+
elif inference_config is not None and body is not None:
|
|
273
|
+
raise ValueError("Cannot set both 'inference_config' and 'body'")
|
|
244
274
|
__path_parts: t.Dict[str, str]
|
|
245
275
|
if task_type not in SKIP_IN_PATH and inference_id not in SKIP_IN_PATH:
|
|
246
276
|
__path_parts = {
|
|
@@ -262,18 +292,14 @@ class InferenceClient(NamespacedClient):
|
|
|
262
292
|
__query["human"] = human
|
|
263
293
|
if pretty is not None:
|
|
264
294
|
__query["pretty"] = pretty
|
|
265
|
-
__body =
|
|
266
|
-
|
|
267
|
-
__body = None
|
|
268
|
-
__headers = {"accept": "application/json"}
|
|
269
|
-
if __body is not None:
|
|
270
|
-
__headers["content-type"] = "application/json"
|
|
295
|
+
__body = inference_config if inference_config is not None else body
|
|
296
|
+
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
271
297
|
return self.perform_request( # type: ignore[return-value]
|
|
272
298
|
"PUT",
|
|
273
299
|
__path,
|
|
274
300
|
params=__query,
|
|
275
301
|
headers=__headers,
|
|
276
302
|
body=__body,
|
|
277
|
-
endpoint_id="inference.
|
|
303
|
+
endpoint_id="inference.put",
|
|
278
304
|
path_parts=__path_parts,
|
|
279
305
|
)
|
|
@@ -33,16 +33,14 @@ class IngestClient(NamespacedClient):
|
|
|
33
33
|
error_trace: t.Optional[bool] = None,
|
|
34
34
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
35
35
|
human: t.Optional[bool] = None,
|
|
36
|
-
master_timeout: t.Optional[
|
|
37
|
-
t.Union["t.Literal[-1]", "t.Literal[0]", str]
|
|
38
|
-
] = None,
|
|
36
|
+
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
39
37
|
pretty: t.Optional[bool] = None,
|
|
40
|
-
timeout: t.Optional[t.Union[
|
|
38
|
+
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
41
39
|
) -> ObjectApiResponse[t.Any]:
|
|
42
40
|
"""
|
|
43
|
-
Deletes
|
|
41
|
+
Deletes one or more existing ingest pipeline.
|
|
44
42
|
|
|
45
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
43
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/delete-pipeline-api.html>`_
|
|
46
44
|
|
|
47
45
|
:param id: Pipeline ID or wildcard expression of pipeline IDs used to limit the
|
|
48
46
|
request. To delete all ingest pipelines in a cluster, use a value of `*`.
|
|
@@ -89,9 +87,9 @@ class IngestClient(NamespacedClient):
|
|
|
89
87
|
pretty: t.Optional[bool] = None,
|
|
90
88
|
) -> ObjectApiResponse[t.Any]:
|
|
91
89
|
"""
|
|
92
|
-
|
|
90
|
+
Gets download statistics for GeoIP2 databases used with the geoip processor.
|
|
93
91
|
|
|
94
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
92
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/geoip-processor.html>`_
|
|
95
93
|
"""
|
|
96
94
|
__path_parts: t.Dict[str, str] = {}
|
|
97
95
|
__path = "/_ingest/geoip/stats"
|
|
@@ -122,16 +120,15 @@ class IngestClient(NamespacedClient):
|
|
|
122
120
|
error_trace: t.Optional[bool] = None,
|
|
123
121
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
124
122
|
human: t.Optional[bool] = None,
|
|
125
|
-
master_timeout: t.Optional[
|
|
126
|
-
t.Union["t.Literal[-1]", "t.Literal[0]", str]
|
|
127
|
-
] = None,
|
|
123
|
+
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
128
124
|
pretty: t.Optional[bool] = None,
|
|
129
125
|
summary: t.Optional[bool] = None,
|
|
130
126
|
) -> ObjectApiResponse[t.Any]:
|
|
131
127
|
"""
|
|
132
|
-
Returns a
|
|
128
|
+
Returns information about one or more ingest pipelines. This API returns a local
|
|
129
|
+
reference of the pipeline.
|
|
133
130
|
|
|
134
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
131
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/get-pipeline-api.html>`_
|
|
135
132
|
|
|
136
133
|
:param id: Comma-separated list of pipeline IDs to retrieve. Wildcard (`*`) expressions
|
|
137
134
|
are supported. To get all ingest pipelines, omit this parameter or use `*`.
|
|
@@ -180,9 +177,12 @@ class IngestClient(NamespacedClient):
|
|
|
180
177
|
pretty: t.Optional[bool] = None,
|
|
181
178
|
) -> ObjectApiResponse[t.Any]:
|
|
182
179
|
"""
|
|
183
|
-
|
|
180
|
+
Extracts structured fields out of a single text field within a document. You
|
|
181
|
+
choose which field to extract matched fields from, as well as the grok pattern
|
|
182
|
+
you expect will match. A grok pattern is like a regular expression that supports
|
|
183
|
+
aliased expressions that can be reused.
|
|
184
184
|
|
|
185
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
185
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/grok-processor.html>`_
|
|
186
186
|
"""
|
|
187
187
|
__path_parts: t.Dict[str, str] = {}
|
|
188
188
|
__path = "/_ingest/processor/grok"
|
|
@@ -218,21 +218,20 @@ class IngestClient(NamespacedClient):
|
|
|
218
218
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
219
219
|
human: t.Optional[bool] = None,
|
|
220
220
|
if_version: t.Optional[int] = None,
|
|
221
|
-
master_timeout: t.Optional[
|
|
222
|
-
t.Union["t.Literal[-1]", "t.Literal[0]", str]
|
|
223
|
-
] = None,
|
|
221
|
+
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
224
222
|
meta: t.Optional[t.Mapping[str, t.Any]] = None,
|
|
225
223
|
on_failure: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
|
|
226
224
|
pretty: t.Optional[bool] = None,
|
|
227
225
|
processors: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
|
|
228
|
-
timeout: t.Optional[t.Union[
|
|
226
|
+
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
229
227
|
version: t.Optional[int] = None,
|
|
230
228
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
231
229
|
) -> ObjectApiResponse[t.Any]:
|
|
232
230
|
"""
|
|
233
|
-
Creates or updates
|
|
231
|
+
Creates or updates an ingest pipeline. Changes made using this API take effect
|
|
232
|
+
immediately.
|
|
234
233
|
|
|
235
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
234
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ingest.html>`_
|
|
236
235
|
|
|
237
236
|
:param id: ID of the ingest pipeline to create or update.
|
|
238
237
|
:param description: Description of the ingest pipeline.
|
|
@@ -316,9 +315,9 @@ class IngestClient(NamespacedClient):
|
|
|
316
315
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
317
316
|
) -> ObjectApiResponse[t.Any]:
|
|
318
317
|
"""
|
|
319
|
-
|
|
318
|
+
Executes an ingest pipeline against a set of provided documents.
|
|
320
319
|
|
|
321
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
320
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/simulate-pipeline-api.html>`_
|
|
322
321
|
|
|
323
322
|
:param id: Pipeline to test. If you don’t specify a `pipeline` in the request
|
|
324
323
|
body, this parameter is required.
|
|
@@ -37,7 +37,7 @@ class LicenseClient(NamespacedClient):
|
|
|
37
37
|
"""
|
|
38
38
|
Deletes licensing information for the cluster
|
|
39
39
|
|
|
40
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
40
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/delete-license.html>`_
|
|
41
41
|
"""
|
|
42
42
|
__path_parts: t.Dict[str, str] = {}
|
|
43
43
|
__path = "/_license"
|
|
@@ -72,9 +72,11 @@ class LicenseClient(NamespacedClient):
|
|
|
72
72
|
pretty: t.Optional[bool] = None,
|
|
73
73
|
) -> ObjectApiResponse[t.Any]:
|
|
74
74
|
"""
|
|
75
|
-
|
|
75
|
+
This API returns information about the type of license, when it was issued, and
|
|
76
|
+
when it expires, for example. For more information about the different types
|
|
77
|
+
of licenses, see https://www.elastic.co/subscriptions.
|
|
76
78
|
|
|
77
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
79
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/get-license.html>`_
|
|
78
80
|
|
|
79
81
|
:param accept_enterprise: If `true`, this parameter returns enterprise for Enterprise
|
|
80
82
|
license types. If `false`, this parameter returns platinum for both platinum
|
|
@@ -120,7 +122,7 @@ class LicenseClient(NamespacedClient):
|
|
|
120
122
|
"""
|
|
121
123
|
Retrieves information about the status of the basic license.
|
|
122
124
|
|
|
123
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
125
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/get-basic-status.html>`_
|
|
124
126
|
"""
|
|
125
127
|
__path_parts: t.Dict[str, str] = {}
|
|
126
128
|
__path = "/_license/basic_status"
|
|
@@ -155,7 +157,7 @@ class LicenseClient(NamespacedClient):
|
|
|
155
157
|
"""
|
|
156
158
|
Retrieves information about the status of the trial license.
|
|
157
159
|
|
|
158
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
160
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/get-trial-status.html>`_
|
|
159
161
|
"""
|
|
160
162
|
__path_parts: t.Dict[str, str] = {}
|
|
161
163
|
__path = "/_license/trial_status"
|
|
@@ -196,7 +198,7 @@ class LicenseClient(NamespacedClient):
|
|
|
196
198
|
"""
|
|
197
199
|
Updates the license for the cluster.
|
|
198
200
|
|
|
199
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
201
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/update-license.html>`_
|
|
200
202
|
|
|
201
203
|
:param acknowledge: Specifies whether you acknowledge the license changes.
|
|
202
204
|
:param license:
|
|
@@ -248,9 +250,14 @@ class LicenseClient(NamespacedClient):
|
|
|
248
250
|
pretty: t.Optional[bool] = None,
|
|
249
251
|
) -> ObjectApiResponse[t.Any]:
|
|
250
252
|
"""
|
|
251
|
-
|
|
253
|
+
The start basic API enables you to initiate an indefinite basic license, which
|
|
254
|
+
gives access to all the basic features. If the basic license does not support
|
|
255
|
+
all of the features that are available with your current license, however, you
|
|
256
|
+
are notified in the response. You must then re-submit the API request with the
|
|
257
|
+
acknowledge parameter set to true. To check the status of your basic license,
|
|
258
|
+
use the following API: [Get basic status](https://www.elastic.co/guide/en/elasticsearch/reference/current/get-basic-status.html).
|
|
252
259
|
|
|
253
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
260
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/start-basic.html>`_
|
|
254
261
|
|
|
255
262
|
:param acknowledge: whether the user has acknowledged acknowledge messages (default:
|
|
256
263
|
false)
|
|
@@ -290,9 +297,10 @@ class LicenseClient(NamespacedClient):
|
|
|
290
297
|
type_query_string: t.Optional[str] = None,
|
|
291
298
|
) -> ObjectApiResponse[t.Any]:
|
|
292
299
|
"""
|
|
293
|
-
|
|
300
|
+
The start trial API enables you to start a 30-day trial, which gives access to
|
|
301
|
+
all subscription features.
|
|
294
302
|
|
|
295
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
303
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/start-trial.html>`_
|
|
296
304
|
|
|
297
305
|
:param acknowledge: whether the user has acknowledged acknowledge messages (default:
|
|
298
306
|
false)
|
|
@@ -36,9 +36,9 @@ class LogstashClient(NamespacedClient):
|
|
|
36
36
|
pretty: t.Optional[bool] = None,
|
|
37
37
|
) -> ObjectApiResponse[t.Any]:
|
|
38
38
|
"""
|
|
39
|
-
Deletes
|
|
39
|
+
Deletes a pipeline used for Logstash Central Management.
|
|
40
40
|
|
|
41
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
41
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/logstash-api-delete-pipeline.html>`_
|
|
42
42
|
|
|
43
43
|
:param id: Identifier for the pipeline.
|
|
44
44
|
"""
|
|
@@ -76,9 +76,9 @@ class LogstashClient(NamespacedClient):
|
|
|
76
76
|
pretty: t.Optional[bool] = None,
|
|
77
77
|
) -> ObjectApiResponse[t.Any]:
|
|
78
78
|
"""
|
|
79
|
-
Retrieves
|
|
79
|
+
Retrieves pipelines used for Logstash Central Management.
|
|
80
80
|
|
|
81
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
81
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/logstash-api-get-pipeline.html>`_
|
|
82
82
|
|
|
83
83
|
:param id: Comma-separated list of pipeline identifiers.
|
|
84
84
|
"""
|
|
@@ -123,9 +123,9 @@ class LogstashClient(NamespacedClient):
|
|
|
123
123
|
pretty: t.Optional[bool] = None,
|
|
124
124
|
) -> ObjectApiResponse[t.Any]:
|
|
125
125
|
"""
|
|
126
|
-
|
|
126
|
+
Creates or updates a pipeline used for Logstash Central Management.
|
|
127
127
|
|
|
128
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
128
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/logstash-api-put-pipeline.html>`_
|
|
129
129
|
|
|
130
130
|
:param id: Identifier for the pipeline.
|
|
131
131
|
:param pipeline:
|
|
@@ -40,7 +40,7 @@ class MigrationClient(NamespacedClient):
|
|
|
40
40
|
that use deprecated features that will be removed or changed in the next major
|
|
41
41
|
version.
|
|
42
42
|
|
|
43
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
43
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/migration-api-deprecation.html>`_
|
|
44
44
|
|
|
45
45
|
:param index: Comma-separate list of data streams or indices to check. Wildcard
|
|
46
46
|
(*) expressions are supported.
|
|
@@ -83,7 +83,7 @@ class MigrationClient(NamespacedClient):
|
|
|
83
83
|
"""
|
|
84
84
|
Find out whether system features need to be upgraded or not
|
|
85
85
|
|
|
86
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
86
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/migration-api-feature-upgrade.html>`_
|
|
87
87
|
"""
|
|
88
88
|
__path_parts: t.Dict[str, str] = {}
|
|
89
89
|
__path = "/_migration/system_features"
|
|
@@ -118,7 +118,7 @@ class MigrationClient(NamespacedClient):
|
|
|
118
118
|
"""
|
|
119
119
|
Begin upgrades for system features
|
|
120
120
|
|
|
121
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
121
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/migration-api-feature-upgrade.html>`_
|
|
122
122
|
"""
|
|
123
123
|
__path_parts: t.Dict[str, str] = {}
|
|
124
124
|
__path = "/_migration/system_features"
|