Skip to content

Auto-generated code for 8.19 #2957

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 8.19
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 43 additions & 43 deletions elasticsearch/_async/client/__init__.py

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions elasticsearch/_async/client/async_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def delete(
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>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/async-search.html>`_

:param id: A unique identifier for the async search.
"""
Expand Down Expand Up @@ -94,7 +94,7 @@ async def get(
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>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/async-search.html>`_

:param id: A unique identifier for the async search.
:param keep_alive: The length of time that the async search should be available
Expand Down Expand Up @@ -164,7 +164,7 @@ async def status(
</ul>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/async-search.html>`_

:param id: A unique identifier for the async search.
:param keep_alive: The length of time that the async search needs to be available.
Expand Down Expand Up @@ -346,7 +346,7 @@ async def submit(
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>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/async-search.html>`_

:param index: A comma-separated list of index names to search; use `_all` or
empty string to perform the operation on all indices
Expand Down
8 changes: 4 additions & 4 deletions elasticsearch/_async/client/autoscaling.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def delete_autoscaling_policy(
<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>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-delete-autoscaling-policy.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/autoscaling-delete-autoscaling-policy.html>`_

:param name: the name of the autoscaling policy
:param master_timeout: Period to wait for a connection to the master node. If
Expand Down Expand Up @@ -104,7 +104,7 @@ async def get_autoscaling_capacity(
Do not use this information to make autoscaling decisions.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-get-autoscaling-capacity.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/autoscaling-get-autoscaling-capacity.html>`_

:param master_timeout: Period to wait for a connection to the master node. If
no response is received before the timeout expires, the request fails and
Expand Down Expand Up @@ -151,7 +151,7 @@ async def get_autoscaling_policy(
<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>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-get-autoscaling-capacity.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/autoscaling-get-autoscaling-capacity.html>`_

:param name: the name of the autoscaling policy
:param master_timeout: Period to wait for a connection to the master node. If
Expand Down Expand Up @@ -206,7 +206,7 @@ async def put_autoscaling_policy(
<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>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-put-autoscaling-policy.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/autoscaling-put-autoscaling-policy.html>`_

:param name: the name of the autoscaling policy
:param policy:
Expand Down
260 changes: 227 additions & 33 deletions elasticsearch/_async/client/cat.py

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions elasticsearch/_async/client/ccr.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async def delete_auto_follow_pattern(
<p>Delete a collection of cross-cluster replication auto-follow patterns.</p>
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-delete-auto-follow-pattern.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-delete-auto-follow-pattern.html>`_
:param name: The auto-follow pattern collection to delete.
:param master_timeout: The period to wait for a connection to the master node.
Expand Down Expand Up @@ -130,7 +130,7 @@ async def follow(
When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index.</p>
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-put-follow.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-put-follow.html>`_
:param index: The name of the follower index.
:param leader_index: The name of the index in the leader cluster to follow.
Expand Down Expand Up @@ -259,7 +259,7 @@ async def follow_info(
For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused.</p>
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-get-follow-info.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-get-follow-info.html>`_
:param index: A comma-delimited list of follower index patterns.
:param master_timeout: The period to wait for a connection to the master node.
Expand Down Expand Up @@ -311,7 +311,7 @@ async def follow_stats(
The API returns shard-level stats about the &quot;following tasks&quot; associated with each shard for the specified indices.</p>
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-get-follow-stats.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-get-follow-stats.html>`_
:param index: A comma-delimited list of index patterns.
:param timeout: The period to wait for a response. If no response is received
Expand Down Expand Up @@ -380,7 +380,7 @@ async def forget_follower(
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>
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-post-forget-follower.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-post-forget-follower.html>`_
:param index: the name of the leader index for which specified follower retention
leases should be removed
Expand Down Expand Up @@ -445,7 +445,7 @@ async def get_auto_follow_pattern(
<p>Get cross-cluster replication auto-follow patterns.</p>
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-get-auto-follow-pattern.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-get-auto-follow-pattern.html>`_
:param name: The auto-follow pattern collection that you want to retrieve. If
you do not specify a name, the API returns information for all collections.
Expand Down Expand Up @@ -505,7 +505,7 @@ async def pause_auto_follow_pattern(
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>
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-pause-auto-follow-pattern.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-pause-auto-follow-pattern.html>`_
:param name: The name of the auto-follow pattern to pause.
:param master_timeout: The period to wait for a connection to the master node.
Expand Down Expand Up @@ -559,7 +559,7 @@ async def pause_follow(
You can pause and resume a follower index to change the configuration of the following task.</p>
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-post-pause-follow.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-post-pause-follow.html>`_
:param index: The name of the follower index.
:param master_timeout: The period to wait for a connection to the master node.
Expand Down Expand Up @@ -648,7 +648,7 @@ async def put_auto_follow_pattern(
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>
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-put-auto-follow-pattern.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-put-auto-follow-pattern.html>`_
:param name: The name of the collection of auto-follow patterns.
:param remote_cluster: The remote cluster containing the leader indices to match
Expand Down Expand Up @@ -782,7 +782,7 @@ async def resume_auto_follow_pattern(
Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim.</p>
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-resume-auto-follow-pattern.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-resume-auto-follow-pattern.html>`_
:param name: The name of the auto-follow pattern to resume.
:param master_timeout: The period to wait for a connection to the master node.
Expand Down Expand Up @@ -860,7 +860,7 @@ async def resume_follow(
When this API returns, the follower index will resume fetching operations from the leader index.</p>
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-post-resume-follow.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-post-resume-follow.html>`_
:param index: The name of the follow index to resume following.
:param master_timeout: Period to wait for a connection to the master node.
Expand Down Expand Up @@ -951,7 +951,7 @@ async def stats(
<p>This API returns stats about auto-following and the same shard-level stats as the get follower stats API.</p>
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-get-stats.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-get-stats.html>`_
:param master_timeout: The period to wait for a connection to the master node.
If the master node is not available before the timeout expires, the request
Expand Down Expand Up @@ -1009,7 +1009,7 @@ async def unfollow(
</blockquote>
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ccr-post-unfollow.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-post-unfollow.html>`_
:param index: The name of the follower index.
:param master_timeout: The period to wait for a connection to the master node.
Expand Down
28 changes: 14 additions & 14 deletions elasticsearch/_async/client/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async def allocation_explain(
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>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-allocation-explain.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/cluster-allocation-explain.html>`_

:param current_node: Specifies the node ID or the name of the node to only explain
a shard that is currently located on the specified node.
Expand Down Expand Up @@ -130,7 +130,7 @@ async def delete_component_template(
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-component-template.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/indices-component-template.html>`_

:param name: Comma-separated list or wildcard expression of component template
names used to limit the request.
Expand Down Expand Up @@ -239,7 +239,7 @@ async def exists_component_template(
Returns information about whether a particular component template exists.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-component-template.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/indices-component-template.html>`_

:param name: Comma-separated list of component template names used to limit the
request. Wildcard (*) expressions are supported.
Expand Down Expand Up @@ -298,7 +298,7 @@ async def get_component_template(
Get information about component templates.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-component-template.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/indices-component-template.html>`_

:param name: Comma-separated list of component template names used to limit the
request. Wildcard (`*`) expressions are supported.
Expand Down Expand Up @@ -365,7 +365,7 @@ async def get_settings(
By default, it returns only settings that have been explicitly defined.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-get-settings.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/cluster-get-settings.html>`_

:param flat_settings: If `true`, returns settings in flat format.
:param include_defaults: If `true`, returns default cluster settings from the
Expand Down Expand Up @@ -457,7 +457,7 @@ async def health(
The cluster status is controlled by the worst index status.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-health.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/cluster-health.html>`_

:param index: Comma-separated list of data streams, indices, and index aliases
used to limit the request. Wildcard expressions (`*`) are supported. To target
Expand Down Expand Up @@ -565,7 +565,7 @@ async def info(
Returns basic information about the cluster.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-info.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/cluster-info.html>`_

:param target: Limits the information returned to the specific target. Supports
a comma-separated list, such as http,ingest.
Expand Down Expand Up @@ -614,7 +614,7 @@ async def pending_tasks(
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>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-pending.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/cluster-pending.html>`_

:param local: If `true`, the request retrieves information from the local node
only. If `false`, information is retrieved from the master node.
Expand Down Expand Up @@ -761,7 +761,7 @@ async def put_component_template(
To be applied, a component template must be included in an index template's <code>composed_of</code> list.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-component-template.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/indices-component-template.html>`_

:param name: Name of the component template to create. Elasticsearch includes
the following built-in component templates: `logs-mappings`; `logs-settings`;
Expand Down Expand Up @@ -866,7 +866,7 @@ async def put_settings(
If a cluster becomes unstable, transient settings can clear unexpectedly, resulting in a potentially undesired cluster configuration.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-update-settings.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/cluster-update-settings.html>`_

:param flat_settings: Return settings in flat format (default: false)
:param master_timeout: Explicit operation timeout for connection to master node
Expand Down Expand Up @@ -932,7 +932,7 @@ async def remote_info(
</blockquote>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-remote-info.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/cluster-remote-info.html>`_
"""
__path_parts: t.Dict[str, str] = {}
__path = "/_remote/info"
Expand Down Expand Up @@ -989,7 +989,7 @@ async def reroute(
<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>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-reroute.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/cluster-reroute.html>`_

:param commands: Defines the commands to perform.
:param dry_run: If true, then the request simulates the operation. It will calculate
Expand Down Expand Up @@ -1094,7 +1094,7 @@ async def state(
Instead, obtain the information you require using other more stable cluster APIs.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-state.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/cluster-state.html>`_

:param metric: Limit the information returned to the specified metrics
:param index: A comma-separated list of index names; use `_all` or empty string
Expand Down Expand Up @@ -1182,7 +1182,7 @@ async def stats(
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>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-stats.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/cluster-stats.html>`_

:param node_id: Comma-separated list of node filters used to limit returned information.
Defaults to all nodes in the cluster.
Expand Down
Loading