Skip to content

Auto-generated code for 9.0 #2838

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

Merged
merged 1 commit into from
Mar 10, 2025
Merged
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
4 changes: 2 additions & 2 deletions elasticsearch/_async/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3114,7 +3114,7 @@ async def knn_search(
</ul>


`<https://www.elastic.co/guide/en/elasticsearch/reference/master/knn-search-api.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/9.0/knn-search-api.html>`_

:param index: A comma-separated list of index names to search; use `_all` or
to perform the operation on all indices.
Expand Down Expand Up @@ -4446,7 +4446,7 @@ async def scripts_painless_execute(
<p>Each context requires a script, but additional parameters depend on the context you're using for that script.</p>


`<https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/painless/9.0/painless-execute-api.html>`_

:param context: The context that the script should run in. NOTE: Result ordering
in the field contexts is not guaranteed.
Expand Down
4 changes: 2 additions & 2 deletions elasticsearch/_async/client/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -1539,7 +1539,7 @@ async def update_filtering_validation(
<p>Update the draft filtering validation info for a connector.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/master/update-connector-filtering-validation-api.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-filtering-validation-api.html>`_

:param connector_id: The unique identifier of the connector to be updated
:param validation:
Expand Down Expand Up @@ -1710,7 +1710,7 @@ async def update_native(
<p>Update the connector is_native flag.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/master/update-connector-native-api.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-native-api.html>`_

:param connector_id: The unique identifier of the connector to be updated
:param is_native:
Expand Down
4 changes: 2 additions & 2 deletions elasticsearch/_async/client/esql.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ async def async_query_stop(
If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can stop it.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/master/esql-async-query-stop-api.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/9.0/esql-async-query-stop-api.html>`_

:param id: The unique identifier of the query. A query ID is provided in the
ES|QL async query API response for a query that does not complete in the
Expand Down Expand Up @@ -408,7 +408,7 @@ async def query(
Get search results for an ES|QL (Elasticsearch query language) query.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/master/esql-rest.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/9.0/esql-rest.html>`_

:param query: The ES|QL query API accepts an ES|QL query string in the query
parameter, runs it, and returns the results.
Expand Down
29 changes: 17 additions & 12 deletions elasticsearch/_async/client/indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ async def cancel_migrate_reindex(
<p>Cancel a migration reindex attempt for a data stream or index.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/master/migrate-data-stream.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/9.0/migrate-data-stream.html>`_

:param index: The index or data stream name
"""
Expand Down Expand Up @@ -794,7 +794,7 @@ async def create_from(
<p>Copy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/master/migrate-data-stream.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/9.0/migrate-data-stream.html>`_

:param source: The source index or data stream name
:param dest: The destination index or data stream name
Expand Down Expand Up @@ -2487,6 +2487,7 @@ async def get_field_mapping(
human: t.Optional[bool] = None,
ignore_unavailable: t.Optional[bool] = None,
include_defaults: t.Optional[bool] = None,
local: t.Optional[bool] = None,
pretty: t.Optional[bool] = None,
) -> ObjectApiResponse[t.Any]:
"""
Expand Down Expand Up @@ -2515,6 +2516,8 @@ async def get_field_mapping(
:param ignore_unavailable: If `false`, the request returns an error if it targets
a missing or closed index.
:param include_defaults: If `true`, return all default settings in the response.
:param local: If `true`, the request retrieves information from the local node
only.
"""
if fields in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'fields'")
Expand Down Expand Up @@ -2542,6 +2545,8 @@ async def get_field_mapping(
__query["ignore_unavailable"] = ignore_unavailable
if include_defaults is not None:
__query["include_defaults"] = include_defaults
if local is not None:
__query["local"] = local
if pretty is not None:
__query["pretty"] = pretty
__headers = {"accept": "application/json"}
Expand Down Expand Up @@ -2726,7 +2731,7 @@ async def get_migrate_reindex_status(
<p>Get the status of a migration reindex attempt for a data stream or index.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/master/migrate-data-stream.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/9.0/migrate-data-stream.html>`_

:param index: The index or data stream name.
"""
Expand Down Expand Up @@ -2945,7 +2950,7 @@ async def migrate_reindex(
The persistent task ID is returned immediately and the reindexing work is completed in that task.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/master/migrate-data-stream.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/9.0/migrate-data-stream.html>`_

:param reindex:
"""
Expand Down Expand Up @@ -3006,7 +3011,7 @@ async def migrate_to_data_stream(
The write index for the alias becomes the write index for the stream.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html>`_
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-migrate-to-data-stream>`_

:param name: Name of the index alias to convert to a data stream.
:param master_timeout: Period to wait for a connection to the master node. If
Expand Down Expand Up @@ -3062,7 +3067,7 @@ async def modify_data_stream(
Performs one or more data stream modification actions in a single atomic operation.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html>`_
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-modify-data-stream>`_

:param actions: Actions to perform.
"""
Expand Down Expand Up @@ -3227,7 +3232,7 @@ async def promote_data_stream(
This will affect the lifecycle management of the data stream and interfere with the data stream size and retention.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html>`_
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-promote-data-stream>`_

:param name: The name of the data stream
:param master_timeout: Period to wait for a connection to the master node. If
Expand Down Expand Up @@ -3293,7 +3298,7 @@ async def put_alias(
Adds a data stream or index to an alias.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html>`_
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-alias>`_

:param index: Comma-separated list of data streams or indices to add. Supports
wildcards (`*`). Wildcard patterns that match both data streams and indices
Expand Down Expand Up @@ -3400,7 +3405,7 @@ async def put_data_lifecycle(
Update the data stream lifecycle of the specified data streams.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams-put-lifecycle.html>`_
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-data-lifecycle>`_

:param name: Comma-separated list of data streams used to limit the request.
Supports wildcards (`*`). To target all data streams use `*` or `_all`.
Expand Down Expand Up @@ -3528,7 +3533,7 @@ async def put_index_template(
If an entry already exists with the same key, then it is overwritten by the new definition.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-template.html>`_
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-index-template>`_

:param name: Index or template name
:param allow_auto_create: This setting overrides the value of the `action.auto_create_index`
Expand Down Expand Up @@ -5372,7 +5377,7 @@ async def update_aliases(
Adds a data stream or index to an alias.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html>`_
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-update-aliases>`_

:param actions: Actions to perform.
:param master_timeout: Period to wait for a connection to the master node. If
Expand Down Expand Up @@ -5451,7 +5456,7 @@ async def validate_query(
Validates a query without running it.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html>`_
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-validate-query>`_

:param index: Comma-separated list of data streams, indices, and aliases to search.
Supports wildcards (`*`). To search all data streams or indices, omit this
Expand Down
Loading