elasticsearch 8.17.1__py3-none-any.whl → 9.0.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.
Files changed (142) hide show
  1. elasticsearch/__init__.py +2 -2
  2. elasticsearch/_async/client/__init__.py +2125 -1053
  3. elasticsearch/_async/client/_base.py +1 -2
  4. elasticsearch/_async/client/async_search.py +46 -35
  5. elasticsearch/_async/client/autoscaling.py +32 -26
  6. elasticsearch/_async/client/cat.py +244 -176
  7. elasticsearch/_async/client/ccr.py +268 -128
  8. elasticsearch/_async/client/cluster.py +191 -164
  9. elasticsearch/_async/client/connector.py +226 -116
  10. elasticsearch/_async/client/dangling_indices.py +22 -16
  11. elasticsearch/_async/client/enrich.py +51 -11
  12. elasticsearch/_async/client/eql.py +54 -13
  13. elasticsearch/_async/client/esql.py +351 -7
  14. elasticsearch/_async/client/features.py +37 -27
  15. elasticsearch/_async/client/fleet.py +32 -22
  16. elasticsearch/_async/client/graph.py +10 -9
  17. elasticsearch/_async/client/ilm.py +115 -77
  18. elasticsearch/_async/client/indices.py +1119 -772
  19. elasticsearch/_async/client/inference.py +1933 -84
  20. elasticsearch/_async/client/ingest.py +83 -50
  21. elasticsearch/_async/client/license.py +90 -38
  22. elasticsearch/_async/client/logstash.py +20 -9
  23. elasticsearch/_async/client/migration.py +26 -17
  24. elasticsearch/_async/client/ml.py +646 -374
  25. elasticsearch/_async/client/monitoring.py +6 -3
  26. elasticsearch/_async/client/nodes.py +52 -54
  27. elasticsearch/_async/client/query_rules.py +59 -33
  28. elasticsearch/_async/client/rollup.py +124 -86
  29. elasticsearch/_async/client/search_application.py +60 -32
  30. elasticsearch/_async/client/searchable_snapshots.py +25 -12
  31. elasticsearch/_async/client/security.py +903 -562
  32. elasticsearch/_async/client/shutdown.py +34 -36
  33. elasticsearch/_async/client/simulate.py +22 -28
  34. elasticsearch/_async/client/slm.py +65 -40
  35. elasticsearch/_async/client/snapshot.py +454 -327
  36. elasticsearch/_async/client/sql.py +43 -22
  37. elasticsearch/_async/client/ssl.py +17 -18
  38. elasticsearch/_async/client/synonyms.py +58 -37
  39. elasticsearch/_async/client/tasks.py +77 -48
  40. elasticsearch/_async/client/text_structure.py +65 -56
  41. elasticsearch/_async/client/transform.py +124 -93
  42. elasticsearch/_async/client/watcher.py +117 -73
  43. elasticsearch/_async/client/xpack.py +18 -9
  44. elasticsearch/_async/helpers.py +1 -2
  45. elasticsearch/_sync/client/__init__.py +2125 -1053
  46. elasticsearch/_sync/client/_base.py +1 -2
  47. elasticsearch/_sync/client/async_search.py +46 -35
  48. elasticsearch/_sync/client/autoscaling.py +32 -26
  49. elasticsearch/_sync/client/cat.py +244 -176
  50. elasticsearch/_sync/client/ccr.py +268 -128
  51. elasticsearch/_sync/client/cluster.py +191 -164
  52. elasticsearch/_sync/client/connector.py +226 -116
  53. elasticsearch/_sync/client/dangling_indices.py +22 -16
  54. elasticsearch/_sync/client/enrich.py +51 -11
  55. elasticsearch/_sync/client/eql.py +54 -13
  56. elasticsearch/_sync/client/esql.py +351 -7
  57. elasticsearch/_sync/client/features.py +37 -27
  58. elasticsearch/_sync/client/fleet.py +32 -22
  59. elasticsearch/_sync/client/graph.py +10 -9
  60. elasticsearch/_sync/client/ilm.py +115 -77
  61. elasticsearch/_sync/client/indices.py +1119 -772
  62. elasticsearch/_sync/client/inference.py +1933 -84
  63. elasticsearch/_sync/client/ingest.py +83 -50
  64. elasticsearch/_sync/client/license.py +90 -38
  65. elasticsearch/_sync/client/logstash.py +20 -9
  66. elasticsearch/_sync/client/migration.py +26 -17
  67. elasticsearch/_sync/client/ml.py +646 -374
  68. elasticsearch/_sync/client/monitoring.py +6 -3
  69. elasticsearch/_sync/client/nodes.py +52 -54
  70. elasticsearch/_sync/client/query_rules.py +59 -33
  71. elasticsearch/_sync/client/rollup.py +124 -86
  72. elasticsearch/_sync/client/search_application.py +60 -32
  73. elasticsearch/_sync/client/searchable_snapshots.py +25 -12
  74. elasticsearch/_sync/client/security.py +903 -562
  75. elasticsearch/_sync/client/shutdown.py +34 -36
  76. elasticsearch/_sync/client/simulate.py +22 -28
  77. elasticsearch/_sync/client/slm.py +65 -40
  78. elasticsearch/_sync/client/snapshot.py +454 -327
  79. elasticsearch/_sync/client/sql.py +43 -22
  80. elasticsearch/_sync/client/ssl.py +17 -18
  81. elasticsearch/_sync/client/synonyms.py +58 -37
  82. elasticsearch/_sync/client/tasks.py +77 -48
  83. elasticsearch/_sync/client/text_structure.py +65 -56
  84. elasticsearch/_sync/client/transform.py +124 -93
  85. elasticsearch/_sync/client/utils.py +1 -41
  86. elasticsearch/_sync/client/watcher.py +117 -73
  87. elasticsearch/_sync/client/xpack.py +18 -9
  88. elasticsearch/_version.py +1 -1
  89. elasticsearch/client.py +2 -0
  90. elasticsearch/dsl/__init__.py +203 -0
  91. elasticsearch/dsl/_async/__init__.py +16 -0
  92. elasticsearch/dsl/_async/document.py +522 -0
  93. elasticsearch/dsl/_async/faceted_search.py +50 -0
  94. elasticsearch/dsl/_async/index.py +639 -0
  95. elasticsearch/dsl/_async/mapping.py +49 -0
  96. elasticsearch/dsl/_async/search.py +237 -0
  97. elasticsearch/dsl/_async/update_by_query.py +47 -0
  98. elasticsearch/dsl/_sync/__init__.py +16 -0
  99. elasticsearch/dsl/_sync/document.py +514 -0
  100. elasticsearch/dsl/_sync/faceted_search.py +50 -0
  101. elasticsearch/dsl/_sync/index.py +597 -0
  102. elasticsearch/dsl/_sync/mapping.py +49 -0
  103. elasticsearch/dsl/_sync/search.py +230 -0
  104. elasticsearch/dsl/_sync/update_by_query.py +45 -0
  105. elasticsearch/dsl/aggs.py +3734 -0
  106. elasticsearch/dsl/analysis.py +341 -0
  107. elasticsearch/dsl/async_connections.py +37 -0
  108. elasticsearch/dsl/connections.py +142 -0
  109. elasticsearch/dsl/document.py +20 -0
  110. elasticsearch/dsl/document_base.py +444 -0
  111. elasticsearch/dsl/exceptions.py +32 -0
  112. elasticsearch/dsl/faceted_search.py +28 -0
  113. elasticsearch/dsl/faceted_search_base.py +489 -0
  114. elasticsearch/dsl/field.py +4392 -0
  115. elasticsearch/dsl/function.py +180 -0
  116. elasticsearch/dsl/index.py +23 -0
  117. elasticsearch/dsl/index_base.py +178 -0
  118. elasticsearch/dsl/mapping.py +19 -0
  119. elasticsearch/dsl/mapping_base.py +219 -0
  120. elasticsearch/dsl/query.py +2822 -0
  121. elasticsearch/dsl/response/__init__.py +388 -0
  122. elasticsearch/dsl/response/aggs.py +100 -0
  123. elasticsearch/dsl/response/hit.py +53 -0
  124. elasticsearch/dsl/search.py +20 -0
  125. elasticsearch/dsl/search_base.py +1053 -0
  126. elasticsearch/dsl/serializer.py +34 -0
  127. elasticsearch/dsl/types.py +6453 -0
  128. elasticsearch/dsl/update_by_query.py +19 -0
  129. elasticsearch/dsl/update_by_query_base.py +149 -0
  130. elasticsearch/dsl/utils.py +687 -0
  131. elasticsearch/dsl/wrappers.py +144 -0
  132. elasticsearch/helpers/actions.py +1 -1
  133. elasticsearch/helpers/vectorstore/_async/strategies.py +12 -12
  134. elasticsearch/helpers/vectorstore/_sync/strategies.py +12 -12
  135. elasticsearch/helpers/vectorstore/_sync/vectorstore.py +4 -1
  136. {elasticsearch-8.17.1.dist-info → elasticsearch-9.0.0.dist-info}/METADATA +12 -15
  137. elasticsearch-9.0.0.dist-info/RECORD +160 -0
  138. elasticsearch/transport.py +0 -57
  139. elasticsearch-8.17.1.dist-info/RECORD +0 -119
  140. {elasticsearch-8.17.1.dist-info → elasticsearch-9.0.0.dist-info}/WHEEL +0 -0
  141. {elasticsearch-8.17.1.dist-info → elasticsearch-9.0.0.dist-info}/licenses/LICENSE +0 -0
  142. {elasticsearch-8.17.1.dist-info → elasticsearch-9.0.0.dist-info}/licenses/NOTICE +0 -0
@@ -174,7 +174,7 @@ def create_sniff_callback(
174
174
  "GET",
175
175
  "/_nodes/_all/http",
176
176
  headers={
177
- "accept": "application/vnd.elasticsearch+json; compatible-with=8"
177
+ "accept": "application/vnd.elasticsearch+json; compatible-with=9"
178
178
  },
179
179
  request_timeout=(
180
180
  sniff_options.sniff_timeout
@@ -298,7 +298,6 @@ class BaseClient:
298
298
  def mimetype_header_to_compat(header: str) -> None:
299
299
  # Converts all parts of a Accept/Content-Type headers
300
300
  # from application/X -> application/vnd.elasticsearch+X
301
- nonlocal request_headers
302
301
  mimetype = request_headers.get(header, None)
303
302
  if mimetype:
304
303
  request_headers[header] = _COMPAT_MIMETYPE_RE.sub(
@@ -36,13 +36,15 @@ class AsyncSearchClient(NamespacedClient):
36
36
  pretty: t.Optional[bool] = None,
37
37
  ) -> ObjectApiResponse[t.Any]:
38
38
  """
39
- Delete an async search. If the asynchronous search is still running, it is cancelled.
40
- Otherwise, the saved search results are deleted. If the Elasticsearch security
41
- features are enabled, the deletion of a specific async search is restricted to:
42
- the authenticated user that submitted the original search request; users that
43
- have the `cancel_task` cluster privilege.
39
+ .. raw:: html
44
40
 
45
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
41
+ <p>Delete an async search.</p>
42
+ <p>If the asynchronous search is still running, it is cancelled.
43
+ Otherwise, the saved search results are deleted.
44
+ If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the <code>cancel_task</code> cluster privilege.</p>
45
+
46
+
47
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-async-search-submit>`_
46
48
 
47
49
  :param id: A unique identifier for the async search.
48
50
  """
@@ -85,16 +87,18 @@ class AsyncSearchClient(NamespacedClient):
85
87
  ] = None,
86
88
  ) -> ObjectApiResponse[t.Any]:
87
89
  """
88
- Get async search results. Retrieve the results of a previously submitted asynchronous
89
- search request. If the Elasticsearch security features are enabled, access to
90
- the results of a specific async search is restricted to the user or API key that
91
- submitted it.
90
+ .. raw:: html
91
+
92
+ <p>Get async search results.</p>
93
+ <p>Retrieve the results of a previously submitted asynchronous search request.
94
+ If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it.</p>
95
+
92
96
 
93
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
97
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-async-search-submit>`_
94
98
 
95
99
  :param id: A unique identifier for the async search.
96
- :param keep_alive: Specifies how long the async search should be available in
97
- the cluster. When not specified, the `keep_alive` set with the corresponding
100
+ :param keep_alive: The length of time that the async search should be available
101
+ in the cluster. When not specified, the `keep_alive` set with the corresponding
98
102
  submit async request will be used. Otherwise, it is possible to override
99
103
  the value and extend the validity of the request. When this period expires,
100
104
  the search, if still running, is cancelled. If the search is completed, its
@@ -149,15 +153,21 @@ class AsyncSearchClient(NamespacedClient):
149
153
  pretty: t.Optional[bool] = None,
150
154
  ) -> ObjectApiResponse[t.Any]:
151
155
  """
152
- Get the async search status. Get the status of a previously submitted async search
153
- request given its identifier, without retrieving search results. If the Elasticsearch
154
- security features are enabled, use of this API is restricted to the `monitoring_user`
155
- role.
156
+ .. raw:: html
156
157
 
157
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
158
+ <p>Get the async search status.</p>
159
+ <p>Get the status of a previously submitted async search request given its identifier, without retrieving search results.
160
+ If the Elasticsearch security features are enabled, the access to the status of a specific async search is restricted to:</p>
161
+ <ul>
162
+ <li>The user or API key that submitted the original async search request.</li>
163
+ <li>Users that have the <code>monitor</code> cluster privilege or greater privileges.</li>
164
+ </ul>
165
+
166
+
167
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-async-search-submit>`_
158
168
 
159
169
  :param id: A unique identifier for the async search.
160
- :param keep_alive: Specifies how long the async search needs to be available.
170
+ :param keep_alive: The length of time that the async search needs to be available.
161
171
  Ongoing async searches and any saved search results are deleted after this
162
172
  period.
163
173
  """
@@ -264,13 +274,13 @@ class AsyncSearchClient(NamespacedClient):
264
274
  ignore_throttled: t.Optional[bool] = None,
265
275
  ignore_unavailable: t.Optional[bool] = None,
266
276
  indices_boost: t.Optional[t.Sequence[t.Mapping[str, float]]] = None,
277
+ keep_alive: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
267
278
  keep_on_completion: t.Optional[bool] = None,
268
279
  knn: t.Optional[
269
280
  t.Union[t.Mapping[str, t.Any], t.Sequence[t.Mapping[str, t.Any]]]
270
281
  ] = None,
271
282
  lenient: t.Optional[bool] = None,
272
283
  max_concurrent_shard_requests: t.Optional[int] = None,
273
- min_compatible_shard_node: t.Optional[str] = None,
274
284
  min_score: t.Optional[float] = None,
275
285
  pit: t.Optional[t.Mapping[str, t.Any]] = None,
276
286
  post_filter: t.Optional[t.Mapping[str, t.Any]] = None,
@@ -288,7 +298,7 @@ class AsyncSearchClient(NamespacedClient):
288
298
  runtime_mappings: t.Optional[t.Mapping[str, t.Mapping[str, t.Any]]] = None,
289
299
  script_fields: t.Optional[t.Mapping[str, t.Mapping[str, t.Any]]] = None,
290
300
  search_after: t.Optional[
291
- t.Sequence[t.Union[None, bool, float, int, str, t.Any]]
301
+ t.Sequence[t.Union[None, bool, float, int, str]]
292
302
  ] = None,
293
303
  search_type: t.Optional[
294
304
  t.Union[str, t.Literal["dfs_query_then_fetch", "query_then_fetch"]]
@@ -326,17 +336,16 @@ class AsyncSearchClient(NamespacedClient):
326
336
  body: t.Optional[t.Dict[str, t.Any]] = None,
327
337
  ) -> ObjectApiResponse[t.Any]:
328
338
  """
329
- Run an async search. When the primary sort of the results is an indexed field,
330
- shards get sorted based on minimum and maximum value that they hold for that
331
- field. Partial results become available following the sort criteria that was
332
- requested. Warning: Asynchronous search does not support scroll or search requests
333
- that include only the suggest section. By default, Elasticsearch does not allow
334
- you to store an async search response larger than 10Mb and an attempt to do this
335
- results in an error. The maximum allowed size for a stored async search response
336
- can be set by changing the `search.max_async_search_response_size` cluster level
337
- setting.
339
+ .. raw:: html
338
340
 
339
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
341
+ <p>Run an async search.</p>
342
+ <p>When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested.</p>
343
+ <p>Warning: Asynchronous search does not support scroll or search requests that include only the suggest section.</p>
344
+ <p>By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error.
345
+ The maximum allowed size for a stored async search response can be set by changing the <code>search.max_async_search_response_size</code> cluster level setting.</p>
346
+
347
+
348
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-async-search-submit>`_
340
349
 
341
350
  :param index: A comma-separated list of index names to search; use `_all` or
342
351
  empty string to perform the operation on all indices
@@ -379,6 +388,9 @@ class AsyncSearchClient(NamespacedClient):
379
388
  :param ignore_unavailable: Whether specified concrete indices should be ignored
380
389
  when unavailable (missing or closed)
381
390
  :param indices_boost: Boosts the _score of documents from specified indices.
391
+ :param keep_alive: Specifies how long the async search needs to be available.
392
+ Ongoing async searches and any saved search results are deleted after this
393
+ period.
382
394
  :param keep_on_completion: If `true`, results are stored for later retrieval
383
395
  when the search completes within the `wait_for_completion_timeout`.
384
396
  :param knn: Defines the approximate kNN search to run.
@@ -388,9 +400,8 @@ class AsyncSearchClient(NamespacedClient):
388
400
  per node this search executes concurrently. This value should be used to
389
401
  limit the impact of the search on the cluster in order to limit the number
390
402
  of concurrent shard requests
391
- :param min_compatible_shard_node:
392
403
  :param min_score: Minimum _score for matching documents. Documents with a lower
393
- _score are not included in the search results.
404
+ _score are not included in search results and results collected by aggregations.
394
405
  :param pit: Limits the search to a point in time (PIT). If you provide a PIT,
395
406
  you cannot specify an <index> in the request path.
396
407
  :param post_filter:
@@ -505,14 +516,14 @@ class AsyncSearchClient(NamespacedClient):
505
516
  __query["ignore_throttled"] = ignore_throttled
506
517
  if ignore_unavailable is not None:
507
518
  __query["ignore_unavailable"] = ignore_unavailable
519
+ if keep_alive is not None:
520
+ __query["keep_alive"] = keep_alive
508
521
  if keep_on_completion is not None:
509
522
  __query["keep_on_completion"] = keep_on_completion
510
523
  if lenient is not None:
511
524
  __query["lenient"] = lenient
512
525
  if max_concurrent_shard_requests is not None:
513
526
  __query["max_concurrent_shard_requests"] = max_concurrent_shard_requests
514
- if min_compatible_shard_node is not None:
515
- __query["min_compatible_shard_node"] = min_compatible_shard_node
516
527
  if preference is not None:
517
528
  __query["preference"] = preference
518
529
  if pretty is not None:
@@ -38,11 +38,13 @@ class AutoscalingClient(NamespacedClient):
38
38
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
39
39
  ) -> ObjectApiResponse[t.Any]:
40
40
  """
41
- Delete an autoscaling policy. NOTE: This feature is designed for indirect use
42
- by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes.
43
- Direct use is not supported.
41
+ .. raw:: html
44
42
 
45
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-delete-autoscaling-policy.html>`_
43
+ <p>Delete an autoscaling policy.</p>
44
+ <p>NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.</p>
45
+
46
+
47
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-autoscaling-delete-autoscaling-policy>`_
46
48
 
47
49
  :param name: the name of the autoscaling policy
48
50
  :param master_timeout: Period to wait for a connection to the master node. If
@@ -89,20 +91,20 @@ class AutoscalingClient(NamespacedClient):
89
91
  pretty: t.Optional[bool] = None,
90
92
  ) -> ObjectApiResponse[t.Any]:
91
93
  """
92
- Get the autoscaling capacity. NOTE: This feature is designed for indirect use
93
- by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes.
94
- Direct use is not supported. This API gets the current autoscaling capacity based
95
- on the configured autoscaling policy. It will return information to size the
96
- cluster appropriately to the current workload. The `required_capacity` is calculated
97
- as the maximum of the `required_capacity` result of all individual deciders that
98
- are enabled for the policy. The operator should verify that the `current_nodes`
99
- match the operator’s knowledge of the cluster to avoid making autoscaling decisions
100
- based on stale or incomplete information. The response contains decider-specific
101
- information you can use to diagnose how and why autoscaling determined a certain
102
- capacity was required. This information is provided for diagnosis only. Do not
103
- use this information to make autoscaling decisions.
104
-
105
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-get-autoscaling-capacity.html>`_
94
+ .. raw:: html
95
+
96
+ <p>Get the autoscaling capacity.</p>
97
+ <p>NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.</p>
98
+ <p>This API gets the current autoscaling capacity based on the configured autoscaling policy.
99
+ It will return information to size the cluster appropriately to the current workload.</p>
100
+ <p>The <code>required_capacity</code> is calculated as the maximum of the <code>required_capacity</code> result of all individual deciders that are enabled for the policy.</p>
101
+ <p>The operator should verify that the <code>current_nodes</code> match the operator’s knowledge of the cluster to avoid making autoscaling decisions based on stale or incomplete information.</p>
102
+ <p>The response contains decider-specific information you can use to diagnose how and why autoscaling determined a certain capacity was required.
103
+ This information is provided for diagnosis only.
104
+ Do not use this information to make autoscaling decisions.</p>
105
+
106
+
107
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-autoscaling-get-autoscaling-capacity>`_
106
108
 
107
109
  :param master_timeout: Period to wait for a connection to the master node. If
108
110
  no response is received before the timeout expires, the request fails and
@@ -143,11 +145,13 @@ class AutoscalingClient(NamespacedClient):
143
145
  pretty: t.Optional[bool] = None,
144
146
  ) -> ObjectApiResponse[t.Any]:
145
147
  """
146
- Get an autoscaling policy. NOTE: This feature is designed for indirect use by
147
- Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes.
148
- Direct use is not supported.
148
+ .. raw:: html
149
149
 
150
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-get-autoscaling-capacity.html>`_
150
+ <p>Get an autoscaling policy.</p>
151
+ <p>NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.</p>
152
+
153
+
154
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-autoscaling-get-autoscaling-capacity>`_
151
155
 
152
156
  :param name: the name of the autoscaling policy
153
157
  :param master_timeout: Period to wait for a connection to the master node. If
@@ -196,11 +200,13 @@ class AutoscalingClient(NamespacedClient):
196
200
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
197
201
  ) -> ObjectApiResponse[t.Any]:
198
202
  """
199
- Create or update an autoscaling policy. NOTE: This feature is designed for indirect
200
- use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on
201
- Kubernetes. Direct use is not supported.
203
+ .. raw:: html
204
+
205
+ <p>Create or update an autoscaling policy.</p>
206
+ <p>NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.</p>
207
+
202
208
 
203
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-put-autoscaling-policy.html>`_
209
+ `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-autoscaling-put-autoscaling-policy>`_
204
210
 
205
211
  :param name: the name of the autoscaling policy
206
212
  :param policy: