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 TransformClient(NamespacedClient):
|
|
27
|
+
|
|
27
28
|
@_rewrite_parameters()
|
|
28
29
|
def delete_transform(
|
|
29
30
|
self,
|
|
@@ -40,7 +41,7 @@ class TransformClient(NamespacedClient):
|
|
|
40
41
|
"""
|
|
41
42
|
Deletes an existing transform.
|
|
42
43
|
|
|
43
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
44
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/delete-transform.html>`_
|
|
44
45
|
|
|
45
46
|
:param transform_id: Identifier for the transform.
|
|
46
47
|
:param delete_dest_index: If this value is true, the destination index is deleted
|
|
@@ -54,7 +55,8 @@ class TransformClient(NamespacedClient):
|
|
|
54
55
|
"""
|
|
55
56
|
if transform_id in SKIP_IN_PATH:
|
|
56
57
|
raise ValueError("Empty value passed for parameter 'transform_id'")
|
|
57
|
-
|
|
58
|
+
__path_parts: t.Dict[str, str] = {"transform_id": _quote(transform_id)}
|
|
59
|
+
__path = f'/_transform/{__path_parts["transform_id"]}'
|
|
58
60
|
__query: t.Dict[str, t.Any] = {}
|
|
59
61
|
if delete_dest_index is not None:
|
|
60
62
|
__query["delete_dest_index"] = delete_dest_index
|
|
@@ -72,7 +74,12 @@ class TransformClient(NamespacedClient):
|
|
|
72
74
|
__query["timeout"] = timeout
|
|
73
75
|
__headers = {"accept": "application/json"}
|
|
74
76
|
return self.perform_request( # type: ignore[return-value]
|
|
75
|
-
"DELETE",
|
|
77
|
+
"DELETE",
|
|
78
|
+
__path,
|
|
79
|
+
params=__query,
|
|
80
|
+
headers=__headers,
|
|
81
|
+
endpoint_id="transform.delete_transform",
|
|
82
|
+
path_parts=__path_parts,
|
|
76
83
|
)
|
|
77
84
|
|
|
78
85
|
@_rewrite_parameters(
|
|
@@ -94,7 +101,7 @@ class TransformClient(NamespacedClient):
|
|
|
94
101
|
"""
|
|
95
102
|
Retrieves configuration information for transforms.
|
|
96
103
|
|
|
97
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
104
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/get-transform.html>`_
|
|
98
105
|
|
|
99
106
|
:param transform_id: Identifier for the transform. It can be a transform identifier
|
|
100
107
|
or a wildcard expression. You can get information for all transforms by using
|
|
@@ -110,9 +117,12 @@ class TransformClient(NamespacedClient):
|
|
|
110
117
|
:param from_: Skips the specified number of transforms.
|
|
111
118
|
:param size: Specifies the maximum number of transforms to obtain.
|
|
112
119
|
"""
|
|
120
|
+
__path_parts: t.Dict[str, str]
|
|
113
121
|
if transform_id not in SKIP_IN_PATH:
|
|
114
|
-
|
|
122
|
+
__path_parts = {"transform_id": _quote(transform_id)}
|
|
123
|
+
__path = f'/_transform/{__path_parts["transform_id"]}'
|
|
115
124
|
else:
|
|
125
|
+
__path_parts = {}
|
|
116
126
|
__path = "/_transform"
|
|
117
127
|
__query: t.Dict[str, t.Any] = {}
|
|
118
128
|
if allow_no_match is not None:
|
|
@@ -133,7 +143,12 @@ class TransformClient(NamespacedClient):
|
|
|
133
143
|
__query["size"] = size
|
|
134
144
|
__headers = {"accept": "application/json"}
|
|
135
145
|
return self.perform_request( # type: ignore[return-value]
|
|
136
|
-
"GET",
|
|
146
|
+
"GET",
|
|
147
|
+
__path,
|
|
148
|
+
params=__query,
|
|
149
|
+
headers=__headers,
|
|
150
|
+
endpoint_id="transform.get_transform",
|
|
151
|
+
path_parts=__path_parts,
|
|
137
152
|
)
|
|
138
153
|
|
|
139
154
|
@_rewrite_parameters(
|
|
@@ -155,7 +170,7 @@ class TransformClient(NamespacedClient):
|
|
|
155
170
|
"""
|
|
156
171
|
Retrieves usage information for transforms.
|
|
157
172
|
|
|
158
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
173
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/get-transform-stats.html>`_
|
|
159
174
|
|
|
160
175
|
:param transform_id: Identifier for the transform. It can be a transform identifier
|
|
161
176
|
or a wildcard expression. You can get information for all transforms by using
|
|
@@ -171,7 +186,8 @@ class TransformClient(NamespacedClient):
|
|
|
171
186
|
"""
|
|
172
187
|
if transform_id in SKIP_IN_PATH:
|
|
173
188
|
raise ValueError("Empty value passed for parameter 'transform_id'")
|
|
174
|
-
|
|
189
|
+
__path_parts: t.Dict[str, str] = {"transform_id": _quote(transform_id)}
|
|
190
|
+
__path = f'/_transform/{__path_parts["transform_id"]}/_stats'
|
|
175
191
|
__query: t.Dict[str, t.Any] = {}
|
|
176
192
|
if allow_no_match is not None:
|
|
177
193
|
__query["allow_no_match"] = allow_no_match
|
|
@@ -191,7 +207,12 @@ class TransformClient(NamespacedClient):
|
|
|
191
207
|
__query["timeout"] = timeout
|
|
192
208
|
__headers = {"accept": "application/json"}
|
|
193
209
|
return self.perform_request( # type: ignore[return-value]
|
|
194
|
-
"GET",
|
|
210
|
+
"GET",
|
|
211
|
+
__path,
|
|
212
|
+
params=__query,
|
|
213
|
+
headers=__headers,
|
|
214
|
+
endpoint_id="transform.get_transform_stats",
|
|
215
|
+
path_parts=__path_parts,
|
|
195
216
|
)
|
|
196
217
|
|
|
197
218
|
@_rewrite_parameters(
|
|
@@ -230,7 +251,7 @@ class TransformClient(NamespacedClient):
|
|
|
230
251
|
"""
|
|
231
252
|
Previews a transform.
|
|
232
253
|
|
|
233
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
254
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/preview-transform.html>`_
|
|
234
255
|
|
|
235
256
|
:param transform_id: Identifier for the transform to preview. If you specify
|
|
236
257
|
this path parameter, you cannot provide transform configuration details in
|
|
@@ -254,9 +275,12 @@ class TransformClient(NamespacedClient):
|
|
|
254
275
|
:param timeout: Period to wait for a response. If no response is received before
|
|
255
276
|
the timeout expires, the request fails and returns an error.
|
|
256
277
|
"""
|
|
278
|
+
__path_parts: t.Dict[str, str]
|
|
257
279
|
if transform_id not in SKIP_IN_PATH:
|
|
258
|
-
|
|
280
|
+
__path_parts = {"transform_id": _quote(transform_id)}
|
|
281
|
+
__path = f'/_transform/{__path_parts["transform_id"]}/_preview'
|
|
259
282
|
else:
|
|
283
|
+
__path_parts = {}
|
|
260
284
|
__path = "/_transform/_preview"
|
|
261
285
|
__query: t.Dict[str, t.Any] = {}
|
|
262
286
|
__body: t.Dict[str, t.Any] = body if body is not None else {}
|
|
@@ -295,7 +319,13 @@ class TransformClient(NamespacedClient):
|
|
|
295
319
|
if __body is not None:
|
|
296
320
|
__headers["content-type"] = "application/json"
|
|
297
321
|
return self.perform_request( # type: ignore[return-value]
|
|
298
|
-
"POST",
|
|
322
|
+
"POST",
|
|
323
|
+
__path,
|
|
324
|
+
params=__query,
|
|
325
|
+
headers=__headers,
|
|
326
|
+
body=__body,
|
|
327
|
+
endpoint_id="transform.preview_transform",
|
|
328
|
+
path_parts=__path_parts,
|
|
299
329
|
)
|
|
300
330
|
|
|
301
331
|
@_rewrite_parameters(
|
|
@@ -338,7 +368,7 @@ class TransformClient(NamespacedClient):
|
|
|
338
368
|
"""
|
|
339
369
|
Instantiates a transform.
|
|
340
370
|
|
|
341
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
371
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/put-transform.html>`_
|
|
342
372
|
|
|
343
373
|
:param transform_id: Identifier for the transform. This identifier can contain
|
|
344
374
|
lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores.
|
|
@@ -376,7 +406,8 @@ class TransformClient(NamespacedClient):
|
|
|
376
406
|
raise ValueError("Empty value passed for parameter 'dest'")
|
|
377
407
|
if source is None and body is None:
|
|
378
408
|
raise ValueError("Empty value passed for parameter 'source'")
|
|
379
|
-
|
|
409
|
+
__path_parts: t.Dict[str, str] = {"transform_id": _quote(transform_id)}
|
|
410
|
+
__path = f'/_transform/{__path_parts["transform_id"]}'
|
|
380
411
|
__query: t.Dict[str, t.Any] = {}
|
|
381
412
|
__body: t.Dict[str, t.Any] = body if body is not None else {}
|
|
382
413
|
if defer_validation is not None:
|
|
@@ -414,7 +445,13 @@ class TransformClient(NamespacedClient):
|
|
|
414
445
|
__body["sync"] = sync
|
|
415
446
|
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
416
447
|
return self.perform_request( # type: ignore[return-value]
|
|
417
|
-
"PUT",
|
|
448
|
+
"PUT",
|
|
449
|
+
__path,
|
|
450
|
+
params=__query,
|
|
451
|
+
headers=__headers,
|
|
452
|
+
body=__body,
|
|
453
|
+
endpoint_id="transform.put_transform",
|
|
454
|
+
path_parts=__path_parts,
|
|
418
455
|
)
|
|
419
456
|
|
|
420
457
|
@_rewrite_parameters()
|
|
@@ -431,7 +468,7 @@ class TransformClient(NamespacedClient):
|
|
|
431
468
|
"""
|
|
432
469
|
Resets an existing transform.
|
|
433
470
|
|
|
434
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
471
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/reset-transform.html>`_
|
|
435
472
|
|
|
436
473
|
:param transform_id: Identifier for the transform. This identifier can contain
|
|
437
474
|
lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores.
|
|
@@ -442,7 +479,8 @@ class TransformClient(NamespacedClient):
|
|
|
442
479
|
"""
|
|
443
480
|
if transform_id in SKIP_IN_PATH:
|
|
444
481
|
raise ValueError("Empty value passed for parameter 'transform_id'")
|
|
445
|
-
|
|
482
|
+
__path_parts: t.Dict[str, str] = {"transform_id": _quote(transform_id)}
|
|
483
|
+
__path = f'/_transform/{__path_parts["transform_id"]}/_reset'
|
|
446
484
|
__query: t.Dict[str, t.Any] = {}
|
|
447
485
|
if error_trace is not None:
|
|
448
486
|
__query["error_trace"] = error_trace
|
|
@@ -456,7 +494,12 @@ class TransformClient(NamespacedClient):
|
|
|
456
494
|
__query["pretty"] = pretty
|
|
457
495
|
__headers = {"accept": "application/json"}
|
|
458
496
|
return self.perform_request( # type: ignore[return-value]
|
|
459
|
-
"POST",
|
|
497
|
+
"POST",
|
|
498
|
+
__path,
|
|
499
|
+
params=__query,
|
|
500
|
+
headers=__headers,
|
|
501
|
+
endpoint_id="transform.reset_transform",
|
|
502
|
+
path_parts=__path_parts,
|
|
460
503
|
)
|
|
461
504
|
|
|
462
505
|
@_rewrite_parameters()
|
|
@@ -473,14 +516,15 @@ class TransformClient(NamespacedClient):
|
|
|
473
516
|
"""
|
|
474
517
|
Schedules now a transform.
|
|
475
518
|
|
|
476
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
519
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/schedule-now-transform.html>`_
|
|
477
520
|
|
|
478
521
|
:param transform_id: Identifier for the transform.
|
|
479
522
|
:param timeout: Controls the time to wait for the scheduling to take place
|
|
480
523
|
"""
|
|
481
524
|
if transform_id in SKIP_IN_PATH:
|
|
482
525
|
raise ValueError("Empty value passed for parameter 'transform_id'")
|
|
483
|
-
|
|
526
|
+
__path_parts: t.Dict[str, str] = {"transform_id": _quote(transform_id)}
|
|
527
|
+
__path = f'/_transform/{__path_parts["transform_id"]}/_schedule_now'
|
|
484
528
|
__query: t.Dict[str, t.Any] = {}
|
|
485
529
|
if error_trace is not None:
|
|
486
530
|
__query["error_trace"] = error_trace
|
|
@@ -494,7 +538,12 @@ class TransformClient(NamespacedClient):
|
|
|
494
538
|
__query["timeout"] = timeout
|
|
495
539
|
__headers = {"accept": "application/json"}
|
|
496
540
|
return self.perform_request( # type: ignore[return-value]
|
|
497
|
-
"POST",
|
|
541
|
+
"POST",
|
|
542
|
+
__path,
|
|
543
|
+
params=__query,
|
|
544
|
+
headers=__headers,
|
|
545
|
+
endpoint_id="transform.schedule_now_transform",
|
|
546
|
+
path_parts=__path_parts,
|
|
498
547
|
)
|
|
499
548
|
|
|
500
549
|
@_rewrite_parameters(
|
|
@@ -514,7 +563,7 @@ class TransformClient(NamespacedClient):
|
|
|
514
563
|
"""
|
|
515
564
|
Starts one or more transforms.
|
|
516
565
|
|
|
517
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
566
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/start-transform.html>`_
|
|
518
567
|
|
|
519
568
|
:param transform_id: Identifier for the transform.
|
|
520
569
|
:param from_: Restricts the set of transformed entities to those changed after
|
|
@@ -525,7 +574,8 @@ class TransformClient(NamespacedClient):
|
|
|
525
574
|
"""
|
|
526
575
|
if transform_id in SKIP_IN_PATH:
|
|
527
576
|
raise ValueError("Empty value passed for parameter 'transform_id'")
|
|
528
|
-
|
|
577
|
+
__path_parts: t.Dict[str, str] = {"transform_id": _quote(transform_id)}
|
|
578
|
+
__path = f'/_transform/{__path_parts["transform_id"]}/_start'
|
|
529
579
|
__query: t.Dict[str, t.Any] = {}
|
|
530
580
|
if error_trace is not None:
|
|
531
581
|
__query["error_trace"] = error_trace
|
|
@@ -541,7 +591,12 @@ class TransformClient(NamespacedClient):
|
|
|
541
591
|
__query["timeout"] = timeout
|
|
542
592
|
__headers = {"accept": "application/json"}
|
|
543
593
|
return self.perform_request( # type: ignore[return-value]
|
|
544
|
-
"POST",
|
|
594
|
+
"POST",
|
|
595
|
+
__path,
|
|
596
|
+
params=__query,
|
|
597
|
+
headers=__headers,
|
|
598
|
+
endpoint_id="transform.start_transform",
|
|
599
|
+
path_parts=__path_parts,
|
|
545
600
|
)
|
|
546
601
|
|
|
547
602
|
@_rewrite_parameters()
|
|
@@ -562,7 +617,7 @@ class TransformClient(NamespacedClient):
|
|
|
562
617
|
"""
|
|
563
618
|
Stops one or more transforms.
|
|
564
619
|
|
|
565
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
620
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/stop-transform.html>`_
|
|
566
621
|
|
|
567
622
|
:param transform_id: Identifier for the transform. To stop multiple transforms,
|
|
568
623
|
use a comma-separated list or a wildcard expression. To stop all transforms,
|
|
@@ -588,7 +643,8 @@ class TransformClient(NamespacedClient):
|
|
|
588
643
|
"""
|
|
589
644
|
if transform_id in SKIP_IN_PATH:
|
|
590
645
|
raise ValueError("Empty value passed for parameter 'transform_id'")
|
|
591
|
-
|
|
646
|
+
__path_parts: t.Dict[str, str] = {"transform_id": _quote(transform_id)}
|
|
647
|
+
__path = f'/_transform/{__path_parts["transform_id"]}/_stop'
|
|
592
648
|
__query: t.Dict[str, t.Any] = {}
|
|
593
649
|
if allow_no_match is not None:
|
|
594
650
|
__query["allow_no_match"] = allow_no_match
|
|
@@ -610,7 +666,12 @@ class TransformClient(NamespacedClient):
|
|
|
610
666
|
__query["wait_for_completion"] = wait_for_completion
|
|
611
667
|
__headers = {"accept": "application/json"}
|
|
612
668
|
return self.perform_request( # type: ignore[return-value]
|
|
613
|
-
"POST",
|
|
669
|
+
"POST",
|
|
670
|
+
__path,
|
|
671
|
+
params=__query,
|
|
672
|
+
headers=__headers,
|
|
673
|
+
endpoint_id="transform.stop_transform",
|
|
674
|
+
path_parts=__path_parts,
|
|
614
675
|
)
|
|
615
676
|
|
|
616
677
|
@_rewrite_parameters(
|
|
@@ -649,7 +710,7 @@ class TransformClient(NamespacedClient):
|
|
|
649
710
|
"""
|
|
650
711
|
Updates certain properties of a transform.
|
|
651
712
|
|
|
652
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
713
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/update-transform.html>`_
|
|
653
714
|
|
|
654
715
|
:param transform_id: Identifier for the transform.
|
|
655
716
|
:param defer_validation: When true, deferrable validations are not run. This
|
|
@@ -672,7 +733,8 @@ class TransformClient(NamespacedClient):
|
|
|
672
733
|
"""
|
|
673
734
|
if transform_id in SKIP_IN_PATH:
|
|
674
735
|
raise ValueError("Empty value passed for parameter 'transform_id'")
|
|
675
|
-
|
|
736
|
+
__path_parts: t.Dict[str, str] = {"transform_id": _quote(transform_id)}
|
|
737
|
+
__path = f'/_transform/{__path_parts["transform_id"]}/_update'
|
|
676
738
|
__query: t.Dict[str, t.Any] = {}
|
|
677
739
|
__body: t.Dict[str, t.Any] = body if body is not None else {}
|
|
678
740
|
if defer_validation is not None:
|
|
@@ -706,7 +768,13 @@ class TransformClient(NamespacedClient):
|
|
|
706
768
|
__body["sync"] = sync
|
|
707
769
|
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
708
770
|
return self.perform_request( # type: ignore[return-value]
|
|
709
|
-
"POST",
|
|
771
|
+
"POST",
|
|
772
|
+
__path,
|
|
773
|
+
params=__query,
|
|
774
|
+
headers=__headers,
|
|
775
|
+
body=__body,
|
|
776
|
+
endpoint_id="transform.update_transform",
|
|
777
|
+
path_parts=__path_parts,
|
|
710
778
|
)
|
|
711
779
|
|
|
712
780
|
@_rewrite_parameters()
|
|
@@ -723,12 +791,13 @@ class TransformClient(NamespacedClient):
|
|
|
723
791
|
"""
|
|
724
792
|
Upgrades all transforms.
|
|
725
793
|
|
|
726
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
794
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/upgrade-transforms.html>`_
|
|
727
795
|
|
|
728
796
|
:param dry_run: When true, the request checks for updates but does not run them.
|
|
729
797
|
:param timeout: Period to wait for a response. If no response is received before
|
|
730
798
|
the timeout expires, the request fails and returns an error.
|
|
731
799
|
"""
|
|
800
|
+
__path_parts: t.Dict[str, str] = {}
|
|
732
801
|
__path = "/_transform/_upgrade"
|
|
733
802
|
__query: t.Dict[str, t.Any] = {}
|
|
734
803
|
if dry_run is not None:
|
|
@@ -745,5 +814,10 @@ class TransformClient(NamespacedClient):
|
|
|
745
814
|
__query["timeout"] = timeout
|
|
746
815
|
__headers = {"accept": "application/json"}
|
|
747
816
|
return self.perform_request( # type: ignore[return-value]
|
|
748
|
-
"POST",
|
|
817
|
+
"POST",
|
|
818
|
+
__path,
|
|
819
|
+
params=__query,
|
|
820
|
+
headers=__headers,
|
|
821
|
+
endpoint_id="transform.upgrade_transforms",
|
|
822
|
+
path_parts=__path_parts,
|
|
749
823
|
)
|