elasticsearch 8.17.0__py3-none-any.whl → 8.17.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.
Files changed (68) hide show
  1. elasticsearch/_async/client/__init__.py +153 -51
  2. elasticsearch/_async/client/cat.py +64 -195
  3. elasticsearch/_async/client/cluster.py +19 -19
  4. elasticsearch/_async/client/connector.py +337 -0
  5. elasticsearch/_async/client/dangling_indices.py +3 -3
  6. elasticsearch/_async/client/ilm.py +6 -6
  7. elasticsearch/_async/client/indices.py +360 -81
  8. elasticsearch/_async/client/inference.py +94 -1
  9. elasticsearch/_async/client/ingest.py +175 -2
  10. elasticsearch/_async/client/logstash.py +9 -6
  11. elasticsearch/_async/client/migration.py +16 -7
  12. elasticsearch/_async/client/ml.py +12 -6
  13. elasticsearch/_async/client/monitoring.py +2 -1
  14. elasticsearch/_async/client/nodes.py +3 -3
  15. elasticsearch/_async/client/query_rules.py +33 -12
  16. elasticsearch/_async/client/rollup.py +88 -13
  17. elasticsearch/_async/client/search_application.py +130 -1
  18. elasticsearch/_async/client/searchable_snapshots.py +32 -23
  19. elasticsearch/_async/client/security.py +676 -55
  20. elasticsearch/_async/client/shutdown.py +38 -15
  21. elasticsearch/_async/client/simulate.py +151 -0
  22. elasticsearch/_async/client/slm.py +138 -19
  23. elasticsearch/_async/client/snapshot.py +307 -23
  24. elasticsearch/_async/client/sql.py +66 -46
  25. elasticsearch/_async/client/synonyms.py +39 -19
  26. elasticsearch/_async/client/tasks.py +68 -28
  27. elasticsearch/_async/client/text_structure.py +466 -46
  28. elasticsearch/_async/client/transform.py +9 -2
  29. elasticsearch/_async/client/watcher.py +207 -41
  30. elasticsearch/_async/client/xpack.py +11 -6
  31. elasticsearch/_sync/client/__init__.py +153 -51
  32. elasticsearch/_sync/client/cat.py +64 -195
  33. elasticsearch/_sync/client/cluster.py +19 -19
  34. elasticsearch/_sync/client/connector.py +337 -0
  35. elasticsearch/_sync/client/dangling_indices.py +3 -3
  36. elasticsearch/_sync/client/ilm.py +6 -6
  37. elasticsearch/_sync/client/indices.py +360 -81
  38. elasticsearch/_sync/client/inference.py +94 -1
  39. elasticsearch/_sync/client/ingest.py +175 -2
  40. elasticsearch/_sync/client/logstash.py +9 -6
  41. elasticsearch/_sync/client/migration.py +16 -7
  42. elasticsearch/_sync/client/ml.py +12 -6
  43. elasticsearch/_sync/client/monitoring.py +2 -1
  44. elasticsearch/_sync/client/nodes.py +3 -3
  45. elasticsearch/_sync/client/query_rules.py +33 -12
  46. elasticsearch/_sync/client/rollup.py +88 -13
  47. elasticsearch/_sync/client/search_application.py +130 -1
  48. elasticsearch/_sync/client/searchable_snapshots.py +32 -23
  49. elasticsearch/_sync/client/security.py +676 -55
  50. elasticsearch/_sync/client/shutdown.py +38 -15
  51. elasticsearch/_sync/client/simulate.py +151 -0
  52. elasticsearch/_sync/client/slm.py +138 -19
  53. elasticsearch/_sync/client/snapshot.py +307 -23
  54. elasticsearch/_sync/client/sql.py +66 -46
  55. elasticsearch/_sync/client/synonyms.py +39 -19
  56. elasticsearch/_sync/client/tasks.py +68 -28
  57. elasticsearch/_sync/client/text_structure.py +466 -46
  58. elasticsearch/_sync/client/transform.py +9 -2
  59. elasticsearch/_sync/client/watcher.py +207 -41
  60. elasticsearch/_sync/client/xpack.py +11 -6
  61. elasticsearch/_version.py +1 -1
  62. elasticsearch/client.py +2 -0
  63. {elasticsearch-8.17.0.dist-info → elasticsearch-8.17.1.dist-info}/METADATA +1 -1
  64. elasticsearch-8.17.1.dist-info/RECORD +119 -0
  65. elasticsearch-8.17.0.dist-info/RECORD +0 -117
  66. {elasticsearch-8.17.0.dist-info → elasticsearch-8.17.1.dist-info}/WHEEL +0 -0
  67. {elasticsearch-8.17.0.dist-info → elasticsearch-8.17.1.dist-info}/licenses/LICENSE +0 -0
  68. {elasticsearch-8.17.0.dist-info → elasticsearch-8.17.1.dist-info}/licenses/NOTICE +0 -0
@@ -43,7 +43,20 @@ class RollupClient(NamespacedClient):
43
43
  pretty: t.Optional[bool] = None,
44
44
  ) -> ObjectApiResponse[t.Any]:
45
45
  """
46
- Deletes an existing rollup job.
46
+ Delete a rollup job. A job must be stopped before it can be deleted. If you attempt
47
+ to delete a started job, an error occurs. Similarly, if you attempt to delete
48
+ a nonexistent job, an exception occurs. IMPORTANT: When you delete a job, you
49
+ remove only the process that is actively monitoring and rolling up data. The
50
+ API does not delete any previously rolled up data. This is by design; a user
51
+ may wish to roll up a static data set. Because the data set is static, after
52
+ it has been fully rolled up there is no need to keep the indexing rollup job
53
+ around (as there will be no new data). Thus the job can be deleted, leaving behind
54
+ the rolled up data for analysis. If you wish to also remove the rollup data and
55
+ the rollup index contains the data for only a single job, you can delete the
56
+ whole rollup index. If the rollup index stores data from several jobs, you must
57
+ issue a delete-by-query that targets the rollup job's identifier in the rollup
58
+ index. For example: ``` POST my_rollup_index/_delete_by_query { "query": { "term":
59
+ { "_rollup.id": "the_rollup_job_id" } } } ```
47
60
 
48
61
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/rollup-delete-job.html>`_
49
62
 
@@ -84,7 +97,11 @@ class RollupClient(NamespacedClient):
84
97
  pretty: t.Optional[bool] = None,
85
98
  ) -> ObjectApiResponse[t.Any]:
86
99
  """
87
- Retrieves the configuration, stats, and status of rollup jobs.
100
+ Get rollup job information. Get the configuration, stats, and status of rollup
101
+ jobs. NOTE: This API returns only active (both `STARTED` and `STOPPED`) jobs.
102
+ If a job was created, ran for a while, then was deleted, the API does not return
103
+ any details about it. For details about a historical rollup job, the rollup capabilities
104
+ API may be more useful.
88
105
 
89
106
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/rollup-get-job.html>`_
90
107
 
@@ -129,8 +146,15 @@ class RollupClient(NamespacedClient):
129
146
  pretty: t.Optional[bool] = None,
130
147
  ) -> ObjectApiResponse[t.Any]:
131
148
  """
132
- Returns the capabilities of any rollup jobs that have been configured for a specific
133
- index or index pattern.
149
+ Get the rollup job capabilities. Get the capabilities of any rollup jobs that
150
+ have been configured for a specific index or index pattern. This API is useful
151
+ because a rollup job is often configured to rollup only a subset of fields from
152
+ the source index. Furthermore, only certain aggregations can be configured for
153
+ various fields, leading to a limited subset of functionality depending on that
154
+ configuration. This API enables you to inspect an index and determine: 1. Does
155
+ this index have associated rollup data somewhere in the cluster? 2. If yes to
156
+ the first question, what fields were rolled up, what aggregations can be performed,
157
+ and where does the data live?
134
158
 
135
159
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/rollup-get-rollup-caps.html>`_
136
160
 
@@ -175,8 +199,12 @@ class RollupClient(NamespacedClient):
175
199
  pretty: t.Optional[bool] = None,
176
200
  ) -> ObjectApiResponse[t.Any]:
177
201
  """
178
- Returns the rollup capabilities of all jobs inside of a rollup index (for example,
179
- the index where rollup data is stored).
202
+ Get the rollup index capabilities. Get the rollup capabilities of all jobs inside
203
+ of a rollup index. A single rollup index may store the data for multiple rollup
204
+ jobs and may have a variety of capabilities depending on those jobs. This API
205
+ enables you to determine: * What jobs are stored in an index (or indices specified
206
+ via a pattern)? * What target indices were rolled up, what fields were used in
207
+ those rollups, and what aggregations can be performed on each job?
180
208
 
181
209
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/rollup-get-rollup-index-caps.html>`_
182
210
 
@@ -239,7 +267,16 @@ class RollupClient(NamespacedClient):
239
267
  body: t.Optional[t.Dict[str, t.Any]] = None,
240
268
  ) -> ObjectApiResponse[t.Any]:
241
269
  """
242
- Creates a rollup job.
270
+ Create a rollup job. WARNING: From 8.15.0, calling this API in a cluster with
271
+ no rollup usage will fail with a message about the deprecation and planned removal
272
+ of rollup features. A cluster needs to contain either a rollup job or a rollup
273
+ index in order for this API to be allowed to run. The rollup job configuration
274
+ contains all the details about how the job should run, when it indexes documents,
275
+ and what future queries will be able to run against the rollup index. There are
276
+ three main sections to the job configuration: the logistical details about the
277
+ job (for example, the cron schedule), the fields that are used for grouping,
278
+ and what metrics to collect for each group. Jobs are created in a `STOPPED` state.
279
+ You can start them with the start rollup jobs API.
243
280
 
244
281
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/rollup-put-job.html>`_
245
282
 
@@ -356,14 +393,41 @@ class RollupClient(NamespacedClient):
356
393
  body: t.Optional[t.Dict[str, t.Any]] = None,
357
394
  ) -> ObjectApiResponse[t.Any]:
358
395
  """
359
- Enables searching rolled-up data using the standard Query DSL.
396
+ Search rolled-up data. The rollup search endpoint is needed because, internally,
397
+ rolled-up documents utilize a different document structure than the original
398
+ data. It rewrites standard Query DSL into a format that matches the rollup documents
399
+ then takes the response and rewrites it back to what a client would expect given
400
+ the original query. The request body supports a subset of features from the regular
401
+ search API. The following functionality is not available: `size`: Because rollups
402
+ work on pre-aggregated data, no search hits can be returned and so size must
403
+ be set to zero or omitted entirely. `highlighter`, `suggestors`, `post_filter`,
404
+ `profile`, `explain`: These are similarly disallowed. **Searching both historical
405
+ rollup and non-rollup data** The rollup search API has the capability to search
406
+ across both "live" non-rollup data and the aggregated rollup data. This is done
407
+ by simply adding the live indices to the URI. For example: ``` GET sensor-1,sensor_rollup/_rollup_search
408
+ { "size": 0, "aggregations": { "max_temperature": { "max": { "field": "temperature"
409
+ } } } } ``` The rollup search endpoint does two things when the search runs:
410
+ * The original request is sent to the non-rollup index unaltered. * A rewritten
411
+ version of the original request is sent to the rollup index. When the two responses
412
+ are received, the endpoint rewrites the rollup response and merges the two together.
413
+ During the merging process, if there is any overlap in buckets between the two
414
+ responses, the buckets from the non-rollup index are used.
360
415
 
361
416
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/rollup-search.html>`_
362
417
 
363
- :param index: Enables searching rolled-up data using the standard Query DSL.
418
+ :param index: A comma-separated list of data streams and indices used to limit
419
+ the request. This parameter has the following rules: * At least one data
420
+ stream, index, or wildcard expression must be specified. This target can
421
+ include a rollup or non-rollup index. For data streams, the stream's backing
422
+ indices can only serve as non-rollup indices. Omitting the parameter or using
423
+ `_all` are not permitted. * Multiple non-rollup indices may be specified.
424
+ * Only one rollup index may be specified. If more than one are supplied,
425
+ an exception occurs. * Wildcard expressions (`*`) may be used. If they match
426
+ more than one rollup index, an exception occurs. However, you can use an
427
+ expression to match multiple non-rollup indices or data streams.
364
428
  :param aggregations: Specifies aggregations.
365
429
  :param aggs: Specifies aggregations.
366
- :param query: Specifies a DSL query.
430
+ :param query: Specifies a DSL query that is subject to some limitations.
367
431
  :param rest_total_hits_as_int: Indicates whether hits.total should be rendered
368
432
  as an integer or an object in the rest search response
369
433
  :param size: Must be zero if set, as rollups work on pre-aggregated data.
@@ -420,7 +484,8 @@ class RollupClient(NamespacedClient):
420
484
  pretty: t.Optional[bool] = None,
421
485
  ) -> ObjectApiResponse[t.Any]:
422
486
  """
423
- Starts an existing, stopped rollup job.
487
+ Start rollup jobs. If you try to start a job that does not exist, an exception
488
+ occurs. If you try to start a job that is already started, nothing happens.
424
489
 
425
490
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/rollup-start-job.html>`_
426
491
 
@@ -463,14 +528,24 @@ class RollupClient(NamespacedClient):
463
528
  wait_for_completion: t.Optional[bool] = None,
464
529
  ) -> ObjectApiResponse[t.Any]:
465
530
  """
466
- Stops an existing, started rollup job.
531
+ Stop rollup jobs. If you try to stop a job that does not exist, an exception
532
+ occurs. If you try to stop a job that is already stopped, nothing happens. Since
533
+ only a stopped job can be deleted, it can be useful to block the API until the
534
+ indexer has fully stopped. This is accomplished with the `wait_for_completion`
535
+ query parameter, and optionally a timeout. For example: ``` POST _rollup/job/sensor/_stop?wait_for_completion=true&timeout=10s
536
+ ``` The parameter blocks the API call from returning until either the job has
537
+ moved to STOPPED or the specified time has elapsed. If the specified time elapses
538
+ without the job moving to STOPPED, a timeout exception occurs.
467
539
 
468
540
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/rollup-stop-job.html>`_
469
541
 
470
542
  :param id: Identifier for the rollup job.
471
543
  :param timeout: If `wait_for_completion` is `true`, the API blocks for (at maximum)
472
544
  the specified duration while waiting for the job to stop. If more than `timeout`
473
- time has passed, the API throws a timeout exception.
545
+ time has passed, the API throws a timeout exception. NOTE: Even if a timeout
546
+ occurs, the stop request is still processing and eventually moves the job
547
+ to STOPPED. The timeout simply means the API call itself timed out while
548
+ waiting for the status change.
474
549
  :param wait_for_completion: If set to `true`, causes the API to block until the
475
550
  indexer state completely stops. If set to `false`, the API returns immediately
476
551
  and the indexer is stopped asynchronously in the background.
@@ -216,7 +216,7 @@ class SearchApplicationClient(NamespacedClient):
216
216
  size: t.Optional[int] = None,
217
217
  ) -> ObjectApiResponse[t.Any]:
218
218
  """
219
- Returns the existing search applications.
219
+ Get search applications. Get information about search applications.
220
220
 
221
221
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/list-search-applications.html>`_
222
222
 
@@ -251,6 +251,71 @@ class SearchApplicationClient(NamespacedClient):
251
251
  path_parts=__path_parts,
252
252
  )
253
253
 
254
+ @_rewrite_parameters(
255
+ body_name="payload",
256
+ )
257
+ @_stability_warning(Stability.EXPERIMENTAL)
258
+ async def post_behavioral_analytics_event(
259
+ self,
260
+ *,
261
+ collection_name: str,
262
+ event_type: t.Union[str, t.Literal["page_view", "search", "search_click"]],
263
+ payload: t.Optional[t.Any] = None,
264
+ body: t.Optional[t.Any] = None,
265
+ debug: t.Optional[bool] = None,
266
+ error_trace: t.Optional[bool] = None,
267
+ filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
268
+ human: t.Optional[bool] = None,
269
+ pretty: t.Optional[bool] = None,
270
+ ) -> ObjectApiResponse[t.Any]:
271
+ """
272
+ Create a behavioral analytics collection event.
273
+
274
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/post-analytics-collection-event.html>`_
275
+
276
+ :param collection_name: The name of the behavioral analytics collection.
277
+ :param event_type: The analytics event type.
278
+ :param payload:
279
+ :param debug: Whether the response type has to include more details
280
+ """
281
+ if collection_name in SKIP_IN_PATH:
282
+ raise ValueError("Empty value passed for parameter 'collection_name'")
283
+ if event_type in SKIP_IN_PATH:
284
+ raise ValueError("Empty value passed for parameter 'event_type'")
285
+ if payload is None and body is None:
286
+ raise ValueError(
287
+ "Empty value passed for parameters 'payload' and 'body', one of them should be set."
288
+ )
289
+ elif payload is not None and body is not None:
290
+ raise ValueError("Cannot set both 'payload' and 'body'")
291
+ __path_parts: t.Dict[str, str] = {
292
+ "collection_name": _quote(collection_name),
293
+ "event_type": _quote(event_type),
294
+ }
295
+ __path = f'/_application/analytics/{__path_parts["collection_name"]}/event/{__path_parts["event_type"]}'
296
+ __query: t.Dict[str, t.Any] = {}
297
+ if debug is not None:
298
+ __query["debug"] = debug
299
+ if error_trace is not None:
300
+ __query["error_trace"] = error_trace
301
+ if filter_path is not None:
302
+ __query["filter_path"] = filter_path
303
+ if human is not None:
304
+ __query["human"] = human
305
+ if pretty is not None:
306
+ __query["pretty"] = pretty
307
+ __body = payload if payload is not None else body
308
+ __headers = {"accept": "application/json", "content-type": "application/json"}
309
+ return await self.perform_request( # type: ignore[return-value]
310
+ "POST",
311
+ __path,
312
+ params=__query,
313
+ headers=__headers,
314
+ body=__body,
315
+ endpoint_id="search_application.post_behavioral_analytics_event",
316
+ path_parts=__path_parts,
317
+ )
318
+
254
319
  @_rewrite_parameters(
255
320
  body_name="search_application",
256
321
  )
@@ -351,6 +416,70 @@ class SearchApplicationClient(NamespacedClient):
351
416
  path_parts=__path_parts,
352
417
  )
353
418
 
419
+ @_rewrite_parameters(
420
+ body_fields=("params",),
421
+ ignore_deprecated_options={"params"},
422
+ )
423
+ @_stability_warning(Stability.EXPERIMENTAL)
424
+ async def render_query(
425
+ self,
426
+ *,
427
+ name: str,
428
+ error_trace: t.Optional[bool] = None,
429
+ filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
430
+ human: t.Optional[bool] = None,
431
+ params: t.Optional[t.Mapping[str, t.Any]] = None,
432
+ pretty: t.Optional[bool] = None,
433
+ body: t.Optional[t.Dict[str, t.Any]] = None,
434
+ ) -> ObjectApiResponse[t.Any]:
435
+ """
436
+ Render a search application query. Generate an Elasticsearch query using the
437
+ specified query parameters and the search template associated with the search
438
+ application or a default template if none is specified. If a parameter used in
439
+ the search template is not specified in `params`, the parameter's default value
440
+ will be used. The API returns the specific Elasticsearch query that would be
441
+ generated and run by calling the search application search API. You must have
442
+ `read` privileges on the backing alias of the search application.
443
+
444
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-application-render-query.html>`_
445
+
446
+ :param name: The name of the search application to render teh query for.
447
+ :param params:
448
+ """
449
+ if name in SKIP_IN_PATH:
450
+ raise ValueError("Empty value passed for parameter 'name'")
451
+ __path_parts: t.Dict[str, str] = {"name": _quote(name)}
452
+ __path = (
453
+ f'/_application/search_application/{__path_parts["name"]}/_render_query'
454
+ )
455
+ __query: t.Dict[str, t.Any] = {}
456
+ __body: t.Dict[str, t.Any] = body if body is not None else {}
457
+ if error_trace is not None:
458
+ __query["error_trace"] = error_trace
459
+ if filter_path is not None:
460
+ __query["filter_path"] = filter_path
461
+ if human is not None:
462
+ __query["human"] = human
463
+ if pretty is not None:
464
+ __query["pretty"] = pretty
465
+ if not __body:
466
+ if params is not None:
467
+ __body["params"] = params
468
+ if not __body:
469
+ __body = None # type: ignore[assignment]
470
+ __headers = {"accept": "application/json"}
471
+ if __body is not None:
472
+ __headers["content-type"] = "application/json"
473
+ return await self.perform_request( # type: ignore[return-value]
474
+ "POST",
475
+ __path,
476
+ params=__query,
477
+ headers=__headers,
478
+ body=__body,
479
+ endpoint_id="search_application.render_query",
480
+ path_parts=__path_parts,
481
+ )
482
+
354
483
  @_rewrite_parameters(
355
484
  body_fields=("params",),
356
485
  ignore_deprecated_options={"params"},
@@ -44,13 +44,12 @@ class SearchableSnapshotsClient(NamespacedClient):
44
44
  pretty: t.Optional[bool] = None,
45
45
  ) -> ObjectApiResponse[t.Any]:
46
46
  """
47
- Retrieve node-level cache statistics about searchable snapshots.
47
+ Get cache statistics. Get statistics about the shared cache for partially mounted
48
+ indices.
48
49
 
49
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/searchable-snapshots-apis.html>`_
50
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/searchable-snapshots-api-cache-stats.html>`_
50
51
 
51
- :param node_id: A comma-separated list of node IDs or names to limit the returned
52
- information; use `_local` to return information from the node you're connecting
53
- to, leave empty to get information from all nodes
52
+ :param node_id: The names of the nodes in the cluster to target.
54
53
  :param master_timeout:
55
54
  """
56
55
  __path_parts: t.Dict[str, str]
@@ -103,11 +102,13 @@ class SearchableSnapshotsClient(NamespacedClient):
103
102
  pretty: t.Optional[bool] = None,
104
103
  ) -> ObjectApiResponse[t.Any]:
105
104
  """
106
- Clear the cache of searchable snapshots.
105
+ Clear the cache. Clear indices and data streams from the shared cache for partially
106
+ mounted indices.
107
107
 
108
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/searchable-snapshots-apis.html>`_
108
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/searchable-snapshots-api-clear-cache.html>`_
109
109
 
110
- :param index: A comma-separated list of index names
110
+ :param index: A comma-separated list of data streams, indices, and aliases to
111
+ clear from the cache. It supports wildcards (`*`).
111
112
  :param allow_no_indices: Whether to ignore if a wildcard indices expression resolves
112
113
  into no concrete indices. (This includes `_all` string or when no indices
113
114
  have been specified)
@@ -175,22 +176,29 @@ class SearchableSnapshotsClient(NamespacedClient):
175
176
  body: t.Optional[t.Dict[str, t.Any]] = None,
176
177
  ) -> ObjectApiResponse[t.Any]:
177
178
  """
178
- Mount a snapshot as a searchable index.
179
+ Mount a snapshot. Mount a snapshot as a searchable snapshot index. Do not use
180
+ this API for snapshots managed by index lifecycle management (ILM). Manually
181
+ mounting ILM-managed snapshots can interfere with ILM processes.
179
182
 
180
183
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/searchable-snapshots-api-mount-snapshot.html>`_
181
184
 
182
185
  :param repository: The name of the repository containing the snapshot of the
183
- index to mount
184
- :param snapshot: The name of the snapshot of the index to mount
185
- :param index:
186
- :param ignore_index_settings:
187
- :param index_settings:
188
- :param master_timeout: Explicit operation timeout for connection to master node
189
- :param renamed_index:
190
- :param storage: Selects the kind of local storage used to accelerate searches.
191
- Experimental, and defaults to `full_copy`
192
- :param wait_for_completion: Should this request wait until the operation has
193
- completed before returning
186
+ index to mount.
187
+ :param snapshot: The name of the snapshot of the index to mount.
188
+ :param index: The name of the index contained in the snapshot whose data is to
189
+ be mounted. If no `renamed_index` is specified, this name will also be used
190
+ to create the new index.
191
+ :param ignore_index_settings: The names of settings that should be removed from
192
+ the index when it is mounted.
193
+ :param index_settings: The settings that should be added to the index when it
194
+ is mounted.
195
+ :param master_timeout: The period to wait for the master node. If the master
196
+ node is not available before the timeout expires, the request fails and returns
197
+ an error. To indicate that the request should never timeout, set it to `-1`.
198
+ :param renamed_index: The name of the index that will be created.
199
+ :param storage: The mount option for the searchable snapshot index.
200
+ :param wait_for_completion: If true, the request blocks until the operation is
201
+ complete.
194
202
  """
195
203
  if repository in SKIP_IN_PATH:
196
204
  raise ValueError("Empty value passed for parameter 'repository'")
@@ -255,11 +263,12 @@ class SearchableSnapshotsClient(NamespacedClient):
255
263
  pretty: t.Optional[bool] = None,
256
264
  ) -> ObjectApiResponse[t.Any]:
257
265
  """
258
- Retrieve shard-level statistics about searchable snapshots.
266
+ Get searchable snapshot statistics.
259
267
 
260
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/searchable-snapshots-apis.html>`_
268
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/searchable-snapshots-api-stats.html>`_
261
269
 
262
- :param index: A comma-separated list of index names
270
+ :param index: A comma-separated list of data streams and indices to retrieve
271
+ statistics for.
263
272
  :param level: Return stats aggregated at cluster, index or shard level
264
273
  """
265
274
  __path_parts: t.Dict[str, str]