Skip to content

Auto-generated code for main #2365

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
Nov 14, 2023
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
20 changes: 10 additions & 10 deletions elasticsearch/_async/client/indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ async def delete_index_template(
"""
Deletes an index template.

`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template.html>`_

:param name: Comma-separated list of index template names used to limit the request.
Wildcard (*) expressions are supported.
Expand Down Expand Up @@ -878,7 +878,7 @@ async def delete_template(
"""
Deletes an index template.

`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template-v1.html>`_

:param name: The name of the legacy index template to delete. Wildcard (`*`)
expressions are supported.
Expand Down Expand Up @@ -1190,7 +1190,7 @@ async def exists_index_template(
"""
Returns information about whether a particular index template exists.

`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/index-templates.html>`_

:param name: Comma-separated list of index template names used to limit the request.
Wildcard (*) expressions are supported.
Expand Down Expand Up @@ -1235,7 +1235,7 @@ async def exists_template(
"""
Returns information about whether a particular index template exists.

`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-template-exists-v1.html>`_

:param name: The comma separated names of the index templates
:param flat_settings: Return settings in flat format (default: false)
Expand Down Expand Up @@ -1925,7 +1925,7 @@ async def get_index_template(
"""
Returns an index template.

`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template.html>`_

:param name: Comma-separated list of index template names used to limit the request.
Wildcard (*) expressions are supported.
Expand Down Expand Up @@ -2149,7 +2149,7 @@ async def get_template(
"""
Returns an index template.

`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template-v1.html>`_

:param name: Comma-separated list of index template names used to limit the request.
Wildcard (`*`) expressions are supported. To return all index templates,
Expand Down Expand Up @@ -2576,7 +2576,7 @@ async def put_index_template(
"""
Creates or updates an index template.

`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-template.html>`_

:param name: Index or template name
:param composed_of: An ordered list of component template names. Component templates
Expand Down Expand Up @@ -2896,7 +2896,7 @@ async def put_template(
"""
Creates or updates an index template.

`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates-v1.html>`_

:param name: The name of the template
:param aliases: Aliases for the index.
Expand Down Expand Up @@ -3509,7 +3509,7 @@ async def simulate_index_template(
"""
Simulate matching the given index name against the index templates in the system

`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-index.html>`_

:param name: Index or template name to simulate
:param allow_auto_create: This setting overrides the value of the `action.auto_create_index`
Expand Down Expand Up @@ -3612,7 +3612,7 @@ async def simulate_template(
"""
Simulate resolving the given template name or body

`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-template.html>`_

:param name: Name of the index template to simulate. To test a template configuration
before you add it to the cluster, omit this parameter and specify the template
Expand Down
4 changes: 4 additions & 0 deletions elasticsearch/_async/client/ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -3582,6 +3582,7 @@ async def start_trained_model_deployment(
*,
model_id: str,
cache_size: t.Optional[t.Union[int, str]] = None,
deployment_id: t.Optional[str] = None,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
human: t.Optional[bool] = None,
Expand All @@ -3605,6 +3606,7 @@ async def start_trained_model_deployment(
:param cache_size: The inference cache size (in memory outside the JVM heap)
per node for the model. The default value is the same size as the `model_size_bytes`.
To disable the cache, `0b` can be provided.
:param deployment_id: A unique identifier for the deployment of the model.
:param number_of_allocations: The number of model allocations on each node where
the model is deployed. All allocations on a node share the same copy of the
model in memory but use a separate set of threads to evaluate the model.
Expand All @@ -3631,6 +3633,8 @@ async def start_trained_model_deployment(
__query: t.Dict[str, t.Any] = {}
if cache_size is not None:
__query["cache_size"] = cache_size
if deployment_id is not None:
__query["deployment_id"] = deployment_id
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch/_async/client/search_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async def delete(
"""
Deletes a search application.

`<https://www.elastic.co/guide/en/elasticsearch/reference/master/put-search-application.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-search-application.html>`_

:param name: The name of the search application to delete
"""
Expand Down
20 changes: 10 additions & 10 deletions elasticsearch/_sync/client/indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ def delete_index_template(
"""
Deletes an index template.

`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template.html>`_

:param name: Comma-separated list of index template names used to limit the request.
Wildcard (*) expressions are supported.
Expand Down Expand Up @@ -878,7 +878,7 @@ def delete_template(
"""
Deletes an index template.

`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template-v1.html>`_

:param name: The name of the legacy index template to delete. Wildcard (`*`)
expressions are supported.
Expand Down Expand Up @@ -1190,7 +1190,7 @@ def exists_index_template(
"""
Returns information about whether a particular index template exists.

`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/index-templates.html>`_

:param name: Comma-separated list of index template names used to limit the request.
Wildcard (*) expressions are supported.
Expand Down Expand Up @@ -1235,7 +1235,7 @@ def exists_template(
"""
Returns information about whether a particular index template exists.

`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-template-exists-v1.html>`_

:param name: The comma separated names of the index templates
:param flat_settings: Return settings in flat format (default: false)
Expand Down Expand Up @@ -1925,7 +1925,7 @@ def get_index_template(
"""
Returns an index template.

`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template.html>`_

:param name: Comma-separated list of index template names used to limit the request.
Wildcard (*) expressions are supported.
Expand Down Expand Up @@ -2149,7 +2149,7 @@ def get_template(
"""
Returns an index template.

`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template-v1.html>`_

:param name: Comma-separated list of index template names used to limit the request.
Wildcard (`*`) expressions are supported. To return all index templates,
Expand Down Expand Up @@ -2576,7 +2576,7 @@ def put_index_template(
"""
Creates or updates an index template.

`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-template.html>`_

:param name: Index or template name
:param composed_of: An ordered list of component template names. Component templates
Expand Down Expand Up @@ -2896,7 +2896,7 @@ def put_template(
"""
Creates or updates an index template.

`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates-v1.html>`_

:param name: The name of the template
:param aliases: Aliases for the index.
Expand Down Expand Up @@ -3509,7 +3509,7 @@ def simulate_index_template(
"""
Simulate matching the given index name against the index templates in the system

`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-index.html>`_

:param name: Index or template name to simulate
:param allow_auto_create: This setting overrides the value of the `action.auto_create_index`
Expand Down Expand Up @@ -3612,7 +3612,7 @@ def simulate_template(
"""
Simulate resolving the given template name or body

`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-template.html>`_

:param name: Name of the index template to simulate. To test a template configuration
before you add it to the cluster, omit this parameter and specify the template
Expand Down
4 changes: 4 additions & 0 deletions elasticsearch/_sync/client/ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -3582,6 +3582,7 @@ def start_trained_model_deployment(
*,
model_id: str,
cache_size: t.Optional[t.Union[int, str]] = None,
deployment_id: t.Optional[str] = None,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
human: t.Optional[bool] = None,
Expand All @@ -3605,6 +3606,7 @@ def start_trained_model_deployment(
:param cache_size: The inference cache size (in memory outside the JVM heap)
per node for the model. The default value is the same size as the `model_size_bytes`.
To disable the cache, `0b` can be provided.
:param deployment_id: A unique identifier for the deployment of the model.
:param number_of_allocations: The number of model allocations on each node where
the model is deployed. All allocations on a node share the same copy of the
model in memory but use a separate set of threads to evaluate the model.
Expand All @@ -3631,6 +3633,8 @@ def start_trained_model_deployment(
__query: t.Dict[str, t.Any] = {}
if cache_size is not None:
__query["cache_size"] = cache_size
if deployment_id is not None:
__query["deployment_id"] = deployment_id
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch/_sync/client/search_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def delete(
"""
Deletes a search application.

`<https://www.elastic.co/guide/en/elasticsearch/reference/master/put-search-application.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-search-application.html>`_

:param name: The name of the search application to delete
"""
Expand Down