Skip to content

Auto-generated code for 8.x #2836

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
14 changes: 7 additions & 7 deletions elasticsearch/_async/client/indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -3009,7 +3009,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/8.17/data-streams.html>`_
`<https://www.elastic.co/docs/api/doc/elasticsearch/v8/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 @@ -3065,7 +3065,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/8.17/data-streams.html>`_
`<https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-indices-modify-data-stream>`_

:param actions: Actions to perform.
"""
Expand Down Expand Up @@ -3230,7 +3230,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/8.17/data-streams.html>`_
`<https://www.elastic.co/docs/api/doc/elasticsearch/v8/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 @@ -3296,7 +3296,7 @@ async def put_alias(
Adds a data stream or index to an alias.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-aliases.html>`_
`<https://www.elastic.co/docs/api/doc/elasticsearch/v8/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 @@ -3403,7 +3403,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/8.17/data-streams-put-lifecycle.html>`_
`<https://www.elastic.co/docs/api/doc/elasticsearch/v8/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 @@ -3531,7 +3531,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/8.17/indices-put-template.html>`_
`<https://www.elastic.co/docs/api/doc/elasticsearch/v8/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 @@ -5465,7 +5465,7 @@ async def update_aliases(
Adds a data stream or index to an alias.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-aliases.html>`_
`<https://www.elastic.co/docs/api/doc/elasticsearch/v8/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
440 changes: 364 additions & 76 deletions elasticsearch/_async/client/inference.py

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions elasticsearch/_async/client/simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class SimulateClient(NamespacedClient):
body_fields=(
"docs",
"component_template_substitutions",
"index_template_subtitutions",
"index_template_substitutions",
"mapping_addition",
"pipeline_substitutions",
),
Expand All @@ -52,7 +52,7 @@ async def ingest(
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
human: t.Optional[bool] = None,
index_template_subtitutions: t.Optional[
index_template_substitutions: t.Optional[
t.Mapping[str, t.Mapping[str, t.Any]]
] = None,
mapping_addition: t.Optional[t.Mapping[str, t.Any]] = None,
Expand Down Expand Up @@ -90,7 +90,7 @@ async def ingest(
an index argument.
:param component_template_substitutions: A map of component template names to
substitute component template definition objects.
:param index_template_subtitutions: A map of index template names to substitute
:param index_template_substitutions: A map of index template names to substitute
index template definition objects.
:param mapping_addition:
:param pipeline: The pipeline to use as the default pipeline. This value can
Expand Down Expand Up @@ -127,8 +127,8 @@ async def ingest(
__body["component_template_substitutions"] = (
component_template_substitutions
)
if index_template_subtitutions is not None:
__body["index_template_subtitutions"] = index_template_subtitutions
if index_template_substitutions is not None:
__body["index_template_substitutions"] = index_template_substitutions
if mapping_addition is not None:
__body["mapping_addition"] = mapping_addition
if pipeline_substitutions is not None:
Expand Down
14 changes: 7 additions & 7 deletions elasticsearch/_sync/client/indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -3009,7 +3009,7 @@ 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/8.17/data-streams.html>`_
`<https://www.elastic.co/docs/api/doc/elasticsearch/v8/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 @@ -3065,7 +3065,7 @@ 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/8.17/data-streams.html>`_
`<https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-indices-modify-data-stream>`_

:param actions: Actions to perform.
"""
Expand Down Expand Up @@ -3230,7 +3230,7 @@ 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/8.17/data-streams.html>`_
`<https://www.elastic.co/docs/api/doc/elasticsearch/v8/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 @@ -3296,7 +3296,7 @@ def put_alias(
Adds a data stream or index to an alias.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-aliases.html>`_
`<https://www.elastic.co/docs/api/doc/elasticsearch/v8/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 @@ -3403,7 +3403,7 @@ def put_data_lifecycle(
Update the data stream lifecycle of the specified data streams.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/data-streams-put-lifecycle.html>`_
`<https://www.elastic.co/docs/api/doc/elasticsearch/v8/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 @@ -3531,7 +3531,7 @@ 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/8.17/indices-put-template.html>`_
`<https://www.elastic.co/docs/api/doc/elasticsearch/v8/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 @@ -5465,7 +5465,7 @@ def update_aliases(
Adds a data stream or index to an alias.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-aliases.html>`_
`<https://www.elastic.co/docs/api/doc/elasticsearch/v8/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
Loading