elasticsearch 8.17.2__py3-none-any.whl → 8.18.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/_async/client/__init__.py +174 -79
- elasticsearch/_async/client/_base.py +0 -1
- elasticsearch/_async/client/async_search.py +12 -8
- elasticsearch/_async/client/autoscaling.py +4 -4
- elasticsearch/_async/client/cat.py +26 -26
- elasticsearch/_async/client/ccr.py +186 -72
- elasticsearch/_async/client/cluster.py +38 -19
- elasticsearch/_async/client/connector.py +30 -30
- elasticsearch/_async/client/dangling_indices.py +3 -3
- elasticsearch/_async/client/enrich.py +26 -5
- elasticsearch/_async/client/eql.py +32 -4
- elasticsearch/_async/client/esql.py +62 -6
- elasticsearch/_async/client/features.py +12 -2
- elasticsearch/_async/client/fleet.py +8 -2
- elasticsearch/_async/client/graph.py +1 -1
- elasticsearch/_async/client/ilm.py +23 -22
- elasticsearch/_async/client/indices.py +424 -132
- elasticsearch/_async/client/inference.py +1906 -61
- elasticsearch/_async/client/ingest.py +32 -38
- elasticsearch/_async/client/license.py +51 -16
- elasticsearch/_async/client/logstash.py +3 -3
- elasticsearch/_async/client/migration.py +3 -3
- elasticsearch/_async/client/ml.py +144 -115
- elasticsearch/_async/client/monitoring.py +1 -1
- elasticsearch/_async/client/nodes.py +9 -27
- elasticsearch/_async/client/query_rules.py +8 -8
- elasticsearch/_async/client/rollup.py +8 -8
- elasticsearch/_async/client/search_application.py +13 -13
- elasticsearch/_async/client/searchable_snapshots.py +4 -4
- elasticsearch/_async/client/security.py +71 -71
- elasticsearch/_async/client/shutdown.py +3 -10
- elasticsearch/_async/client/simulate.py +6 -6
- elasticsearch/_async/client/slm.py +9 -9
- elasticsearch/_async/client/snapshot.py +13 -17
- elasticsearch/_async/client/sql.py +6 -6
- elasticsearch/_async/client/ssl.py +1 -1
- elasticsearch/_async/client/synonyms.py +7 -7
- elasticsearch/_async/client/tasks.py +3 -9
- elasticsearch/_async/client/text_structure.py +4 -4
- elasticsearch/_async/client/transform.py +30 -28
- elasticsearch/_async/client/watcher.py +22 -14
- elasticsearch/_async/client/xpack.py +2 -2
- elasticsearch/_async/helpers.py +0 -1
- elasticsearch/_sync/client/__init__.py +174 -79
- elasticsearch/_sync/client/_base.py +0 -1
- elasticsearch/_sync/client/async_search.py +12 -8
- elasticsearch/_sync/client/autoscaling.py +4 -4
- elasticsearch/_sync/client/cat.py +26 -26
- elasticsearch/_sync/client/ccr.py +186 -72
- elasticsearch/_sync/client/cluster.py +38 -19
- elasticsearch/_sync/client/connector.py +30 -30
- elasticsearch/_sync/client/dangling_indices.py +3 -3
- elasticsearch/_sync/client/enrich.py +26 -5
- elasticsearch/_sync/client/eql.py +32 -4
- elasticsearch/_sync/client/esql.py +62 -6
- elasticsearch/_sync/client/features.py +12 -2
- elasticsearch/_sync/client/fleet.py +8 -2
- elasticsearch/_sync/client/graph.py +1 -1
- elasticsearch/_sync/client/ilm.py +23 -22
- elasticsearch/_sync/client/indices.py +424 -132
- elasticsearch/_sync/client/inference.py +1906 -61
- elasticsearch/_sync/client/ingest.py +32 -38
- elasticsearch/_sync/client/license.py +51 -16
- elasticsearch/_sync/client/logstash.py +3 -3
- elasticsearch/_sync/client/migration.py +3 -3
- elasticsearch/_sync/client/ml.py +144 -115
- elasticsearch/_sync/client/monitoring.py +1 -1
- elasticsearch/_sync/client/nodes.py +9 -27
- elasticsearch/_sync/client/query_rules.py +8 -8
- elasticsearch/_sync/client/rollup.py +8 -8
- elasticsearch/_sync/client/search_application.py +13 -13
- elasticsearch/_sync/client/searchable_snapshots.py +4 -4
- elasticsearch/_sync/client/security.py +71 -71
- elasticsearch/_sync/client/shutdown.py +3 -10
- elasticsearch/_sync/client/simulate.py +6 -6
- elasticsearch/_sync/client/slm.py +9 -9
- elasticsearch/_sync/client/snapshot.py +13 -17
- elasticsearch/_sync/client/sql.py +6 -6
- elasticsearch/_sync/client/ssl.py +1 -1
- elasticsearch/_sync/client/synonyms.py +7 -7
- elasticsearch/_sync/client/tasks.py +3 -9
- elasticsearch/_sync/client/text_structure.py +4 -4
- elasticsearch/_sync/client/transform.py +30 -28
- elasticsearch/_sync/client/utils.py +0 -3
- elasticsearch/_sync/client/watcher.py +22 -14
- elasticsearch/_sync/client/xpack.py +2 -2
- elasticsearch/_version.py +1 -1
- elasticsearch/dsl/__init__.py +203 -0
- elasticsearch/dsl/_async/__init__.py +16 -0
- elasticsearch/dsl/_async/document.py +522 -0
- elasticsearch/dsl/_async/faceted_search.py +50 -0
- elasticsearch/dsl/_async/index.py +639 -0
- elasticsearch/dsl/_async/mapping.py +49 -0
- elasticsearch/dsl/_async/search.py +233 -0
- elasticsearch/dsl/_async/update_by_query.py +47 -0
- elasticsearch/dsl/_sync/__init__.py +16 -0
- elasticsearch/dsl/_sync/document.py +514 -0
- elasticsearch/dsl/_sync/faceted_search.py +50 -0
- elasticsearch/dsl/_sync/index.py +597 -0
- elasticsearch/dsl/_sync/mapping.py +49 -0
- elasticsearch/dsl/_sync/search.py +226 -0
- elasticsearch/dsl/_sync/update_by_query.py +45 -0
- elasticsearch/dsl/aggs.py +3730 -0
- elasticsearch/dsl/analysis.py +341 -0
- elasticsearch/dsl/async_connections.py +37 -0
- elasticsearch/dsl/connections.py +142 -0
- elasticsearch/dsl/document.py +20 -0
- elasticsearch/dsl/document_base.py +444 -0
- elasticsearch/dsl/exceptions.py +32 -0
- elasticsearch/dsl/faceted_search.py +28 -0
- elasticsearch/dsl/faceted_search_base.py +489 -0
- elasticsearch/dsl/field.py +4392 -0
- elasticsearch/dsl/function.py +180 -0
- elasticsearch/dsl/index.py +23 -0
- elasticsearch/dsl/index_base.py +178 -0
- elasticsearch/dsl/mapping.py +19 -0
- elasticsearch/dsl/mapping_base.py +219 -0
- elasticsearch/dsl/query.py +2822 -0
- elasticsearch/dsl/response/__init__.py +388 -0
- elasticsearch/dsl/response/aggs.py +100 -0
- elasticsearch/dsl/response/hit.py +53 -0
- elasticsearch/dsl/search.py +20 -0
- elasticsearch/dsl/search_base.py +1040 -0
- elasticsearch/dsl/serializer.py +34 -0
- elasticsearch/dsl/types.py +6509 -0
- elasticsearch/dsl/update_by_query.py +19 -0
- elasticsearch/dsl/update_by_query_base.py +149 -0
- elasticsearch/dsl/utils.py +687 -0
- elasticsearch/dsl/wrappers.py +119 -0
- {elasticsearch-8.17.2.dist-info → elasticsearch-8.18.1.dist-info}/METADATA +14 -2
- elasticsearch-8.18.1.dist-info/RECORD +163 -0
- elasticsearch-8.18.1.dist-info/licenses/LICENSE.txt +175 -0
- elasticsearch-8.18.1.dist-info/licenses/NOTICE.txt +559 -0
- elasticsearch-8.17.2.dist-info/RECORD +0 -119
- {elasticsearch-8.17.2.dist-info → elasticsearch-8.18.1.dist-info}/WHEEL +0 -0
- {elasticsearch-8.17.2.dist-info → elasticsearch-8.18.1.dist-info}/licenses/LICENSE +0 -0
- {elasticsearch-8.17.2.dist-info → elasticsearch-8.18.1.dist-info}/licenses/NOTICE +0 -0
|
@@ -40,18 +40,18 @@ class IngestClient(NamespacedClient):
|
|
|
40
40
|
"""
|
|
41
41
|
.. raw:: html
|
|
42
42
|
|
|
43
|
-
<p>Delete GeoIP database configurations
|
|
44
|
-
Delete one or more IP geolocation database configurations.</p>
|
|
43
|
+
<p>Delete GeoIP database configurations.</p>
|
|
44
|
+
<p>Delete one or more IP geolocation database configurations.</p>
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
`<https://www.elastic.co/
|
|
47
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-ingest-delete-geoip-database>`_
|
|
48
48
|
|
|
49
49
|
:param id: A comma-separated list of geoip database configurations to delete
|
|
50
|
-
:param master_timeout:
|
|
51
|
-
no response is received before the timeout expires, the request fails
|
|
52
|
-
returns an error.
|
|
53
|
-
:param timeout:
|
|
54
|
-
the timeout expires, the request fails and returns an error.
|
|
50
|
+
:param master_timeout: The period to wait for a connection to the master node.
|
|
51
|
+
If no response is received before the timeout expires, the request fails
|
|
52
|
+
and returns an error.
|
|
53
|
+
:param timeout: The period to wait for a response. If no response is received
|
|
54
|
+
before the timeout expires, the request fails and returns an error.
|
|
55
55
|
"""
|
|
56
56
|
if id in SKIP_IN_PATH:
|
|
57
57
|
raise ValueError("Empty value passed for parameter 'id'")
|
|
@@ -98,7 +98,7 @@ class IngestClient(NamespacedClient):
|
|
|
98
98
|
<p>Delete IP geolocation database configurations.</p>
|
|
99
99
|
|
|
100
100
|
|
|
101
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
101
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/delete-ip-location-database-api.html>`_
|
|
102
102
|
|
|
103
103
|
:param id: A comma-separated list of IP location database configurations.
|
|
104
104
|
:param master_timeout: The period to wait for a connection to the master node.
|
|
@@ -155,7 +155,7 @@ class IngestClient(NamespacedClient):
|
|
|
155
155
|
Delete one or more ingest pipelines.</p>
|
|
156
156
|
|
|
157
157
|
|
|
158
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
158
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/delete-pipeline-api.html>`_
|
|
159
159
|
|
|
160
160
|
:param id: Pipeline ID or wildcard expression of pipeline IDs used to limit the
|
|
161
161
|
request. To delete all ingest pipelines in a cluster, use a value of `*`.
|
|
@@ -208,7 +208,7 @@ class IngestClient(NamespacedClient):
|
|
|
208
208
|
Get download statistics for GeoIP2 databases that are used with the GeoIP processor.</p>
|
|
209
209
|
|
|
210
210
|
|
|
211
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
211
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/geoip-processor.html>`_
|
|
212
212
|
"""
|
|
213
213
|
__path_parts: t.Dict[str, str] = {}
|
|
214
214
|
__path = "/_ingest/geoip/stats"
|
|
@@ -239,24 +239,20 @@ class IngestClient(NamespacedClient):
|
|
|
239
239
|
error_trace: t.Optional[bool] = None,
|
|
240
240
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
241
241
|
human: t.Optional[bool] = None,
|
|
242
|
-
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
243
242
|
pretty: t.Optional[bool] = None,
|
|
244
243
|
) -> ObjectApiResponse[t.Any]:
|
|
245
244
|
"""
|
|
246
245
|
.. raw:: html
|
|
247
246
|
|
|
248
|
-
<p>Get GeoIP database configurations
|
|
249
|
-
Get information about one or more IP geolocation database configurations.</p>
|
|
247
|
+
<p>Get GeoIP database configurations.</p>
|
|
248
|
+
<p>Get information about one or more IP geolocation database configurations.</p>
|
|
250
249
|
|
|
251
250
|
|
|
252
|
-
`<https://www.elastic.co/
|
|
251
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-ingest-get-geoip-database>`_
|
|
253
252
|
|
|
254
|
-
:param id:
|
|
255
|
-
(`*`) expressions are supported. To get all database configurations,
|
|
256
|
-
this parameter or use `*`.
|
|
257
|
-
:param master_timeout: Period to wait for a connection to the master node. If
|
|
258
|
-
no response is received before the timeout expires, the request fails and
|
|
259
|
-
returns an error.
|
|
253
|
+
:param id: A comma-separated list of database configuration IDs to retrieve.
|
|
254
|
+
Wildcard (`*`) expressions are supported. To get all database configurations,
|
|
255
|
+
omit this parameter or use `*`.
|
|
260
256
|
"""
|
|
261
257
|
__path_parts: t.Dict[str, str]
|
|
262
258
|
if id not in SKIP_IN_PATH:
|
|
@@ -272,8 +268,6 @@ class IngestClient(NamespacedClient):
|
|
|
272
268
|
__query["filter_path"] = filter_path
|
|
273
269
|
if human is not None:
|
|
274
270
|
__query["human"] = human
|
|
275
|
-
if master_timeout is not None:
|
|
276
|
-
__query["master_timeout"] = master_timeout
|
|
277
271
|
if pretty is not None:
|
|
278
272
|
__query["pretty"] = pretty
|
|
279
273
|
__headers = {"accept": "application/json"}
|
|
@@ -303,7 +297,7 @@ class IngestClient(NamespacedClient):
|
|
|
303
297
|
<p>Get IP geolocation database configurations.</p>
|
|
304
298
|
|
|
305
299
|
|
|
306
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
300
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/get-ip-location-database-api.html>`_
|
|
307
301
|
|
|
308
302
|
:param id: Comma-separated list of database configuration IDs to retrieve. Wildcard
|
|
309
303
|
(`*`) expressions are supported. To get all database configurations, omit
|
|
@@ -356,12 +350,12 @@ class IngestClient(NamespacedClient):
|
|
|
356
350
|
"""
|
|
357
351
|
.. raw:: html
|
|
358
352
|
|
|
359
|
-
<p>Get pipelines
|
|
360
|
-
Get information about one or more ingest pipelines.
|
|
353
|
+
<p>Get pipelines.</p>
|
|
354
|
+
<p>Get information about one or more ingest pipelines.
|
|
361
355
|
This API returns a local reference of the pipeline.</p>
|
|
362
356
|
|
|
363
357
|
|
|
364
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
358
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/get-pipeline-api.html>`_
|
|
365
359
|
|
|
366
360
|
:param id: Comma-separated list of pipeline IDs to retrieve. Wildcard (`*`) expressions
|
|
367
361
|
are supported. To get all ingest pipelines, omit this parameter or use `*`.
|
|
@@ -418,7 +412,7 @@ class IngestClient(NamespacedClient):
|
|
|
418
412
|
A grok pattern is like a regular expression that supports aliased expressions that can be reused.</p>
|
|
419
413
|
|
|
420
414
|
|
|
421
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
415
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/grok-processor.html>`_
|
|
422
416
|
"""
|
|
423
417
|
__path_parts: t.Dict[str, str] = {}
|
|
424
418
|
__path = "/_ingest/processor/grok"
|
|
@@ -461,11 +455,11 @@ class IngestClient(NamespacedClient):
|
|
|
461
455
|
"""
|
|
462
456
|
.. raw:: html
|
|
463
457
|
|
|
464
|
-
<p>Create or update a GeoIP database configuration
|
|
465
|
-
Refer to the create or update IP geolocation database configuration API.</p>
|
|
458
|
+
<p>Create or update a GeoIP database configuration.</p>
|
|
459
|
+
<p>Refer to the create or update IP geolocation database configuration API.</p>
|
|
466
460
|
|
|
467
461
|
|
|
468
|
-
`<https://www.elastic.co/
|
|
462
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-ingest-put-geoip-database>`_
|
|
469
463
|
|
|
470
464
|
:param id: ID of the database configuration to create or update.
|
|
471
465
|
:param maxmind: The configuration necessary to identify which IP geolocation
|
|
@@ -540,7 +534,7 @@ class IngestClient(NamespacedClient):
|
|
|
540
534
|
<p>Create or update an IP geolocation database configuration.</p>
|
|
541
535
|
|
|
542
536
|
|
|
543
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
537
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/put-ip-location-database-api.html>`_
|
|
544
538
|
|
|
545
539
|
:param id: The database configuration identifier.
|
|
546
540
|
:param configuration:
|
|
@@ -626,7 +620,7 @@ class IngestClient(NamespacedClient):
|
|
|
626
620
|
Changes made using this API take effect immediately.</p>
|
|
627
621
|
|
|
628
622
|
|
|
629
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
623
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/ingest.html>`_
|
|
630
624
|
|
|
631
625
|
:param id: ID of the ingest pipeline to create or update.
|
|
632
626
|
:param deprecated: Marks this ingest pipeline as deprecated. When a deprecated
|
|
@@ -718,17 +712,17 @@ class IngestClient(NamespacedClient):
|
|
|
718
712
|
"""
|
|
719
713
|
.. raw:: html
|
|
720
714
|
|
|
721
|
-
<p>Simulate a pipeline
|
|
722
|
-
Run an ingest pipeline against a set of provided documents.
|
|
715
|
+
<p>Simulate a pipeline.</p>
|
|
716
|
+
<p>Run an ingest pipeline against a set of provided documents.
|
|
723
717
|
You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request.</p>
|
|
724
718
|
|
|
725
719
|
|
|
726
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
720
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/simulate-pipeline-api.html>`_
|
|
727
721
|
|
|
728
722
|
:param docs: Sample documents to test in the pipeline.
|
|
729
|
-
:param id:
|
|
723
|
+
:param id: The pipeline to test. If you don't specify a `pipeline` in the request
|
|
730
724
|
body, this parameter is required.
|
|
731
|
-
:param pipeline:
|
|
725
|
+
:param pipeline: The pipeline to test. If you don't specify the `pipeline` request
|
|
732
726
|
path parameter, this parameter is required. If you specify both this and
|
|
733
727
|
the request path parameter, the API only uses the request path parameter.
|
|
734
728
|
:param verbose: If `true`, the response includes output data for each processor
|
|
@@ -32,17 +32,23 @@ class LicenseClient(NamespacedClient):
|
|
|
32
32
|
error_trace: t.Optional[bool] = None,
|
|
33
33
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
34
34
|
human: t.Optional[bool] = None,
|
|
35
|
+
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
35
36
|
pretty: t.Optional[bool] = None,
|
|
37
|
+
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
36
38
|
) -> ObjectApiResponse[t.Any]:
|
|
37
39
|
"""
|
|
38
40
|
.. raw:: html
|
|
39
41
|
|
|
40
|
-
<p>Delete the license
|
|
41
|
-
When the license expires, your subscription level reverts to Basic.</p>
|
|
42
|
+
<p>Delete the license.</p>
|
|
43
|
+
<p>When the license expires, your subscription level reverts to Basic.</p>
|
|
42
44
|
<p>If the operator privileges feature is enabled, only operator users can use this API.</p>
|
|
43
45
|
|
|
44
46
|
|
|
45
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
47
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/delete-license.html>`_
|
|
48
|
+
|
|
49
|
+
:param master_timeout: The period to wait for a connection to the master node.
|
|
50
|
+
:param timeout: The period to wait for a response. If no response is received
|
|
51
|
+
before the timeout expires, the request fails and returns an error.
|
|
46
52
|
"""
|
|
47
53
|
__path_parts: t.Dict[str, str] = {}
|
|
48
54
|
__path = "/_license"
|
|
@@ -53,8 +59,12 @@ class LicenseClient(NamespacedClient):
|
|
|
53
59
|
__query["filter_path"] = filter_path
|
|
54
60
|
if human is not None:
|
|
55
61
|
__query["human"] = human
|
|
62
|
+
if master_timeout is not None:
|
|
63
|
+
__query["master_timeout"] = master_timeout
|
|
56
64
|
if pretty is not None:
|
|
57
65
|
__query["pretty"] = pretty
|
|
66
|
+
if timeout is not None:
|
|
67
|
+
__query["timeout"] = timeout
|
|
58
68
|
__headers = {"accept": "application/json"}
|
|
59
69
|
return await self.perform_request( # type: ignore[return-value]
|
|
60
70
|
"DELETE",
|
|
@@ -79,13 +89,16 @@ class LicenseClient(NamespacedClient):
|
|
|
79
89
|
"""
|
|
80
90
|
.. raw:: html
|
|
81
91
|
|
|
82
|
-
<p>Get license information
|
|
83
|
-
Get information about your Elastic license including its type, its status, when it was issued, and when it expires.</p>
|
|
84
|
-
<
|
|
92
|
+
<p>Get license information.</p>
|
|
93
|
+
<p>Get information about your Elastic license including its type, its status, when it was issued, and when it expires.</p>
|
|
94
|
+
<blockquote>
|
|
95
|
+
<p>info
|
|
96
|
+
If the master node is generating a new cluster state, the get license API may return a <code>404 Not Found</code> response.
|
|
85
97
|
If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request.</p>
|
|
98
|
+
</blockquote>
|
|
86
99
|
|
|
87
100
|
|
|
88
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
101
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/get-license.html>`_
|
|
89
102
|
|
|
90
103
|
:param accept_enterprise: If `true`, this parameter returns enterprise for Enterprise
|
|
91
104
|
license types. If `false`, this parameter returns platinum for both platinum
|
|
@@ -134,7 +147,7 @@ class LicenseClient(NamespacedClient):
|
|
|
134
147
|
<p>Get the basic license status.</p>
|
|
135
148
|
|
|
136
149
|
|
|
137
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
150
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/get-basic-status.html>`_
|
|
138
151
|
"""
|
|
139
152
|
__path_parts: t.Dict[str, str] = {}
|
|
140
153
|
__path = "/_license/basic_status"
|
|
@@ -172,7 +185,7 @@ class LicenseClient(NamespacedClient):
|
|
|
172
185
|
<p>Get the trial status.</p>
|
|
173
186
|
|
|
174
187
|
|
|
175
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
188
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/get-trial-status.html>`_
|
|
176
189
|
"""
|
|
177
190
|
__path_parts: t.Dict[str, str] = {}
|
|
178
191
|
__path = "/_license/trial_status"
|
|
@@ -207,14 +220,16 @@ class LicenseClient(NamespacedClient):
|
|
|
207
220
|
human: t.Optional[bool] = None,
|
|
208
221
|
license: t.Optional[t.Mapping[str, t.Any]] = None,
|
|
209
222
|
licenses: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
|
|
223
|
+
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
210
224
|
pretty: t.Optional[bool] = None,
|
|
225
|
+
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
211
226
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
212
227
|
) -> ObjectApiResponse[t.Any]:
|
|
213
228
|
"""
|
|
214
229
|
.. raw:: html
|
|
215
230
|
|
|
216
|
-
<p>Update the license
|
|
217
|
-
You can update your license at runtime without shutting down your nodes.
|
|
231
|
+
<p>Update the license.</p>
|
|
232
|
+
<p>You can update your license at runtime without shutting down your nodes.
|
|
218
233
|
License updates take effect immediately.
|
|
219
234
|
If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response.
|
|
220
235
|
You must then re-submit the API request with the acknowledge parameter set to true.</p>
|
|
@@ -222,12 +237,15 @@ class LicenseClient(NamespacedClient):
|
|
|
222
237
|
If the operator privileges feature is enabled, only operator users can use this API.</p>
|
|
223
238
|
|
|
224
239
|
|
|
225
|
-
`<https://www.elastic.co/
|
|
240
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-license-post>`_
|
|
226
241
|
|
|
227
242
|
:param acknowledge: Specifies whether you acknowledge the license changes.
|
|
228
243
|
:param license:
|
|
229
244
|
:param licenses: A sequence of one or more JSON documents containing the license
|
|
230
245
|
information.
|
|
246
|
+
:param master_timeout: The period to wait for a connection to the master node.
|
|
247
|
+
:param timeout: The period to wait for a response. If no response is received
|
|
248
|
+
before the timeout expires, the request fails and returns an error.
|
|
231
249
|
"""
|
|
232
250
|
__path_parts: t.Dict[str, str] = {}
|
|
233
251
|
__path = "/_license"
|
|
@@ -241,8 +259,12 @@ class LicenseClient(NamespacedClient):
|
|
|
241
259
|
__query["filter_path"] = filter_path
|
|
242
260
|
if human is not None:
|
|
243
261
|
__query["human"] = human
|
|
262
|
+
if master_timeout is not None:
|
|
263
|
+
__query["master_timeout"] = master_timeout
|
|
244
264
|
if pretty is not None:
|
|
245
265
|
__query["pretty"] = pretty
|
|
266
|
+
if timeout is not None:
|
|
267
|
+
__query["timeout"] = timeout
|
|
246
268
|
if not __body:
|
|
247
269
|
if license is not None:
|
|
248
270
|
__body["license"] = license
|
|
@@ -271,23 +293,28 @@ class LicenseClient(NamespacedClient):
|
|
|
271
293
|
error_trace: t.Optional[bool] = None,
|
|
272
294
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
273
295
|
human: t.Optional[bool] = None,
|
|
296
|
+
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
274
297
|
pretty: t.Optional[bool] = None,
|
|
298
|
+
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
275
299
|
) -> ObjectApiResponse[t.Any]:
|
|
276
300
|
"""
|
|
277
301
|
.. raw:: html
|
|
278
302
|
|
|
279
|
-
<p>Start a basic license
|
|
280
|
-
Start an indefinite basic license, which gives access to all the basic features.</p>
|
|
303
|
+
<p>Start a basic license.</p>
|
|
304
|
+
<p>Start an indefinite basic license, which gives access to all the basic features.</p>
|
|
281
305
|
<p>NOTE: In order to start a basic license, you must not currently have a basic license.</p>
|
|
282
306
|
<p>If the basic license does not support all of the features that are available with your current license, however, you are notified in the response.
|
|
283
307
|
You must then re-submit the API request with the <code>acknowledge</code> parameter set to <code>true</code>.</p>
|
|
284
308
|
<p>To check the status of your basic license, use the get basic license API.</p>
|
|
285
309
|
|
|
286
310
|
|
|
287
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
311
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/start-basic.html>`_
|
|
288
312
|
|
|
289
313
|
:param acknowledge: whether the user has acknowledged acknowledge messages (default:
|
|
290
314
|
false)
|
|
315
|
+
:param master_timeout: Period to wait for a connection to the master node.
|
|
316
|
+
:param timeout: Period to wait for a response. If no response is received before
|
|
317
|
+
the timeout expires, the request fails and returns an error.
|
|
291
318
|
"""
|
|
292
319
|
__path_parts: t.Dict[str, str] = {}
|
|
293
320
|
__path = "/_license/start_basic"
|
|
@@ -300,8 +327,12 @@ class LicenseClient(NamespacedClient):
|
|
|
300
327
|
__query["filter_path"] = filter_path
|
|
301
328
|
if human is not None:
|
|
302
329
|
__query["human"] = human
|
|
330
|
+
if master_timeout is not None:
|
|
331
|
+
__query["master_timeout"] = master_timeout
|
|
303
332
|
if pretty is not None:
|
|
304
333
|
__query["pretty"] = pretty
|
|
334
|
+
if timeout is not None:
|
|
335
|
+
__query["timeout"] = timeout
|
|
305
336
|
__headers = {"accept": "application/json"}
|
|
306
337
|
return await self.perform_request( # type: ignore[return-value]
|
|
307
338
|
"POST",
|
|
@@ -320,6 +351,7 @@ class LicenseClient(NamespacedClient):
|
|
|
320
351
|
error_trace: t.Optional[bool] = None,
|
|
321
352
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
322
353
|
human: t.Optional[bool] = None,
|
|
354
|
+
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
323
355
|
pretty: t.Optional[bool] = None,
|
|
324
356
|
type_query_string: t.Optional[str] = None,
|
|
325
357
|
) -> ObjectApiResponse[t.Any]:
|
|
@@ -333,10 +365,11 @@ class LicenseClient(NamespacedClient):
|
|
|
333
365
|
<p>To check the status of your trial, use the get trial status API.</p>
|
|
334
366
|
|
|
335
367
|
|
|
336
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
368
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/start-trial.html>`_
|
|
337
369
|
|
|
338
370
|
:param acknowledge: whether the user has acknowledged acknowledge messages (default:
|
|
339
371
|
false)
|
|
372
|
+
:param master_timeout: Period to wait for a connection to the master node.
|
|
340
373
|
:param type_query_string:
|
|
341
374
|
"""
|
|
342
375
|
__path_parts: t.Dict[str, str] = {}
|
|
@@ -350,6 +383,8 @@ class LicenseClient(NamespacedClient):
|
|
|
350
383
|
__query["filter_path"] = filter_path
|
|
351
384
|
if human is not None:
|
|
352
385
|
__query["human"] = human
|
|
386
|
+
if master_timeout is not None:
|
|
387
|
+
__query["master_timeout"] = master_timeout
|
|
353
388
|
if pretty is not None:
|
|
354
389
|
__query["pretty"] = pretty
|
|
355
390
|
if type_query_string is not None:
|
|
@@ -43,7 +43,7 @@ class LogstashClient(NamespacedClient):
|
|
|
43
43
|
If the request succeeds, you receive an empty response with an appropriate status code.</p>
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
46
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/logstash-api-delete-pipeline.html>`_
|
|
47
47
|
|
|
48
48
|
:param id: An identifier for the pipeline.
|
|
49
49
|
"""
|
|
@@ -87,7 +87,7 @@ class LogstashClient(NamespacedClient):
|
|
|
87
87
|
Get pipelines that are used for Logstash Central Management.</p>
|
|
88
88
|
|
|
89
89
|
|
|
90
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
90
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/logstash-api-get-pipeline.html>`_
|
|
91
91
|
|
|
92
92
|
:param id: A comma-separated list of pipeline identifiers.
|
|
93
93
|
"""
|
|
@@ -139,7 +139,7 @@ class LogstashClient(NamespacedClient):
|
|
|
139
139
|
If the specified pipeline exists, it is replaced.</p>
|
|
140
140
|
|
|
141
141
|
|
|
142
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
142
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/logstash-api-put-pipeline.html>`_
|
|
143
143
|
|
|
144
144
|
:param id: An identifier for the pipeline.
|
|
145
145
|
:param pipeline:
|
|
@@ -44,7 +44,7 @@ class MigrationClient(NamespacedClient):
|
|
|
44
44
|
You are strongly recommended to use the Upgrade Assistant.</p>
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
47
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/migration-api-deprecation.html>`_
|
|
48
48
|
|
|
49
49
|
:param index: Comma-separate list of data streams or indices to check. Wildcard
|
|
50
50
|
(*) expressions are supported.
|
|
@@ -94,7 +94,7 @@ class MigrationClient(NamespacedClient):
|
|
|
94
94
|
You are strongly recommended to use the Upgrade Assistant.</p>
|
|
95
95
|
|
|
96
96
|
|
|
97
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
97
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/feature-migration-api.html>`_
|
|
98
98
|
"""
|
|
99
99
|
__path_parts: t.Dict[str, str] = {}
|
|
100
100
|
__path = "/_migration/system_features"
|
|
@@ -136,7 +136,7 @@ class MigrationClient(NamespacedClient):
|
|
|
136
136
|
<p>TIP: The API is designed for indirect use by the Upgrade Assistant. We strongly recommend you use the Upgrade Assistant.</p>
|
|
137
137
|
|
|
138
138
|
|
|
139
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
139
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/feature-migration-api.html>`_
|
|
140
140
|
"""
|
|
141
141
|
__path_parts: t.Dict[str, str] = {}
|
|
142
142
|
__path = "/_migration/system_features"
|