Skip to content

Commit 17ceee2

Browse files
Auto-generated API code
1 parent 82c9d98 commit 17ceee2

Some content is hidden

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

80 files changed

+1453
-1163
lines changed

elasticsearch/_async/client/__init__.py

+43-43
Large diffs are not rendered by default.

elasticsearch/_async/client/async_search.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async def delete(
4444
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>
4545
4646
47-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
47+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/async-search.html>`_
4848
4949
:param id: A unique identifier for the async search.
5050
"""
@@ -94,7 +94,7 @@ async def get(
9494
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>
9595
9696
97-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
97+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/async-search.html>`_
9898
9999
:param id: A unique identifier for the async search.
100100
:param keep_alive: The length of time that the async search should be available
@@ -164,7 +164,7 @@ async def status(
164164
</ul>
165165
166166
167-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
167+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/async-search.html>`_
168168
169169
:param id: A unique identifier for the async search.
170170
:param keep_alive: The length of time that the async search needs to be available.
@@ -346,7 +346,7 @@ async def submit(
346346
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>
347347
348348
349-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
349+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/async-search.html>`_
350350
351351
:param index: A comma-separated list of index names to search; use `_all` or
352352
empty string to perform the operation on all indices

elasticsearch/_async/client/autoscaling.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async def delete_autoscaling_policy(
4444
<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>
4545
4646
47-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-delete-autoscaling-policy.html>`_
47+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/autoscaling-delete-autoscaling-policy.html>`_
4848
4949
:param name: the name of the autoscaling policy
5050
:param master_timeout: Period to wait for a connection to the master node. If
@@ -104,7 +104,7 @@ async def get_autoscaling_capacity(
104104
Do not use this information to make autoscaling decisions.</p>
105105
106106
107-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-get-autoscaling-capacity.html>`_
107+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/autoscaling-get-autoscaling-capacity.html>`_
108108
109109
:param master_timeout: Period to wait for a connection to the master node. If
110110
no response is received before the timeout expires, the request fails and
@@ -151,7 +151,7 @@ async def get_autoscaling_policy(
151151
<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>
152152
153153
154-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-get-autoscaling-capacity.html>`_
154+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/autoscaling-get-autoscaling-capacity.html>`_
155155
156156
:param name: the name of the autoscaling policy
157157
:param master_timeout: Period to wait for a connection to the master node. If
@@ -206,7 +206,7 @@ async def put_autoscaling_policy(
206206
<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>
207207
208208
209-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-put-autoscaling-policy.html>`_
209+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/autoscaling-put-autoscaling-policy.html>`_
210210
211211
:param name: the name of the autoscaling policy
212212
:param policy:

elasticsearch/_async/client/cat.py

+227-33
Large diffs are not rendered by default.

elasticsearch/_async/client/ccr.py

+13-13
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async def delete_auto_follow_pattern(
4343
<p>Delete a collection of cross-cluster replication auto-follow patterns.</p>
4444
4545
46-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-delete-auto-follow-pattern.html>`_
46+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-delete-auto-follow-pattern.html>`_
4747
4848
:param name: The auto-follow pattern collection to delete.
4949
:param master_timeout: The period to wait for a connection to the master node.
@@ -130,7 +130,7 @@ async def follow(
130130
When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index.</p>
131131
132132
133-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-put-follow.html>`_
133+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-put-follow.html>`_
134134
135135
:param index: The name of the follower index.
136136
:param leader_index: The name of the index in the leader cluster to follow.
@@ -259,7 +259,7 @@ async def follow_info(
259259
For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused.</p>
260260
261261
262-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-get-follow-info.html>`_
262+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-get-follow-info.html>`_
263263
264264
:param index: A comma-delimited list of follower index patterns.
265265
:param master_timeout: The period to wait for a connection to the master node.
@@ -311,7 +311,7 @@ async def follow_stats(
311311
The API returns shard-level stats about the &quot;following tasks&quot; associated with each shard for the specified indices.</p>
312312
313313
314-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-get-follow-stats.html>`_
314+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-get-follow-stats.html>`_
315315
316316
:param index: A comma-delimited list of index patterns.
317317
:param timeout: The period to wait for a response. If no response is received
@@ -380,7 +380,7 @@ async def forget_follower(
380380
The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked.</p>
381381
382382
383-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-post-forget-follower.html>`_
383+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-post-forget-follower.html>`_
384384
385385
:param index: the name of the leader index for which specified follower retention
386386
leases should be removed
@@ -445,7 +445,7 @@ async def get_auto_follow_pattern(
445445
<p>Get cross-cluster replication auto-follow patterns.</p>
446446
447447
448-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-get-auto-follow-pattern.html>`_
448+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-get-auto-follow-pattern.html>`_
449449
450450
:param name: The auto-follow pattern collection that you want to retrieve. If
451451
you do not specify a name, the API returns information for all collections.
@@ -505,7 +505,7 @@ async def pause_auto_follow_pattern(
505505
Remote indices that were created while the pattern was paused will also be followed, unless they have been deleted or closed in the interim.</p>
506506
507507
508-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-pause-auto-follow-pattern.html>`_
508+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-pause-auto-follow-pattern.html>`_
509509
510510
:param name: The name of the auto-follow pattern to pause.
511511
:param master_timeout: The period to wait for a connection to the master node.
@@ -559,7 +559,7 @@ async def pause_follow(
559559
You can pause and resume a follower index to change the configuration of the following task.</p>
560560
561561
562-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-post-pause-follow.html>`_
562+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-post-pause-follow.html>`_
563563
564564
:param index: The name of the follower index.
565565
:param master_timeout: The period to wait for a connection to the master node.
@@ -648,7 +648,7 @@ async def put_auto_follow_pattern(
648648
NOTE: Follower indices that were configured automatically before updating an auto-follow pattern will remain unchanged even if they do not match against the new patterns.</p>
649649
650650
651-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-put-auto-follow-pattern.html>`_
651+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-put-auto-follow-pattern.html>`_
652652
653653
:param name: The name of the collection of auto-follow patterns.
654654
:param remote_cluster: The remote cluster containing the leader indices to match
@@ -782,7 +782,7 @@ async def resume_auto_follow_pattern(
782782
Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim.</p>
783783
784784
785-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-resume-auto-follow-pattern.html>`_
785+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-resume-auto-follow-pattern.html>`_
786786
787787
:param name: The name of the auto-follow pattern to resume.
788788
:param master_timeout: The period to wait for a connection to the master node.
@@ -860,7 +860,7 @@ async def resume_follow(
860860
When this API returns, the follower index will resume fetching operations from the leader index.</p>
861861
862862
863-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-post-resume-follow.html>`_
863+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-post-resume-follow.html>`_
864864
865865
:param index: The name of the follow index to resume following.
866866
:param master_timeout: Period to wait for a connection to the master node.
@@ -951,7 +951,7 @@ async def stats(
951951
<p>This API returns stats about auto-following and the same shard-level stats as the get follower stats API.</p>
952952
953953
954-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-get-stats.html>`_
954+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-get-stats.html>`_
955955
956956
:param master_timeout: The period to wait for a connection to the master node.
957957
If the master node is not available before the timeout expires, the request
@@ -1009,7 +1009,7 @@ async def unfollow(
10091009
</blockquote>
10101010
10111011
1012-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-post-unfollow.html>`_
1012+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-post-unfollow.html>`_
10131013
10141014
:param index: The name of the follower index.
10151015
:param master_timeout: The period to wait for a connection to the master node.

elasticsearch/_async/client/cluster.py

+14-14
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ async def allocation_explain(
5454
This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise.</p>
5555
5656
57-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-allocation-explain.html>`_
57+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/cluster-allocation-explain.html>`_
5858
5959
:param current_node: Specifies the node ID or the name of the node to only explain
6060
a shard that is currently located on the specified node.
@@ -130,7 +130,7 @@ async def delete_component_template(
130130
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.</p>
131131
132132
133-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-component-template.html>`_
133+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/indices-component-template.html>`_
134134
135135
:param name: Comma-separated list or wildcard expression of component template
136136
names used to limit the request.
@@ -239,7 +239,7 @@ async def exists_component_template(
239239
Returns information about whether a particular component template exists.</p>
240240
241241
242-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-component-template.html>`_
242+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/indices-component-template.html>`_
243243
244244
:param name: Comma-separated list of component template names used to limit the
245245
request. Wildcard (*) expressions are supported.
@@ -298,7 +298,7 @@ async def get_component_template(
298298
Get information about component templates.</p>
299299
300300
301-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-component-template.html>`_
301+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/indices-component-template.html>`_
302302
303303
:param name: Comma-separated list of component template names used to limit the
304304
request. Wildcard (`*`) expressions are supported.
@@ -365,7 +365,7 @@ async def get_settings(
365365
By default, it returns only settings that have been explicitly defined.</p>
366366
367367
368-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-get-settings.html>`_
368+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/cluster-get-settings.html>`_
369369
370370
:param flat_settings: If `true`, returns settings in flat format.
371371
:param include_defaults: If `true`, returns default cluster settings from the
@@ -457,7 +457,7 @@ async def health(
457457
The cluster status is controlled by the worst index status.</p>
458458
459459
460-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-health.html>`_
460+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/cluster-health.html>`_
461461
462462
:param index: Comma-separated list of data streams, indices, and index aliases
463463
used to limit the request. Wildcard expressions (`*`) are supported. To target
@@ -565,7 +565,7 @@ async def info(
565565
Returns basic information about the cluster.</p>
566566
567567
568-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-info.html>`_
568+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/cluster-info.html>`_
569569
570570
:param target: Limits the information returned to the specific target. Supports
571571
a comma-separated list, such as http,ingest.
@@ -614,7 +614,7 @@ async def pending_tasks(
614614
However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API.</p>
615615
616616
617-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-pending.html>`_
617+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/cluster-pending.html>`_
618618
619619
:param local: If `true`, the request retrieves information from the local node
620620
only. If `false`, information is retrieved from the master node.
@@ -761,7 +761,7 @@ async def put_component_template(
761761
To be applied, a component template must be included in an index template's <code>composed_of</code> list.</p>
762762
763763
764-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-component-template.html>`_
764+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/indices-component-template.html>`_
765765
766766
:param name: Name of the component template to create. Elasticsearch includes
767767
the following built-in component templates: `logs-mappings`; `logs-settings`;
@@ -866,7 +866,7 @@ async def put_settings(
866866
If a cluster becomes unstable, transient settings can clear unexpectedly, resulting in a potentially undesired cluster configuration.</p>
867867
868868
869-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-update-settings.html>`_
869+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/cluster-update-settings.html>`_
870870
871871
:param flat_settings: Return settings in flat format (default: false)
872872
:param master_timeout: Explicit operation timeout for connection to master node
@@ -932,7 +932,7 @@ async def remote_info(
932932
</blockquote>
933933
934934
935-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-remote-info.html>`_
935+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/cluster-remote-info.html>`_
936936
"""
937937
__path_parts: t.Dict[str, str] = {}
938938
__path = "/_remote/info"
@@ -989,7 +989,7 @@ async def reroute(
989989
<p>Once the problem has been corrected, allocation can be manually retried by calling the reroute API with the <code>?retry_failed</code> URI query parameter, which will attempt a single retry round for these shards.</p>
990990
991991
992-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-reroute.html>`_
992+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/cluster-reroute.html>`_
993993
994994
:param commands: Defines the commands to perform.
995995
:param dry_run: If true, then the request simulates the operation. It will calculate
@@ -1094,7 +1094,7 @@ async def state(
10941094
Instead, obtain the information you require using other more stable cluster APIs.</p>
10951095
10961096
1097-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-state.html>`_
1097+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/cluster-state.html>`_
10981098
10991099
:param metric: Limit the information returned to the specified metrics
11001100
:param index: A comma-separated list of index names; use `_all` or empty string
@@ -1182,7 +1182,7 @@ async def stats(
11821182
Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins).</p>
11831183
11841184
1185-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-stats.html>`_
1185+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/cluster-stats.html>`_
11861186
11871187
:param node_id: Comma-separated list of node filters used to limit returned information.
11881188
Defaults to all nodes in the cluster.

0 commit comments

Comments
 (0)