Skip to content

Commit e995008

Browse files
authored
Auto-generated code for 8.x (#2759)
1 parent 07ec645 commit e995008

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

+3412
-2036
lines changed

elasticsearch/_async/client/__init__.py

Lines changed: 719 additions & 236 deletions
Large diffs are not rendered by default.

elasticsearch/_async/client/async_search.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async def delete(
4242
the authenticated user that submitted the original search request; users that
4343
have the `cancel_task` cluster privilege.
4444
45-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/async-search.html>`_
45+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
4646
4747
:param id: A unique identifier for the async search.
4848
"""
@@ -90,7 +90,7 @@ async def get(
9090
the results of a specific async search is restricted to the user or API key that
9191
submitted it.
9292
93-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/async-search.html>`_
93+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
9494
9595
:param id: A unique identifier for the async search.
9696
:param keep_alive: Specifies how long the async search should be available in
@@ -154,7 +154,7 @@ async def status(
154154
security features are enabled, use of this API is restricted to the `monitoring_user`
155155
role.
156156
157-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/async-search.html>`_
157+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
158158
159159
:param id: A unique identifier for the async search.
160160
:param keep_alive: Specifies how long the async search needs to be available.
@@ -336,7 +336,7 @@ async def submit(
336336
can be set by changing the `search.max_async_search_response_size` cluster level
337337
setting.
338338
339-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/async-search.html>`_
339+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
340340
341341
:param index: A comma-separated list of index names to search; use `_all` or
342342
empty string to perform the operation on all indices

elasticsearch/_async/client/autoscaling.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async def delete_autoscaling_policy(
4242
by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes.
4343
Direct use is not supported.
4444
45-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/autoscaling-delete-autoscaling-policy.html>`_
45+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-delete-autoscaling-policy.html>`_
4646
4747
:param name: the name of the autoscaling policy
4848
:param master_timeout: Period to wait for a connection to the master node. If
@@ -102,7 +102,7 @@ async def get_autoscaling_capacity(
102102
capacity was required. This information is provided for diagnosis only. Do not
103103
use this information to make autoscaling decisions.
104104
105-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/autoscaling-get-autoscaling-capacity.html>`_
105+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-get-autoscaling-capacity.html>`_
106106
107107
:param master_timeout: Period to wait for a connection to the master node. If
108108
no response is received before the timeout expires, the request fails and
@@ -147,7 +147,7 @@ async def get_autoscaling_policy(
147147
Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes.
148148
Direct use is not supported.
149149
150-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/autoscaling-get-autoscaling-capacity.html>`_
150+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-get-autoscaling-capacity.html>`_
151151
152152
:param name: the name of the autoscaling policy
153153
:param master_timeout: Period to wait for a connection to the master node. If
@@ -200,7 +200,7 @@ async def put_autoscaling_policy(
200200
use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on
201201
Kubernetes. Direct use is not supported.
202202
203-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/autoscaling-put-autoscaling-policy.html>`_
203+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-put-autoscaling-policy.html>`_
204204
205205
:param name: the name of the autoscaling policy
206206
:param policy:

elasticsearch/_async/client/cat.py

Lines changed: 151 additions & 143 deletions
Large diffs are not rendered by default.

elasticsearch/_async/client/ccr.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async def delete_auto_follow_pattern(
4040
Delete auto-follow patterns. Delete a collection of cross-cluster replication
4141
auto-follow patterns.
4242
43-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ccr-delete-auto-follow-pattern.html>`_
43+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-delete-auto-follow-pattern.html>`_
4444
4545
:param name: The name of the auto follow pattern.
4646
:param master_timeout: Period to wait for a connection to the master node.
@@ -122,7 +122,7 @@ async def follow(
122122
cross-cluster replication starts replicating operations from the leader index
123123
to the follower index.
124124
125-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ccr-put-follow.html>`_
125+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-put-follow.html>`_
126126
127127
:param index: The name of the follower index.
128128
:param leader_index: The name of the index in the leader cluster to follow.
@@ -249,7 +249,7 @@ async def follow_info(
249249
index names, replication options, and whether the follower indices are active
250250
or paused.
251251
252-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ccr-get-follow-info.html>`_
252+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-get-follow-info.html>`_
253253
254254
:param index: A comma-separated list of index patterns; use `_all` to perform
255255
the operation on all indices
@@ -296,7 +296,7 @@ async def follow_stats(
296296
shard-level stats about the "following tasks" associated with each shard for
297297
the specified indices.
298298
299-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ccr-get-follow-stats.html>`_
299+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-get-follow-stats.html>`_
300300
301301
:param index: A comma-separated list of index patterns; use `_all` to perform
302302
the operation on all indices
@@ -370,7 +370,7 @@ async def forget_follower(
370370
API is to handle the case of failure to remove the following retention leases
371371
after the unfollow API is invoked.
372372
373-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ccr-post-forget-follower.html>`_
373+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-post-forget-follower.html>`_
374374
375375
:param index: the name of the leader index for which specified follower retention
376376
leases should be removed
@@ -431,7 +431,7 @@ async def get_auto_follow_pattern(
431431
"""
432432
Get auto-follow patterns. Get cross-cluster replication auto-follow patterns.
433433
434-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ccr-get-auto-follow-pattern.html>`_
434+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-get-auto-follow-pattern.html>`_
435435
436436
:param name: Specifies the auto-follow pattern collection that you want to retrieve.
437437
If you do not specify a name, the API returns information for all collections.
@@ -486,7 +486,7 @@ async def pause_auto_follow_pattern(
486486
patterns. Remote indices that were created while the pattern was paused will
487487
also be followed, unless they have been deleted or closed in the interim.
488488
489-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ccr-pause-auto-follow-pattern.html>`_
489+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-pause-auto-follow-pattern.html>`_
490490
491491
:param name: The name of the auto follow pattern that should pause discovering
492492
new indices to follow.
@@ -534,7 +534,7 @@ async def pause_follow(
534534
resume following with the resume follower API. You can pause and resume a follower
535535
index to change the configuration of the following task.
536536
537-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ccr-post-pause-follow.html>`_
537+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-post-pause-follow.html>`_
538538
539539
:param index: The name of the follower index that should pause following its
540540
leader index.
@@ -620,7 +620,7 @@ async def put_auto_follow_pattern(
620620
that were configured automatically before updating an auto-follow pattern will
621621
remain unchanged even if they do not match against the new patterns.
622622
623-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ccr-put-auto-follow-pattern.html>`_
623+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-put-auto-follow-pattern.html>`_
624624
625625
:param name: The name of the collection of auto-follow patterns.
626626
:param remote_cluster: The remote cluster containing the leader indices to match
@@ -752,7 +752,7 @@ async def resume_auto_follow_pattern(
752752
Remote indices created while the pattern was paused will also be followed unless
753753
they have been deleted or closed in the interim.
754754
755-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ccr-resume-auto-follow-pattern.html>`_
755+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-resume-auto-follow-pattern.html>`_
756756
757757
:param name: The name of the auto follow pattern to resume discovering new indices
758758
to follow.
@@ -825,7 +825,7 @@ async def resume_follow(
825825
to failures during following tasks. When this API returns, the follower index
826826
will resume fetching operations from the leader index.
827827
828-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ccr-post-resume-follow.html>`_
828+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-post-resume-follow.html>`_
829829
830830
:param index: The name of the follow index to resume following.
831831
:param master_timeout: Period to wait for a connection to the master node.
@@ -913,7 +913,7 @@ async def stats(
913913
Get cross-cluster replication stats. This API returns stats about auto-following
914914
and the same shard-level stats as the get follower stats API.
915915
916-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ccr-get-stats.html>`_
916+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-get-stats.html>`_
917917
918918
:param master_timeout: Period to wait for a connection to the master node.
919919
:param timeout: Period to wait for a response. If no response is received before
@@ -964,7 +964,7 @@ async def unfollow(
964964
regular index to a follower index. Converting a follower index to a regular index
965965
is an irreversible operation.
966966
967-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ccr-post-unfollow.html>`_
967+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-post-unfollow.html>`_
968968
969969
:param index: The name of the follower index that should be turned into a regular
970970
index.

elasticsearch/_async/client/cluster.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async def allocation_explain(
5353
or why a shard continues to remain on its current node when you might expect
5454
otherwise.
5555
56-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-allocation-explain.html>`_
56+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-allocation-explain.html>`_
5757
5858
:param current_node: Specifies the node ID or the name of the node to only explain
5959
a shard that is currently located on the specified node.
@@ -126,7 +126,7 @@ async def delete_component_template(
126126
Delete component templates. Component templates are building blocks for constructing
127127
index templates that specify index mappings, settings, and aliases.
128128
129-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-component-template.html>`_
129+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-component-template.html>`_
130130
131131
:param name: Comma-separated list or wildcard expression of component template
132132
names used to limit the request.
@@ -178,7 +178,7 @@ async def delete_voting_config_exclusions(
178178
Clear cluster voting config exclusions. Remove master-eligible nodes from the
179179
voting configuration exclusion list.
180180
181-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/voting-config-exclusions.html>`_
181+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/voting-config-exclusions.html>`_
182182
183183
:param master_timeout: Period to wait for a connection to the master node.
184184
:param wait_for_removal: Specifies whether to wait for all excluded nodes to
@@ -229,7 +229,7 @@ async def exists_component_template(
229229
Check component templates. Returns information about whether a particular component
230230
template exists.
231231
232-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-component-template.html>`_
232+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-component-template.html>`_
233233
234234
:param name: Comma-separated list of component template names used to limit the
235235
request. Wildcard (*) expressions are supported.
@@ -284,7 +284,7 @@ async def get_component_template(
284284
"""
285285
Get component templates. Get information about component templates.
286286
287-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-component-template.html>`_
287+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-component-template.html>`_
288288
289289
:param name: Comma-separated list of component template names used to limit the
290290
request. Wildcard (`*`) expressions are supported.
@@ -348,7 +348,7 @@ async def get_settings(
348348
Get cluster-wide settings. By default, it returns only settings that have been
349349
explicitly defined.
350350
351-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-get-settings.html>`_
351+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-get-settings.html>`_
352352
353353
:param flat_settings: If `true`, returns settings in flat format.
354354
:param include_defaults: If `true`, returns default cluster settings from the
@@ -439,7 +439,7 @@ async def health(
439439
high watermark health level. The cluster status is controlled by the worst index
440440
status.
441441
442-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-health.html>`_
442+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-health.html>`_
443443
444444
:param index: Comma-separated list of data streams, indices, and index aliases
445445
used to limit the request. Wildcard expressions (`*`) are supported. To target
@@ -543,7 +543,7 @@ async def info(
543543
"""
544544
Get cluster info. Returns basic information about the cluster.
545545
546-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-info.html>`_
546+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-info.html>`_
547547
548548
:param target: Limits the information returned to the specific target. Supports
549549
a comma-separated list, such as http,ingest.
@@ -592,7 +592,7 @@ async def pending_tasks(
592592
index command causes a cluster state update, the activity of this task might
593593
be reported by both task api and pending cluster tasks API.
594594
595-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-pending.html>`_
595+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-pending.html>`_
596596
597597
:param local: If `true`, the request retrieves information from the local node
598598
only. If `false`, information is retrieved from the master node.
@@ -667,7 +667,7 @@ async def post_voting_config_exclusions(
667667
master-ineligible nodes or when removing fewer than half of the master-eligible
668668
nodes.
669669
670-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/voting-config-exclusions.html>`_
670+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/voting-config-exclusions.html>`_
671671
672672
:param master_timeout: Period to wait for a connection to the master node.
673673
:param node_ids: A comma-separated list of the persistent ids of the nodes to
@@ -746,7 +746,7 @@ async def put_component_template(
746746
template to a data stream or index. To be applied, a component template must
747747
be included in an index template's `composed_of` list.
748748
749-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-component-template.html>`_
749+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-component-template.html>`_
750750
751751
:param name: Name of the component template to create. Elasticsearch includes
752752
the following built-in component templates: `logs-mappings`; `logs-settings`;
@@ -854,7 +854,7 @@ async def put_settings(
854854
settings can clear unexpectedly, resulting in a potentially undesired cluster
855855
configuration.
856856
857-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-update-settings.html>`_
857+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-update-settings.html>`_
858858
859859
:param flat_settings: Return settings in flat format (default: false)
860860
:param master_timeout: Explicit operation timeout for connection to master node
@@ -910,7 +910,7 @@ async def remote_info(
910910
This API returns connection and endpoint information keyed by the configured
911911
remote cluster alias.
912912
913-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-remote-info.html>`_
913+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-remote-info.html>`_
914914
"""
915915
__path_parts: t.Dict[str, str] = {}
916916
__path = "/_remote/info"
@@ -973,7 +973,7 @@ async def reroute(
973973
API with the `?retry_failed` URI query parameter, which will attempt a single
974974
retry round for these shards.
975975
976-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-reroute.html>`_
976+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-reroute.html>`_
977977
978978
:param commands: Defines the commands to perform.
979979
:param dry_run: If true, then the request simulates the operation. It will calculate
@@ -1081,7 +1081,7 @@ async def state(
10811081
external monitoring tools. Instead, obtain the information you require using
10821082
other more stable cluster APIs.
10831083
1084-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-state.html>`_
1084+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-state.html>`_
10851085
10861086
:param metric: Limit the information returned to the specified metrics
10871087
:param index: A comma-separated list of index names; use `_all` or empty string
@@ -1167,7 +1167,7 @@ async def stats(
11671167
usage) and information about the current nodes that form the cluster (number,
11681168
roles, os, jvm versions, memory usage, cpu and installed plugins).
11691169
1170-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-stats.html>`_
1170+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-stats.html>`_
11711171
11721172
:param node_id: Comma-separated list of node filters used to limit returned information.
11731173
Defaults to all nodes in the cluster.

0 commit comments

Comments
 (0)