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.
Files changed (137) hide show
  1. elasticsearch/_async/client/__init__.py +174 -79
  2. elasticsearch/_async/client/_base.py +0 -1
  3. elasticsearch/_async/client/async_search.py +12 -8
  4. elasticsearch/_async/client/autoscaling.py +4 -4
  5. elasticsearch/_async/client/cat.py +26 -26
  6. elasticsearch/_async/client/ccr.py +186 -72
  7. elasticsearch/_async/client/cluster.py +38 -19
  8. elasticsearch/_async/client/connector.py +30 -30
  9. elasticsearch/_async/client/dangling_indices.py +3 -3
  10. elasticsearch/_async/client/enrich.py +26 -5
  11. elasticsearch/_async/client/eql.py +32 -4
  12. elasticsearch/_async/client/esql.py +62 -6
  13. elasticsearch/_async/client/features.py +12 -2
  14. elasticsearch/_async/client/fleet.py +8 -2
  15. elasticsearch/_async/client/graph.py +1 -1
  16. elasticsearch/_async/client/ilm.py +23 -22
  17. elasticsearch/_async/client/indices.py +424 -132
  18. elasticsearch/_async/client/inference.py +1906 -61
  19. elasticsearch/_async/client/ingest.py +32 -38
  20. elasticsearch/_async/client/license.py +51 -16
  21. elasticsearch/_async/client/logstash.py +3 -3
  22. elasticsearch/_async/client/migration.py +3 -3
  23. elasticsearch/_async/client/ml.py +144 -115
  24. elasticsearch/_async/client/monitoring.py +1 -1
  25. elasticsearch/_async/client/nodes.py +9 -27
  26. elasticsearch/_async/client/query_rules.py +8 -8
  27. elasticsearch/_async/client/rollup.py +8 -8
  28. elasticsearch/_async/client/search_application.py +13 -13
  29. elasticsearch/_async/client/searchable_snapshots.py +4 -4
  30. elasticsearch/_async/client/security.py +71 -71
  31. elasticsearch/_async/client/shutdown.py +3 -10
  32. elasticsearch/_async/client/simulate.py +6 -6
  33. elasticsearch/_async/client/slm.py +9 -9
  34. elasticsearch/_async/client/snapshot.py +13 -17
  35. elasticsearch/_async/client/sql.py +6 -6
  36. elasticsearch/_async/client/ssl.py +1 -1
  37. elasticsearch/_async/client/synonyms.py +7 -7
  38. elasticsearch/_async/client/tasks.py +3 -9
  39. elasticsearch/_async/client/text_structure.py +4 -4
  40. elasticsearch/_async/client/transform.py +30 -28
  41. elasticsearch/_async/client/watcher.py +22 -14
  42. elasticsearch/_async/client/xpack.py +2 -2
  43. elasticsearch/_async/helpers.py +0 -1
  44. elasticsearch/_sync/client/__init__.py +174 -79
  45. elasticsearch/_sync/client/_base.py +0 -1
  46. elasticsearch/_sync/client/async_search.py +12 -8
  47. elasticsearch/_sync/client/autoscaling.py +4 -4
  48. elasticsearch/_sync/client/cat.py +26 -26
  49. elasticsearch/_sync/client/ccr.py +186 -72
  50. elasticsearch/_sync/client/cluster.py +38 -19
  51. elasticsearch/_sync/client/connector.py +30 -30
  52. elasticsearch/_sync/client/dangling_indices.py +3 -3
  53. elasticsearch/_sync/client/enrich.py +26 -5
  54. elasticsearch/_sync/client/eql.py +32 -4
  55. elasticsearch/_sync/client/esql.py +62 -6
  56. elasticsearch/_sync/client/features.py +12 -2
  57. elasticsearch/_sync/client/fleet.py +8 -2
  58. elasticsearch/_sync/client/graph.py +1 -1
  59. elasticsearch/_sync/client/ilm.py +23 -22
  60. elasticsearch/_sync/client/indices.py +424 -132
  61. elasticsearch/_sync/client/inference.py +1906 -61
  62. elasticsearch/_sync/client/ingest.py +32 -38
  63. elasticsearch/_sync/client/license.py +51 -16
  64. elasticsearch/_sync/client/logstash.py +3 -3
  65. elasticsearch/_sync/client/migration.py +3 -3
  66. elasticsearch/_sync/client/ml.py +144 -115
  67. elasticsearch/_sync/client/monitoring.py +1 -1
  68. elasticsearch/_sync/client/nodes.py +9 -27
  69. elasticsearch/_sync/client/query_rules.py +8 -8
  70. elasticsearch/_sync/client/rollup.py +8 -8
  71. elasticsearch/_sync/client/search_application.py +13 -13
  72. elasticsearch/_sync/client/searchable_snapshots.py +4 -4
  73. elasticsearch/_sync/client/security.py +71 -71
  74. elasticsearch/_sync/client/shutdown.py +3 -10
  75. elasticsearch/_sync/client/simulate.py +6 -6
  76. elasticsearch/_sync/client/slm.py +9 -9
  77. elasticsearch/_sync/client/snapshot.py +13 -17
  78. elasticsearch/_sync/client/sql.py +6 -6
  79. elasticsearch/_sync/client/ssl.py +1 -1
  80. elasticsearch/_sync/client/synonyms.py +7 -7
  81. elasticsearch/_sync/client/tasks.py +3 -9
  82. elasticsearch/_sync/client/text_structure.py +4 -4
  83. elasticsearch/_sync/client/transform.py +30 -28
  84. elasticsearch/_sync/client/utils.py +0 -3
  85. elasticsearch/_sync/client/watcher.py +22 -14
  86. elasticsearch/_sync/client/xpack.py +2 -2
  87. elasticsearch/_version.py +1 -1
  88. elasticsearch/dsl/__init__.py +203 -0
  89. elasticsearch/dsl/_async/__init__.py +16 -0
  90. elasticsearch/dsl/_async/document.py +522 -0
  91. elasticsearch/dsl/_async/faceted_search.py +50 -0
  92. elasticsearch/dsl/_async/index.py +639 -0
  93. elasticsearch/dsl/_async/mapping.py +49 -0
  94. elasticsearch/dsl/_async/search.py +233 -0
  95. elasticsearch/dsl/_async/update_by_query.py +47 -0
  96. elasticsearch/dsl/_sync/__init__.py +16 -0
  97. elasticsearch/dsl/_sync/document.py +514 -0
  98. elasticsearch/dsl/_sync/faceted_search.py +50 -0
  99. elasticsearch/dsl/_sync/index.py +597 -0
  100. elasticsearch/dsl/_sync/mapping.py +49 -0
  101. elasticsearch/dsl/_sync/search.py +226 -0
  102. elasticsearch/dsl/_sync/update_by_query.py +45 -0
  103. elasticsearch/dsl/aggs.py +3730 -0
  104. elasticsearch/dsl/analysis.py +341 -0
  105. elasticsearch/dsl/async_connections.py +37 -0
  106. elasticsearch/dsl/connections.py +142 -0
  107. elasticsearch/dsl/document.py +20 -0
  108. elasticsearch/dsl/document_base.py +444 -0
  109. elasticsearch/dsl/exceptions.py +32 -0
  110. elasticsearch/dsl/faceted_search.py +28 -0
  111. elasticsearch/dsl/faceted_search_base.py +489 -0
  112. elasticsearch/dsl/field.py +4392 -0
  113. elasticsearch/dsl/function.py +180 -0
  114. elasticsearch/dsl/index.py +23 -0
  115. elasticsearch/dsl/index_base.py +178 -0
  116. elasticsearch/dsl/mapping.py +19 -0
  117. elasticsearch/dsl/mapping_base.py +219 -0
  118. elasticsearch/dsl/query.py +2822 -0
  119. elasticsearch/dsl/response/__init__.py +388 -0
  120. elasticsearch/dsl/response/aggs.py +100 -0
  121. elasticsearch/dsl/response/hit.py +53 -0
  122. elasticsearch/dsl/search.py +20 -0
  123. elasticsearch/dsl/search_base.py +1040 -0
  124. elasticsearch/dsl/serializer.py +34 -0
  125. elasticsearch/dsl/types.py +6509 -0
  126. elasticsearch/dsl/update_by_query.py +19 -0
  127. elasticsearch/dsl/update_by_query_base.py +149 -0
  128. elasticsearch/dsl/utils.py +687 -0
  129. elasticsearch/dsl/wrappers.py +119 -0
  130. {elasticsearch-8.17.2.dist-info → elasticsearch-8.18.1.dist-info}/METADATA +14 -2
  131. elasticsearch-8.18.1.dist-info/RECORD +163 -0
  132. elasticsearch-8.18.1.dist-info/licenses/LICENSE.txt +175 -0
  133. elasticsearch-8.18.1.dist-info/licenses/NOTICE.txt +559 -0
  134. elasticsearch-8.17.2.dist-info/RECORD +0 -119
  135. {elasticsearch-8.17.2.dist-info → elasticsearch-8.18.1.dist-info}/WHEEL +0 -0
  136. {elasticsearch-8.17.2.dist-info → elasticsearch-8.18.1.dist-info}/licenses/LICENSE +0 -0
  137. {elasticsearch-8.17.2.dist-info → elasticsearch-8.18.1.dist-info}/licenses/NOTICE +0 -0
@@ -43,7 +43,7 @@ class EqlClient(NamespacedClient):
43
43
  The API also deletes results for the search.</p>
44
44
 
45
45
 
46
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/eql-search-api.html>`_
46
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-eql-delete>`_
47
47
 
48
48
  :param id: Identifier for the search to delete. A search ID is provided in the
49
49
  EQL search API's response for an async search. A search ID is also provided
@@ -93,7 +93,7 @@ class EqlClient(NamespacedClient):
93
93
  Get the current status and available results for an async EQL search or a stored synchronous EQL search.</p>
94
94
 
95
95
 
96
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/get-async-eql-search-api.html>`_
96
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/get-async-eql-search-api.html>`_
97
97
 
98
98
  :param id: Identifier for the search.
99
99
  :param keep_alive: Period for which the search and its results are stored on
@@ -147,7 +147,7 @@ class EqlClient(NamespacedClient):
147
147
  Get the current status for an async EQL search or a stored synchronous EQL search without returning results.</p>
148
148
 
149
149
 
150
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/get-async-eql-status-api.html>`_
150
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/get-async-eql-status-api.html>`_
151
151
 
152
152
  :param id: Identifier for the search.
153
153
  """
@@ -177,6 +177,8 @@ class EqlClient(NamespacedClient):
177
177
  @_rewrite_parameters(
178
178
  body_fields=(
179
179
  "query",
180
+ "allow_partial_search_results",
181
+ "allow_partial_sequence_results",
180
182
  "case_sensitive",
181
183
  "event_category_field",
182
184
  "fetch_size",
@@ -184,6 +186,7 @@ class EqlClient(NamespacedClient):
184
186
  "filter",
185
187
  "keep_alive",
186
188
  "keep_on_completion",
189
+ "max_samples_per_key",
187
190
  "result_position",
188
191
  "runtime_mappings",
189
192
  "size",
@@ -198,6 +201,8 @@ class EqlClient(NamespacedClient):
198
201
  index: t.Union[str, t.Sequence[str]],
199
202
  query: t.Optional[str] = None,
200
203
  allow_no_indices: t.Optional[bool] = None,
204
+ allow_partial_search_results: t.Optional[bool] = None,
205
+ allow_partial_sequence_results: t.Optional[bool] = None,
201
206
  case_sensitive: t.Optional[bool] = None,
202
207
  error_trace: t.Optional[bool] = None,
203
208
  event_category_field: t.Optional[str] = None,
@@ -221,6 +226,7 @@ class EqlClient(NamespacedClient):
221
226
  ignore_unavailable: t.Optional[bool] = None,
222
227
  keep_alive: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
223
228
  keep_on_completion: t.Optional[bool] = None,
229
+ max_samples_per_key: t.Optional[int] = None,
224
230
  pretty: t.Optional[bool] = None,
225
231
  result_position: t.Optional[t.Union[str, t.Literal["head", "tail"]]] = None,
226
232
  runtime_mappings: t.Optional[t.Mapping[str, t.Mapping[str, t.Any]]] = None,
@@ -240,11 +246,20 @@ class EqlClient(NamespacedClient):
240
246
  EQL assumes each document in a data stream or index corresponds to an event.</p>
241
247
 
242
248
 
243
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/eql-search-api.html>`_
249
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/eql-search-api.html>`_
244
250
 
245
251
  :param index: The name of the index to scope the operation
246
252
  :param query: EQL query you wish to run.
247
253
  :param allow_no_indices:
254
+ :param allow_partial_search_results: Allow query execution also in case of shard
255
+ failures. If true, the query will keep running and will return results based
256
+ on the available shards. For sequences, the behavior can be further refined
257
+ using allow_partial_sequence_results
258
+ :param allow_partial_sequence_results: This flag applies only to sequences and
259
+ has effect only if allow_partial_search_results=true. If true, the sequence
260
+ query will return results based on the available shards, ignoring the others.
261
+ If false, the sequence query will return successfully, but will always have
262
+ empty results.
248
263
  :param case_sensitive:
249
264
  :param event_category_field: Field containing the event classification, such
250
265
  as process, file, or network.
@@ -259,6 +274,11 @@ class EqlClient(NamespacedClient):
259
274
  in the response.
260
275
  :param keep_alive:
261
276
  :param keep_on_completion:
277
+ :param max_samples_per_key: By default, the response of a sample query contains
278
+ up to `10` samples, with one sample per unique set of join keys. Use the
279
+ `size` parameter to get a smaller or larger set of samples. To retrieve more
280
+ than one sample per set of join keys, use the `max_samples_per_key` parameter.
281
+ Pipes are not supported for sample queries.
262
282
  :param result_position:
263
283
  :param runtime_mappings:
264
284
  :param size: For basic queries, the maximum number of matching events to return.
@@ -293,6 +313,12 @@ class EqlClient(NamespacedClient):
293
313
  if not __body:
294
314
  if query is not None:
295
315
  __body["query"] = query
316
+ if allow_partial_search_results is not None:
317
+ __body["allow_partial_search_results"] = allow_partial_search_results
318
+ if allow_partial_sequence_results is not None:
319
+ __body["allow_partial_sequence_results"] = (
320
+ allow_partial_sequence_results
321
+ )
296
322
  if case_sensitive is not None:
297
323
  __body["case_sensitive"] = case_sensitive
298
324
  if event_category_field is not None:
@@ -307,6 +333,8 @@ class EqlClient(NamespacedClient):
307
333
  __body["keep_alive"] = keep_alive
308
334
  if keep_on_completion is not None:
309
335
  __body["keep_on_completion"] = keep_on_completion
336
+ if max_samples_per_key is not None:
337
+ __body["max_samples_per_key"] = max_samples_per_key
310
338
  if result_position is not None:
311
339
  __body["result_position"] = result_position
312
340
  if runtime_mappings is not None:
@@ -35,6 +35,7 @@ class EsqlClient(NamespacedClient):
35
35
  "params",
36
36
  "profile",
37
37
  "tables",
38
+ "wait_for_completion_timeout",
38
39
  ),
39
40
  ignore_deprecated_options={"params"},
40
41
  )
@@ -82,7 +83,7 @@ class EsqlClient(NamespacedClient):
82
83
  <p>The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties.</p>
83
84
 
84
85
 
85
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/esql-async-query-api.html>`_
86
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/esql-async-query-api.html>`_
86
87
 
87
88
  :param query: The ES|QL query API accepts an ES|QL query string in the query
88
89
  parameter, runs it, and returns the results.
@@ -152,8 +153,6 @@ class EsqlClient(NamespacedClient):
152
153
  __query["keep_on_completion"] = keep_on_completion
153
154
  if pretty is not None:
154
155
  __query["pretty"] = pretty
155
- if wait_for_completion_timeout is not None:
156
- __query["wait_for_completion_timeout"] = wait_for_completion_timeout
157
156
  if not __body:
158
157
  if query is not None:
159
158
  __body["query"] = query
@@ -171,6 +170,8 @@ class EsqlClient(NamespacedClient):
171
170
  __body["profile"] = profile
172
171
  if tables is not None:
173
172
  __body["tables"] = tables
173
+ if wait_for_completion_timeout is not None:
174
+ __body["wait_for_completion_timeout"] = wait_for_completion_timeout
174
175
  __headers = {"accept": "application/json", "content-type": "application/json"}
175
176
  return await self.perform_request( # type: ignore[return-value]
176
177
  "POST",
@@ -205,7 +206,7 @@ class EsqlClient(NamespacedClient):
205
206
  </ul>
206
207
 
207
208
 
208
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/esql-async-query-delete-api.html>`_
209
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/esql-async-query-delete-api.html>`_
209
210
 
210
211
  :param id: The unique identifier of the query. A query ID is provided in the
211
212
  ES|QL async query API response for a query that does not complete in the
@@ -258,7 +259,7 @@ class EsqlClient(NamespacedClient):
258
259
  If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API.</p>
259
260
 
260
261
 
261
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/esql-async-query-get-api.html>`_
262
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/esql-async-query-get-api.html>`_
262
263
 
263
264
  :param id: The unique identifier of the query. A query ID is provided in the
264
265
  ES|QL async query API response for a query that does not complete in the
@@ -306,6 +307,61 @@ class EsqlClient(NamespacedClient):
306
307
  path_parts=__path_parts,
307
308
  )
308
309
 
310
+ @_rewrite_parameters()
311
+ async def async_query_stop(
312
+ self,
313
+ *,
314
+ id: str,
315
+ drop_null_columns: t.Optional[bool] = None,
316
+ error_trace: t.Optional[bool] = None,
317
+ filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
318
+ human: t.Optional[bool] = None,
319
+ pretty: t.Optional[bool] = None,
320
+ ) -> ObjectApiResponse[t.Any]:
321
+ """
322
+ .. raw:: html
323
+
324
+ <p>Stop async ES|QL query.</p>
325
+ <p>This API interrupts the query execution and returns the results so far.
326
+ If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can stop it.</p>
327
+
328
+
329
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/esql-async-query-stop-api.html>`_
330
+
331
+ :param id: The unique identifier of the query. A query ID is provided in the
332
+ ES|QL async query API response for a query that does not complete in the
333
+ designated time. A query ID is also provided when the request was submitted
334
+ with the `keep_on_completion` parameter set to `true`.
335
+ :param drop_null_columns: Indicates whether columns that are entirely `null`
336
+ will be removed from the `columns` and `values` portion of the results. If
337
+ `true`, the response will include an extra section under the name `all_columns`
338
+ which has the name of all the columns.
339
+ """
340
+ if id in SKIP_IN_PATH:
341
+ raise ValueError("Empty value passed for parameter 'id'")
342
+ __path_parts: t.Dict[str, str] = {"id": _quote(id)}
343
+ __path = f'/_query/async/{__path_parts["id"]}/stop'
344
+ __query: t.Dict[str, t.Any] = {}
345
+ if drop_null_columns is not None:
346
+ __query["drop_null_columns"] = drop_null_columns
347
+ if error_trace is not None:
348
+ __query["error_trace"] = error_trace
349
+ if filter_path is not None:
350
+ __query["filter_path"] = filter_path
351
+ if human is not None:
352
+ __query["human"] = human
353
+ if pretty is not None:
354
+ __query["pretty"] = pretty
355
+ __headers = {"accept": "application/json"}
356
+ return await self.perform_request( # type: ignore[return-value]
357
+ "POST",
358
+ __path,
359
+ params=__query,
360
+ headers=__headers,
361
+ endpoint_id="esql.async_query_stop",
362
+ path_parts=__path_parts,
363
+ )
364
+
309
365
  @_rewrite_parameters(
310
366
  body_fields=(
311
367
  "query",
@@ -357,7 +413,7 @@ class EsqlClient(NamespacedClient):
357
413
  Get search results for an ES|QL (Elasticsearch query language) query.</p>
358
414
 
359
415
 
360
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/esql-rest.html>`_
416
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/esql-rest.html>`_
361
417
 
362
418
  :param query: The ES|QL query API accepts an ES|QL query string in the query
363
419
  parameter, runs it, and returns the results.
@@ -32,6 +32,7 @@ class FeaturesClient(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,
36
37
  ) -> ObjectApiResponse[t.Any]:
37
38
  """
@@ -47,7 +48,9 @@ class FeaturesClient(NamespacedClient):
47
48
  In order for a feature state to be listed in this API and recognized as a valid feature state by the create snapshot API, the plugin that defines that feature must be installed on the master node.</p>
48
49
 
49
50
 
50
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/get-features-api.html>`_
51
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/get-features-api.html>`_
52
+
53
+ :param master_timeout: Period to wait for a connection to the master node.
51
54
  """
52
55
  __path_parts: t.Dict[str, str] = {}
53
56
  __path = "/_features"
@@ -58,6 +61,8 @@ class FeaturesClient(NamespacedClient):
58
61
  __query["filter_path"] = filter_path
59
62
  if human is not None:
60
63
  __query["human"] = human
64
+ if master_timeout is not None:
65
+ __query["master_timeout"] = master_timeout
61
66
  if pretty is not None:
62
67
  __query["pretty"] = pretty
63
68
  __headers = {"accept": "application/json"}
@@ -78,6 +83,7 @@ class FeaturesClient(NamespacedClient):
78
83
  error_trace: t.Optional[bool] = None,
79
84
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
80
85
  human: t.Optional[bool] = None,
86
+ master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
81
87
  pretty: t.Optional[bool] = None,
82
88
  ) -> ObjectApiResponse[t.Any]:
83
89
  """
@@ -96,7 +102,9 @@ class FeaturesClient(NamespacedClient):
96
102
  <p>IMPORTANT: The features installed on the node you submit this request to are the features that will be reset. Run on the master node if you have any doubts about which plugins are installed on individual nodes.</p>
97
103
 
98
104
 
99
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/modules-snapshots.html>`_
105
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/reset-features-api.html>`_
106
+
107
+ :param master_timeout: Period to wait for a connection to the master node.
100
108
  """
101
109
  __path_parts: t.Dict[str, str] = {}
102
110
  __path = "/_features/_reset"
@@ -107,6 +115,8 @@ class FeaturesClient(NamespacedClient):
107
115
  __query["filter_path"] = filter_path
108
116
  if human is not None:
109
117
  __query["human"] = human
118
+ if master_timeout is not None:
119
+ __query["master_timeout"] = master_timeout
110
120
  if pretty is not None:
111
121
  __query["pretty"] = pretty
112
122
  __headers = {"accept": "application/json"}
@@ -48,10 +48,12 @@ class FleetClient(NamespacedClient):
48
48
  """
49
49
  .. raw:: html
50
50
 
51
- <p>Returns the current global checkpoints for an index. This API is design for internal use by the fleet server project.</p>
51
+ <p>Get global checkpoints.</p>
52
+ <p>Get the current global checkpoints for an index.
53
+ This API is designed for internal use by the Fleet server project.</p>
52
54
 
53
55
 
54
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/get-global-checkpoints.html>`_
56
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/get-global-checkpoints.html>`_
55
57
 
56
58
  :param index: A single index or index alias that resolves to a single index.
57
59
  :param checkpoints: A comma separated list of previous global checkpoints. When
@@ -141,6 +143,8 @@ class FleetClient(NamespacedClient):
141
143
  supports the wait_for_checkpoints parameter.</p>
142
144
 
143
145
 
146
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/fleet-multi-search.html>`_
147
+
144
148
  :param searches:
145
149
  :param index: A single target to search. If the target is an index alias, it
146
150
  must resolve to a single index.
@@ -388,6 +392,8 @@ class FleetClient(NamespacedClient):
388
392
  after provided checkpoint has been processed and is visible for searches inside of Elasticsearch.</p>
389
393
 
390
394
 
395
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/fleet-search.html>`_
396
+
391
397
  :param index: A single target to search. If the target is an index alias, it
392
398
  must resolve to a single index.
393
399
  :param aggregations:
@@ -55,7 +55,7 @@ class GraphClient(NamespacedClient):
55
55
  You can exclude vertices that have already been returned.</p>
56
56
 
57
57
 
58
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/graph-explore-api.html>`_
58
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/graph-explore-api.html>`_
59
59
 
60
60
  :param index: Name of the index.
61
61
  :param connections: Specifies or more fields from which you want to extract terms
@@ -44,7 +44,7 @@ class IlmClient(NamespacedClient):
44
44
  You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error.</p>
45
45
 
46
46
 
47
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-delete-lifecycle.html>`_
47
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/ilm-delete-lifecycle.html>`_
48
48
 
49
49
  :param name: Identifier for the policy.
50
50
  :param master_timeout: Period to wait for a connection to the master node. If
@@ -92,7 +92,6 @@ class IlmClient(NamespacedClient):
92
92
  only_errors: t.Optional[bool] = None,
93
93
  only_managed: t.Optional[bool] = None,
94
94
  pretty: t.Optional[bool] = None,
95
- timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
96
95
  ) -> ObjectApiResponse[t.Any]:
97
96
  """
98
97
  .. raw:: html
@@ -103,7 +102,7 @@ class IlmClient(NamespacedClient):
103
102
  <p>The response indicates when the index entered each lifecycle state, provides the definition of the running phase, and information about any failures.</p>
104
103
 
105
104
 
106
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-explain-lifecycle.html>`_
105
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/ilm-explain-lifecycle.html>`_
107
106
 
108
107
  :param index: Comma-separated list of data streams, indices, and aliases to target.
109
108
  Supports wildcards (`*`). To target all data streams and indices, use `*`
@@ -116,8 +115,6 @@ class IlmClient(NamespacedClient):
116
115
  while executing the policy, or attempting to use a policy that does not exist.
117
116
  :param only_managed: Filters the returned indices to only indices that are managed
118
117
  by ILM.
119
- :param timeout: Period to wait for a response. If no response is received before
120
- the timeout expires, the request fails and returns an error.
121
118
  """
122
119
  if index in SKIP_IN_PATH:
123
120
  raise ValueError("Empty value passed for parameter 'index'")
@@ -138,8 +135,6 @@ class IlmClient(NamespacedClient):
138
135
  __query["only_managed"] = only_managed
139
136
  if pretty is not None:
140
137
  __query["pretty"] = pretty
141
- if timeout is not None:
142
- __query["timeout"] = timeout
143
138
  __headers = {"accept": "application/json"}
144
139
  return await self.perform_request( # type: ignore[return-value]
145
140
  "GET",
@@ -168,7 +163,7 @@ class IlmClient(NamespacedClient):
168
163
  <p>Get lifecycle policies.</p>
169
164
 
170
165
 
171
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-get-lifecycle.html>`_
166
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/ilm-get-lifecycle.html>`_
172
167
 
173
168
  :param name: Identifier for the policy.
174
169
  :param master_timeout: Period to wait for a connection to the master node. If
@@ -219,11 +214,11 @@ class IlmClient(NamespacedClient):
219
214
  """
220
215
  .. raw:: html
221
216
 
222
- <p>Get the ILM status.
223
- Get the current index lifecycle management status.</p>
217
+ <p>Get the ILM status.</p>
218
+ <p>Get the current index lifecycle management status.</p>
224
219
 
225
220
 
226
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-get-status.html>`_
221
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/ilm-get-status.html>`_
227
222
  """
228
223
  __path_parts: t.Dict[str, str] = {}
229
224
  __path = "/_ilm/status"
@@ -279,7 +274,7 @@ class IlmClient(NamespacedClient):
279
274
  Use the stop ILM and get ILM status APIs to wait until the reported operation mode is <code>STOPPED</code>.</p>
280
275
 
281
276
 
282
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-migrate-to-data-tiers.html>`_
277
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/ilm-migrate-to-data-tiers.html>`_
283
278
 
284
279
  :param dry_run: If true, simulates the migration from node attributes based allocation
285
280
  filters to data tiers, but does not perform the migration. This provides
@@ -352,7 +347,7 @@ class IlmClient(NamespacedClient):
352
347
  An index cannot move to a step that is not part of its policy.</p>
353
348
 
354
349
 
355
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-move-to-step.html>`_
350
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/ilm-move-to-step.html>`_
356
351
 
357
352
  :param index: The name of the index whose lifecycle step is to change
358
353
  :param current_step: The step that the index is expected to be in.
@@ -420,7 +415,7 @@ class IlmClient(NamespacedClient):
420
415
  <p>NOTE: Only the latest version of the policy is stored, you cannot revert to previous versions.</p>
421
416
 
422
417
 
423
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-put-lifecycle.html>`_
418
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/ilm-put-lifecycle.html>`_
424
419
 
425
420
  :param name: Identifier for the policy.
426
421
  :param master_timeout: Period to wait for a connection to the master node. If
@@ -484,7 +479,7 @@ class IlmClient(NamespacedClient):
484
479
  It also stops managing the indices.</p>
485
480
 
486
481
 
487
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-remove-policy.html>`_
482
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/ilm-remove-policy.html>`_
488
483
 
489
484
  :param index: The name of the index to remove policy on
490
485
  """
@@ -530,7 +525,7 @@ class IlmClient(NamespacedClient):
530
525
  Use the explain lifecycle state API to determine whether an index is in the ERROR step.</p>
531
526
 
532
527
 
533
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-retry-policy.html>`_
528
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/ilm-retry-policy.html>`_
534
529
 
535
530
  :param index: The name of the indices (comma-separated) whose failed lifecycle
536
531
  step is to be retry
@@ -578,10 +573,13 @@ class IlmClient(NamespacedClient):
578
573
  Restarting ILM is necessary only when it has been stopped using the stop ILM API.</p>
579
574
 
580
575
 
581
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-start.html>`_
576
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/ilm-start.html>`_
582
577
 
583
- :param master_timeout: Explicit operation timeout for connection to master node
584
- :param timeout: Explicit operation timeout
578
+ :param master_timeout: Period to wait for a connection to the master node. If
579
+ no response is received before the timeout expires, the request fails and
580
+ returns an error.
581
+ :param timeout: Period to wait for a response. If no response is received before
582
+ the timeout expires, the request fails and returns an error.
585
583
  """
586
584
  __path_parts: t.Dict[str, str] = {}
587
585
  __path = "/_ilm/start"
@@ -629,10 +627,13 @@ class IlmClient(NamespacedClient):
629
627
  Use the get ILM status API to check whether ILM is running.</p>
630
628
 
631
629
 
632
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-stop.html>`_
630
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/ilm-stop.html>`_
633
631
 
634
- :param master_timeout: Explicit operation timeout for connection to master node
635
- :param timeout: Explicit operation timeout
632
+ :param master_timeout: Period to wait for a connection to the master node. If
633
+ no response is received before the timeout expires, the request fails and
634
+ returns an error.
635
+ :param timeout: Period to wait for a response. If no response is received before
636
+ the timeout expires, the request fails and returns an error.
636
637
  """
637
638
  __path_parts: t.Dict[str, str] = {}
638
639
  __path = "/_ilm/stop"