elasticsearch 8.11.0__py3-none-any.whl → 8.12.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 +493 -347
- elasticsearch/_async/client/async_search.py +108 -72
- elasticsearch/_async/client/autoscaling.py +13 -8
- elasticsearch/_async/client/cat.py +26 -26
- elasticsearch/_async/client/ccr.py +178 -117
- elasticsearch/_async/client/cluster.py +56 -48
- elasticsearch/_async/client/dangling_indices.py +3 -3
- elasticsearch/_async/client/enrich.py +15 -13
- elasticsearch/_async/client/eql.py +53 -36
- elasticsearch/_async/client/esql.py +99 -0
- elasticsearch/_async/client/features.py +2 -2
- elasticsearch/_async/client/fleet.py +111 -71
- elasticsearch/_async/client/graph.py +13 -11
- elasticsearch/_async/client/ilm.py +33 -27
- elasticsearch/_async/client/indices.py +326 -227
- elasticsearch/_async/client/inference.py +212 -0
- elasticsearch/_async/client/ingest.py +28 -24
- elasticsearch/_async/client/license.py +15 -13
- elasticsearch/_async/client/logstash.py +13 -10
- elasticsearch/_async/client/migration.py +3 -3
- elasticsearch/_async/client/ml.py +762 -538
- elasticsearch/_async/client/monitoring.py +10 -5
- elasticsearch/_async/client/nodes.py +13 -11
- elasticsearch/_async/client/query_ruleset.py +12 -10
- elasticsearch/_async/client/rollup.py +59 -46
- elasticsearch/_async/client/search_application.py +23 -16
- elasticsearch/_async/client/searchable_snapshots.py +23 -16
- elasticsearch/_async/client/security.py +393 -287
- elasticsearch/_async/client/shutdown.py +18 -14
- elasticsearch/_async/client/slm.py +23 -21
- elasticsearch/_async/client/snapshot.py +91 -65
- elasticsearch/_async/client/sql.py +81 -58
- elasticsearch/_async/client/ssl.py +1 -1
- elasticsearch/_async/client/synonyms.py +23 -19
- elasticsearch/_async/client/tasks.py +3 -3
- elasticsearch/_async/client/text_structure.py +10 -5
- elasticsearch/_async/client/transform.py +111 -75
- elasticsearch/_async/client/watcher.py +77 -55
- elasticsearch/_async/client/xpack.py +2 -2
- elasticsearch/_async/helpers.py +1 -1
- elasticsearch/_sync/client/__init__.py +493 -347
- elasticsearch/_sync/client/async_search.py +108 -72
- elasticsearch/_sync/client/autoscaling.py +13 -8
- elasticsearch/_sync/client/cat.py +26 -26
- elasticsearch/_sync/client/ccr.py +178 -117
- elasticsearch/_sync/client/cluster.py +56 -48
- elasticsearch/_sync/client/dangling_indices.py +3 -3
- elasticsearch/_sync/client/enrich.py +15 -13
- elasticsearch/_sync/client/eql.py +53 -36
- elasticsearch/_sync/client/esql.py +99 -0
- elasticsearch/_sync/client/features.py +2 -2
- elasticsearch/_sync/client/fleet.py +111 -71
- elasticsearch/_sync/client/graph.py +13 -11
- elasticsearch/_sync/client/ilm.py +33 -27
- elasticsearch/_sync/client/indices.py +326 -227
- elasticsearch/_sync/client/inference.py +212 -0
- elasticsearch/_sync/client/ingest.py +28 -24
- elasticsearch/_sync/client/license.py +15 -13
- elasticsearch/_sync/client/logstash.py +13 -10
- elasticsearch/_sync/client/migration.py +3 -3
- elasticsearch/_sync/client/ml.py +762 -538
- elasticsearch/_sync/client/monitoring.py +10 -5
- elasticsearch/_sync/client/nodes.py +13 -11
- elasticsearch/_sync/client/query_ruleset.py +12 -10
- elasticsearch/_sync/client/rollup.py +59 -46
- elasticsearch/_sync/client/search_application.py +23 -16
- elasticsearch/_sync/client/searchable_snapshots.py +23 -16
- elasticsearch/_sync/client/security.py +393 -287
- elasticsearch/_sync/client/shutdown.py +18 -14
- elasticsearch/_sync/client/slm.py +23 -21
- elasticsearch/_sync/client/snapshot.py +91 -65
- elasticsearch/_sync/client/sql.py +81 -58
- elasticsearch/_sync/client/ssl.py +1 -1
- elasticsearch/_sync/client/synonyms.py +23 -19
- elasticsearch/_sync/client/tasks.py +3 -3
- elasticsearch/_sync/client/text_structure.py +10 -5
- elasticsearch/_sync/client/transform.py +111 -75
- elasticsearch/_sync/client/utils.py +34 -10
- elasticsearch/_sync/client/watcher.py +77 -55
- elasticsearch/_sync/client/xpack.py +2 -2
- elasticsearch/_version.py +1 -1
- elasticsearch/client.py +2 -0
- elasticsearch/helpers/actions.py +1 -1
- {elasticsearch-8.11.0.dist-info → elasticsearch-8.12.0.dist-info}/METADATA +7 -4
- elasticsearch-8.12.0.dist-info/RECORD +103 -0
- {elasticsearch-8.11.0.dist-info → elasticsearch-8.12.0.dist-info}/WHEEL +1 -1
- elasticsearch-8.11.0.dist-info/RECORD +0 -99
- {elasticsearch-8.11.0.dist-info → elasticsearch-8.12.0.dist-info}/LICENSE +0 -0
- {elasticsearch-8.11.0.dist-info → elasticsearch-8.12.0.dist-info}/NOTICE +0 -0
- {elasticsearch-8.11.0.dist-info → elasticsearch-8.12.0.dist-info}/top_level.txt +0 -0
|
@@ -40,7 +40,7 @@ class SearchableSnapshotsClient(NamespacedClient):
|
|
|
40
40
|
"""
|
|
41
41
|
Retrieve node-level cache statistics about searchable snapshots.
|
|
42
42
|
|
|
43
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
43
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.12/searchable-snapshots-apis.html>`_
|
|
44
44
|
|
|
45
45
|
:param node_id: A comma-separated list of node IDs or names to limit the returned
|
|
46
46
|
information; use `_local` to return information from the node you're connecting
|
|
@@ -90,7 +90,7 @@ class SearchableSnapshotsClient(NamespacedClient):
|
|
|
90
90
|
"""
|
|
91
91
|
Clear the cache of searchable snapshots.
|
|
92
92
|
|
|
93
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
93
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.12/searchable-snapshots-apis.html>`_
|
|
94
94
|
|
|
95
95
|
:param index: A comma-separated list of index names
|
|
96
96
|
:param allow_no_indices: Whether to ignore if a wildcard indices expression resolves
|
|
@@ -126,14 +126,19 @@ class SearchableSnapshotsClient(NamespacedClient):
|
|
|
126
126
|
)
|
|
127
127
|
|
|
128
128
|
@_rewrite_parameters(
|
|
129
|
-
body_fields=
|
|
129
|
+
body_fields=(
|
|
130
|
+
"index",
|
|
131
|
+
"ignore_index_settings",
|
|
132
|
+
"index_settings",
|
|
133
|
+
"renamed_index",
|
|
134
|
+
),
|
|
130
135
|
)
|
|
131
136
|
def mount(
|
|
132
137
|
self,
|
|
133
138
|
*,
|
|
134
139
|
repository: str,
|
|
135
140
|
snapshot: str,
|
|
136
|
-
index: str,
|
|
141
|
+
index: t.Optional[str] = None,
|
|
137
142
|
error_trace: t.Optional[bool] = None,
|
|
138
143
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
139
144
|
human: t.Optional[bool] = None,
|
|
@@ -146,11 +151,12 @@ class SearchableSnapshotsClient(NamespacedClient):
|
|
|
146
151
|
renamed_index: t.Optional[str] = None,
|
|
147
152
|
storage: t.Optional[str] = None,
|
|
148
153
|
wait_for_completion: t.Optional[bool] = None,
|
|
154
|
+
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
149
155
|
) -> ObjectApiResponse[t.Any]:
|
|
150
156
|
"""
|
|
151
157
|
Mount a snapshot as a searchable index.
|
|
152
158
|
|
|
153
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
159
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.12/searchable-snapshots-api-mount-snapshot.html>`_
|
|
154
160
|
|
|
155
161
|
:param repository: The name of the repository containing the snapshot of the
|
|
156
162
|
index to mount
|
|
@@ -169,33 +175,34 @@ class SearchableSnapshotsClient(NamespacedClient):
|
|
|
169
175
|
raise ValueError("Empty value passed for parameter 'repository'")
|
|
170
176
|
if snapshot in SKIP_IN_PATH:
|
|
171
177
|
raise ValueError("Empty value passed for parameter 'snapshot'")
|
|
172
|
-
if index is None:
|
|
178
|
+
if index is None and body is None:
|
|
173
179
|
raise ValueError("Empty value passed for parameter 'index'")
|
|
174
180
|
__path = f"/_snapshot/{_quote(repository)}/{_quote(snapshot)}/_mount"
|
|
175
|
-
__body: t.Dict[str, t.Any] = {}
|
|
176
181
|
__query: t.Dict[str, t.Any] = {}
|
|
177
|
-
if
|
|
178
|
-
__body["index"] = index
|
|
182
|
+
__body: t.Dict[str, t.Any] = body if body is not None else {}
|
|
179
183
|
if error_trace is not None:
|
|
180
184
|
__query["error_trace"] = error_trace
|
|
181
185
|
if filter_path is not None:
|
|
182
186
|
__query["filter_path"] = filter_path
|
|
183
187
|
if human is not None:
|
|
184
188
|
__query["human"] = human
|
|
185
|
-
if ignore_index_settings is not None:
|
|
186
|
-
__body["ignore_index_settings"] = ignore_index_settings
|
|
187
|
-
if index_settings is not None:
|
|
188
|
-
__body["index_settings"] = index_settings
|
|
189
189
|
if master_timeout is not None:
|
|
190
190
|
__query["master_timeout"] = master_timeout
|
|
191
191
|
if pretty is not None:
|
|
192
192
|
__query["pretty"] = pretty
|
|
193
|
-
if renamed_index is not None:
|
|
194
|
-
__body["renamed_index"] = renamed_index
|
|
195
193
|
if storage is not None:
|
|
196
194
|
__query["storage"] = storage
|
|
197
195
|
if wait_for_completion is not None:
|
|
198
196
|
__query["wait_for_completion"] = wait_for_completion
|
|
197
|
+
if not __body:
|
|
198
|
+
if index is not None:
|
|
199
|
+
__body["index"] = index
|
|
200
|
+
if ignore_index_settings is not None:
|
|
201
|
+
__body["ignore_index_settings"] = ignore_index_settings
|
|
202
|
+
if index_settings is not None:
|
|
203
|
+
__body["index_settings"] = index_settings
|
|
204
|
+
if renamed_index is not None:
|
|
205
|
+
__body["renamed_index"] = renamed_index
|
|
199
206
|
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
200
207
|
return self.perform_request( # type: ignore[return-value]
|
|
201
208
|
"POST", __path, params=__query, headers=__headers, body=__body
|
|
@@ -217,7 +224,7 @@ class SearchableSnapshotsClient(NamespacedClient):
|
|
|
217
224
|
"""
|
|
218
225
|
Retrieve shard-level statistics about searchable snapshots.
|
|
219
226
|
|
|
220
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
227
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.12/searchable-snapshots-apis.html>`_
|
|
221
228
|
|
|
222
229
|
:param index: A comma-separated list of index names
|
|
223
230
|
:param level: Return stats aggregated at cluster, index or shard level
|