Skip to content

Commit d2f93eb

Browse files
authored
Format endpoint descriptions as Markdown (#2757)
1 parent 73d5df7 commit d2f93eb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+9336
-6760
lines changed

elasticsearch/_async/client/__init__.py

Lines changed: 726 additions & 632 deletions
Large diffs are not rendered by default.

elasticsearch/_async/client/async_search.py

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ async def delete(
3636
pretty: t.Optional[bool] = None,
3737
) -> ObjectApiResponse[t.Any]:
3838
"""
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
40+
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+
4446
4547
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html>`_
4648
@@ -85,10 +87,12 @@ async def get(
8587
] = None,
8688
) -> ObjectApiResponse[t.Any]:
8789
"""
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+
9296
9397
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html>`_
9498
@@ -149,10 +153,12 @@ async def status(
149153
pretty: t.Optional[bool] = None,
150154
) -> ObjectApiResponse[t.Any]:
151155
"""
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
157+
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, use of this API is restricted to the <code>monitoring_user</code> role.</p>
161+
156162
157163
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html>`_
158164
@@ -325,15 +331,14 @@ async def submit(
325331
body: t.Optional[t.Dict[str, t.Any]] = None,
326332
) -> ObjectApiResponse[t.Any]:
327333
"""
328-
Run an async search. When the primary sort of the results is an indexed field,
329-
shards get sorted based on minimum and maximum value that they hold for that
330-
field. Partial results become available following the sort criteria that was
331-
requested. Warning: Asynchronous search does not support scroll or search requests
332-
that include only the suggest section. By default, Elasticsearch does not allow
333-
you to store an async search response larger than 10Mb and an attempt to do this
334-
results in an error. The maximum allowed size for a stored async search response
335-
can be set by changing the `search.max_async_search_response_size` cluster level
336-
setting.
334+
.. raw:: html
335+
336+
<p>Run an async search.</p>
337+
<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>
338+
<p>Warning: Asynchronous search does not support scroll or search requests that include only the suggest section.</p>
339+
<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.
340+
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>
341+
337342
338343
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html>`_
339344

elasticsearch/_async/client/autoscaling.py

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ async def delete_autoscaling_policy(
3838
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
3939
) -> ObjectApiResponse[t.Any]:
4040
"""
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
42+
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+
4446
4547
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/autoscaling-delete-autoscaling-policy.html>`_
4648
@@ -89,18 +91,18 @@ async def get_autoscaling_capacity(
8991
pretty: t.Optional[bool] = None,
9092
) -> ObjectApiResponse[t.Any]:
9193
"""
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.
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+
104106
105107
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/autoscaling-get-autoscaling-capacity.html>`_
106108
@@ -143,9 +145,11 @@ async def get_autoscaling_policy(
143145
pretty: t.Optional[bool] = None,
144146
) -> ObjectApiResponse[t.Any]:
145147
"""
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+
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+
149153
150154
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/autoscaling-get-autoscaling-capacity.html>`_
151155
@@ -196,9 +200,11 @@ async def put_autoscaling_policy(
196200
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
197201
) -> ObjectApiResponse[t.Any]:
198202
"""
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+
202208
203209
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/autoscaling-put-autoscaling-policy.html>`_
204210

0 commit comments

Comments
 (0)