elasticsearch 8.15.0__py3-none-any.whl → 8.16.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 +202 -117
- elasticsearch/_async/client/async_search.py +25 -25
- elasticsearch/_async/client/autoscaling.py +24 -11
- elasticsearch/_async/client/cat.py +75 -66
- elasticsearch/_async/client/ccr.py +13 -13
- elasticsearch/_async/client/cluster.py +40 -37
- elasticsearch/_async/client/connector.py +112 -51
- elasticsearch/_async/client/dangling_indices.py +27 -12
- elasticsearch/_async/client/enrich.py +10 -10
- elasticsearch/_async/client/eql.py +4 -4
- elasticsearch/_async/client/esql.py +42 -4
- elasticsearch/_async/client/features.py +4 -3
- elasticsearch/_async/client/fleet.py +10 -2
- elasticsearch/_async/client/graph.py +1 -1
- elasticsearch/_async/client/ilm.py +16 -12
- elasticsearch/_async/client/indices.py +189 -108
- elasticsearch/_async/client/inference.py +15 -5
- elasticsearch/_async/client/ingest.py +200 -9
- elasticsearch/_async/client/license.py +10 -10
- elasticsearch/_async/client/logstash.py +3 -3
- elasticsearch/_async/client/migration.py +3 -3
- elasticsearch/_async/client/ml.py +294 -291
- elasticsearch/_async/client/monitoring.py +1 -1
- elasticsearch/_async/client/nodes.py +16 -8
- elasticsearch/_async/client/query_rules.py +61 -8
- elasticsearch/_async/client/rollup.py +23 -9
- elasticsearch/_async/client/search_application.py +35 -16
- elasticsearch/_async/client/searchable_snapshots.py +13 -5
- elasticsearch/_async/client/security.py +371 -180
- elasticsearch/_async/client/slm.py +9 -9
- elasticsearch/_async/client/snapshot.py +97 -12
- elasticsearch/_async/client/sql.py +11 -7
- elasticsearch/_async/client/ssl.py +18 -3
- elasticsearch/_async/client/synonyms.py +10 -8
- elasticsearch/_async/client/tasks.py +19 -9
- elasticsearch/_async/client/text_structure.py +2 -2
- elasticsearch/_async/client/transform.py +78 -72
- elasticsearch/_async/client/utils.py +4 -0
- elasticsearch/_async/client/watcher.py +11 -11
- elasticsearch/_async/client/xpack.py +5 -3
- elasticsearch/_async/helpers.py +19 -10
- elasticsearch/_otel.py +23 -1
- elasticsearch/_sync/client/__init__.py +202 -117
- elasticsearch/_sync/client/async_search.py +25 -25
- elasticsearch/_sync/client/autoscaling.py +24 -11
- elasticsearch/_sync/client/cat.py +75 -66
- elasticsearch/_sync/client/ccr.py +13 -13
- elasticsearch/_sync/client/cluster.py +40 -37
- elasticsearch/_sync/client/connector.py +112 -51
- elasticsearch/_sync/client/dangling_indices.py +27 -12
- elasticsearch/_sync/client/enrich.py +10 -10
- elasticsearch/_sync/client/eql.py +4 -4
- elasticsearch/_sync/client/esql.py +42 -4
- elasticsearch/_sync/client/features.py +4 -3
- elasticsearch/_sync/client/fleet.py +10 -2
- elasticsearch/_sync/client/graph.py +1 -1
- elasticsearch/_sync/client/ilm.py +16 -12
- elasticsearch/_sync/client/indices.py +189 -108
- elasticsearch/_sync/client/inference.py +15 -5
- elasticsearch/_sync/client/ingest.py +200 -9
- elasticsearch/_sync/client/license.py +10 -10
- elasticsearch/_sync/client/logstash.py +3 -3
- elasticsearch/_sync/client/migration.py +3 -3
- elasticsearch/_sync/client/ml.py +294 -291
- elasticsearch/_sync/client/monitoring.py +1 -1
- elasticsearch/_sync/client/nodes.py +16 -8
- elasticsearch/_sync/client/query_rules.py +61 -8
- elasticsearch/_sync/client/rollup.py +23 -9
- elasticsearch/_sync/client/search_application.py +35 -16
- elasticsearch/_sync/client/searchable_snapshots.py +13 -5
- elasticsearch/_sync/client/security.py +371 -180
- elasticsearch/_sync/client/slm.py +9 -9
- elasticsearch/_sync/client/snapshot.py +97 -12
- elasticsearch/_sync/client/sql.py +11 -7
- elasticsearch/_sync/client/ssl.py +18 -3
- elasticsearch/_sync/client/synonyms.py +10 -8
- elasticsearch/_sync/client/tasks.py +19 -9
- elasticsearch/_sync/client/text_structure.py +2 -2
- elasticsearch/_sync/client/transform.py +78 -72
- elasticsearch/_sync/client/utils.py +40 -0
- elasticsearch/_sync/client/watcher.py +11 -11
- elasticsearch/_sync/client/xpack.py +5 -3
- elasticsearch/_version.py +1 -1
- elasticsearch/exceptions.py +4 -0
- elasticsearch/helpers/actions.py +134 -111
- elasticsearch/helpers/errors.py +12 -4
- elasticsearch/helpers/vectorstore/_async/strategies.py +30 -9
- elasticsearch/helpers/vectorstore/_sync/strategies.py +30 -9
- {elasticsearch-8.15.0.dist-info → elasticsearch-8.16.0.dist-info}/METADATA +6 -7
- elasticsearch-8.16.0.dist-info/RECORD +117 -0
- {elasticsearch-8.15.0.dist-info → elasticsearch-8.16.0.dist-info}/WHEEL +1 -1
- elasticsearch-8.15.0.dist-info/RECORD +0 -117
- {elasticsearch-8.15.0.dist-info → elasticsearch-8.16.0.dist-info}/licenses/LICENSE +0 -0
- {elasticsearch-8.15.0.dist-info → elasticsearch-8.16.0.dist-info}/licenses/NOTICE +0 -0
|
@@ -46,7 +46,7 @@ class ClusterClient(NamespacedClient):
|
|
|
46
46
|
"""
|
|
47
47
|
Provides explanations for shard allocations in the cluster.
|
|
48
48
|
|
|
49
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
49
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-allocation-explain.html>`_
|
|
50
50
|
|
|
51
51
|
:param current_node: Specifies the node ID or the name of the node to only explain
|
|
52
52
|
a shard that is currently located on the specified node.
|
|
@@ -113,10 +113,11 @@ class ClusterClient(NamespacedClient):
|
|
|
113
113
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
114
114
|
) -> ObjectApiResponse[t.Any]:
|
|
115
115
|
"""
|
|
116
|
-
Deletes component templates. Component templates
|
|
117
|
-
index templates that specify index mappings,
|
|
116
|
+
Delete component templates. Deletes component templates. Component templates
|
|
117
|
+
are building blocks for constructing index templates that specify index mappings,
|
|
118
|
+
settings, and aliases.
|
|
118
119
|
|
|
119
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
120
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-component-template.html>`_
|
|
120
121
|
|
|
121
122
|
:param name: Comma-separated list or wildcard expression of component template
|
|
122
123
|
names used to limit the request.
|
|
@@ -166,7 +167,7 @@ class ClusterClient(NamespacedClient):
|
|
|
166
167
|
"""
|
|
167
168
|
Clears cluster voting config exclusions.
|
|
168
169
|
|
|
169
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
170
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/voting-config-exclusions.html>`_
|
|
170
171
|
|
|
171
172
|
:param wait_for_removal: Specifies whether to wait for all excluded nodes to
|
|
172
173
|
be removed from the cluster before clearing the voting configuration exclusions
|
|
@@ -211,9 +212,10 @@ class ClusterClient(NamespacedClient):
|
|
|
211
212
|
pretty: t.Optional[bool] = None,
|
|
212
213
|
) -> HeadApiResponse:
|
|
213
214
|
"""
|
|
214
|
-
Returns information about whether a particular component
|
|
215
|
+
Check component templates. Returns information about whether a particular component
|
|
216
|
+
template exists.
|
|
215
217
|
|
|
216
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
218
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-component-template.html>`_
|
|
217
219
|
|
|
218
220
|
:param name: Comma-separated list of component template names used to limit the
|
|
219
221
|
request. Wildcard (*) expressions are supported.
|
|
@@ -266,9 +268,9 @@ class ClusterClient(NamespacedClient):
|
|
|
266
268
|
pretty: t.Optional[bool] = None,
|
|
267
269
|
) -> ObjectApiResponse[t.Any]:
|
|
268
270
|
"""
|
|
269
|
-
Retrieves information about component templates.
|
|
271
|
+
Get component templates. Retrieves information about component templates.
|
|
270
272
|
|
|
271
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
273
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-component-template.html>`_
|
|
272
274
|
|
|
273
275
|
:param name: Comma-separated list of component template names used to limit the
|
|
274
276
|
request. Wildcard (`*`) expressions are supported.
|
|
@@ -332,7 +334,7 @@ class ClusterClient(NamespacedClient):
|
|
|
332
334
|
Returns cluster-wide settings. By default, it returns only settings that have
|
|
333
335
|
been explicitly defined.
|
|
334
336
|
|
|
335
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
337
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-get-settings.html>`_
|
|
336
338
|
|
|
337
339
|
:param flat_settings: If `true`, returns settings in flat format.
|
|
338
340
|
:param include_defaults: If `true`, returns default cluster settings from the
|
|
@@ -422,7 +424,7 @@ class ClusterClient(NamespacedClient):
|
|
|
422
424
|
by the worst shard status. The cluster status is controlled by the worst index
|
|
423
425
|
status.
|
|
424
426
|
|
|
425
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
427
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-health.html>`_
|
|
426
428
|
|
|
427
429
|
:param index: Comma-separated list of data streams, indices, and index aliases
|
|
428
430
|
used to limit the request. Wildcard expressions (`*`) are supported. To target
|
|
@@ -524,9 +526,9 @@ class ClusterClient(NamespacedClient):
|
|
|
524
526
|
pretty: t.Optional[bool] = None,
|
|
525
527
|
) -> ObjectApiResponse[t.Any]:
|
|
526
528
|
"""
|
|
527
|
-
Returns
|
|
529
|
+
Get cluster info. Returns basic information about the cluster.
|
|
528
530
|
|
|
529
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
531
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-info.html>`_
|
|
530
532
|
|
|
531
533
|
:param target: Limits the information returned to the specific target. Supports
|
|
532
534
|
a comma-separated list, such as http,ingest.
|
|
@@ -575,7 +577,7 @@ class ClusterClient(NamespacedClient):
|
|
|
575
577
|
update, the activity of this task might be reported by both task api and pending
|
|
576
578
|
cluster tasks API.
|
|
577
579
|
|
|
578
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
580
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-pending.html>`_
|
|
579
581
|
|
|
580
582
|
:param local: If `true`, the request retrieves information from the local node
|
|
581
583
|
only. If `false`, information is retrieved from the master node.
|
|
@@ -623,7 +625,7 @@ class ClusterClient(NamespacedClient):
|
|
|
623
625
|
"""
|
|
624
626
|
Updates the cluster voting config exclusions by node ids or node names.
|
|
625
627
|
|
|
626
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
628
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/voting-config-exclusions.html>`_
|
|
627
629
|
|
|
628
630
|
:param node_ids: A comma-separated list of the persistent ids of the nodes to
|
|
629
631
|
exclude from the voting configuration. If specified, you may not also specify
|
|
@@ -683,24 +685,25 @@ class ClusterClient(NamespacedClient):
|
|
|
683
685
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
684
686
|
) -> ObjectApiResponse[t.Any]:
|
|
685
687
|
"""
|
|
686
|
-
|
|
687
|
-
for constructing index templates that
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
688
|
+
Create or update a component template. Creates or updates a component template.
|
|
689
|
+
Component templates are building blocks for constructing index templates that
|
|
690
|
+
specify index mappings, settings, and aliases. An index template can be composed
|
|
691
|
+
of multiple component templates. To use a component template, specify it in an
|
|
692
|
+
index template’s `composed_of` list. Component templates are only applied to
|
|
693
|
+
new data streams and indices as part of a matching index template. Settings and
|
|
694
|
+
mappings specified directly in the index template or the create index request
|
|
695
|
+
override any settings or mappings specified in a component template. Component
|
|
696
|
+
templates are only used during index creation. For data streams, this includes
|
|
697
|
+
data stream creation and the creation of a stream’s backing indices. Changes
|
|
698
|
+
to component templates do not affect existing indices, including a stream’s backing
|
|
699
|
+
indices. You can use C-style `/* *\\/` block comments in component templates.
|
|
697
700
|
You can include comments anywhere in the request body except before the opening
|
|
698
701
|
curly bracket.
|
|
699
702
|
|
|
700
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
703
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-component-template.html>`_
|
|
701
704
|
|
|
702
705
|
:param name: Name of the component template to create. Elasticsearch includes
|
|
703
|
-
the following built-in component templates: `logs-mappings`;
|
|
706
|
+
the following built-in component templates: `logs-mappings`; `logs-settings`;
|
|
704
707
|
`metrics-mappings`; `metrics-settings`;`synthetics-mapping`; `synthetics-settings`.
|
|
705
708
|
Elastic Agent uses these templates to configure backing indices for its data
|
|
706
709
|
streams. If you use Elastic Agent and want to overwrite one of these templates,
|
|
@@ -786,7 +789,7 @@ class ClusterClient(NamespacedClient):
|
|
|
786
789
|
"""
|
|
787
790
|
Updates the cluster settings.
|
|
788
791
|
|
|
789
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
792
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-update-settings.html>`_
|
|
790
793
|
|
|
791
794
|
:param flat_settings: Return settings in flat format (default: false)
|
|
792
795
|
:param master_timeout: Explicit operation timeout for connection to master node
|
|
@@ -842,7 +845,7 @@ class ClusterClient(NamespacedClient):
|
|
|
842
845
|
cluster information. It returns connection and endpoint information keyed by
|
|
843
846
|
the configured remote cluster alias.
|
|
844
847
|
|
|
845
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
848
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-remote-info.html>`_
|
|
846
849
|
"""
|
|
847
850
|
__path_parts: t.Dict[str, str] = {}
|
|
848
851
|
__path = "/_remote/info"
|
|
@@ -887,7 +890,7 @@ class ClusterClient(NamespacedClient):
|
|
|
887
890
|
"""
|
|
888
891
|
Allows to manually change the allocation of individual shards in the cluster.
|
|
889
892
|
|
|
890
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
893
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-reroute.html>`_
|
|
891
894
|
|
|
892
895
|
:param commands: Defines the commands to perform.
|
|
893
896
|
:param dry_run: If true, then the request simulates the operation only and returns
|
|
@@ -974,7 +977,7 @@ class ClusterClient(NamespacedClient):
|
|
|
974
977
|
"""
|
|
975
978
|
Returns a comprehensive information about the state of the cluster.
|
|
976
979
|
|
|
977
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
980
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-state.html>`_
|
|
978
981
|
|
|
979
982
|
:param metric: Limit the information returned to the specified metrics
|
|
980
983
|
:param index: A comma-separated list of index names; use `_all` or empty string
|
|
@@ -1050,8 +1053,8 @@ class ClusterClient(NamespacedClient):
|
|
|
1050
1053
|
node_id: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
1051
1054
|
error_trace: t.Optional[bool] = None,
|
|
1052
1055
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
1053
|
-
flat_settings: t.Optional[bool] = None,
|
|
1054
1056
|
human: t.Optional[bool] = None,
|
|
1057
|
+
include_remotes: t.Optional[bool] = None,
|
|
1055
1058
|
pretty: t.Optional[bool] = None,
|
|
1056
1059
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
1057
1060
|
) -> ObjectApiResponse[t.Any]:
|
|
@@ -1060,11 +1063,11 @@ class ClusterClient(NamespacedClient):
|
|
|
1060
1063
|
size, memory usage) and information about the current nodes that form the cluster
|
|
1061
1064
|
(number, roles, os, jvm versions, memory usage, cpu and installed plugins).
|
|
1062
1065
|
|
|
1063
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1066
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-stats.html>`_
|
|
1064
1067
|
|
|
1065
1068
|
:param node_id: Comma-separated list of node filters used to limit returned information.
|
|
1066
1069
|
Defaults to all nodes in the cluster.
|
|
1067
|
-
:param
|
|
1070
|
+
:param include_remotes: Include remote cluster data into the response
|
|
1068
1071
|
:param timeout: Period to wait for each node to respond. If a node does not respond
|
|
1069
1072
|
before its timeout expires, the response does not include its stats. However,
|
|
1070
1073
|
timed out nodes are included in the response’s `_nodes.failed` property.
|
|
@@ -1082,10 +1085,10 @@ class ClusterClient(NamespacedClient):
|
|
|
1082
1085
|
__query["error_trace"] = error_trace
|
|
1083
1086
|
if filter_path is not None:
|
|
1084
1087
|
__query["filter_path"] = filter_path
|
|
1085
|
-
if flat_settings is not None:
|
|
1086
|
-
__query["flat_settings"] = flat_settings
|
|
1087
1088
|
if human is not None:
|
|
1088
1089
|
__query["human"] = human
|
|
1090
|
+
if include_remotes is not None:
|
|
1091
|
+
__query["include_remotes"] = include_remotes
|
|
1089
1092
|
if pretty is not None:
|
|
1090
1093
|
__query["pretty"] = pretty
|
|
1091
1094
|
if timeout is not None:
|