Skip to content

Commit c1a43ff

Browse files
Auto-generated API code (#2365)
1 parent 8e7293f commit c1a43ff

File tree

6 files changed

+30
-22
lines changed

6 files changed

+30
-22
lines changed

elasticsearch/_async/client/indices.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ async def delete_index_template(
830830
"""
831831
Deletes an index template.
832832
833-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
833+
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template.html>`_
834834
835835
:param name: Comma-separated list of index template names used to limit the request.
836836
Wildcard (*) expressions are supported.
@@ -878,7 +878,7 @@ async def delete_template(
878878
"""
879879
Deletes an index template.
880880
881-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
881+
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template-v1.html>`_
882882
883883
:param name: The name of the legacy index template to delete. Wildcard (`*`)
884884
expressions are supported.
@@ -1190,7 +1190,7 @@ async def exists_index_template(
11901190
"""
11911191
Returns information about whether a particular index template exists.
11921192
1193-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
1193+
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/index-templates.html>`_
11941194
11951195
:param name: Comma-separated list of index template names used to limit the request.
11961196
Wildcard (*) expressions are supported.
@@ -1235,7 +1235,7 @@ async def exists_template(
12351235
"""
12361236
Returns information about whether a particular index template exists.
12371237
1238-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
1238+
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-template-exists-v1.html>`_
12391239
12401240
:param name: The comma separated names of the index templates
12411241
:param flat_settings: Return settings in flat format (default: false)
@@ -1925,7 +1925,7 @@ async def get_index_template(
19251925
"""
19261926
Returns an index template.
19271927
1928-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
1928+
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template.html>`_
19291929
19301930
:param name: Comma-separated list of index template names used to limit the request.
19311931
Wildcard (*) expressions are supported.
@@ -2149,7 +2149,7 @@ async def get_template(
21492149
"""
21502150
Returns an index template.
21512151
2152-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
2152+
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template-v1.html>`_
21532153
21542154
:param name: Comma-separated list of index template names used to limit the request.
21552155
Wildcard (`*`) expressions are supported. To return all index templates,
@@ -2576,7 +2576,7 @@ async def put_index_template(
25762576
"""
25772577
Creates or updates an index template.
25782578
2579-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
2579+
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-template.html>`_
25802580
25812581
:param name: Index or template name
25822582
:param composed_of: An ordered list of component template names. Component templates
@@ -2896,7 +2896,7 @@ async def put_template(
28962896
"""
28972897
Creates or updates an index template.
28982898
2899-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
2899+
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates-v1.html>`_
29002900
29012901
:param name: The name of the template
29022902
:param aliases: Aliases for the index.
@@ -3509,7 +3509,7 @@ async def simulate_index_template(
35093509
"""
35103510
Simulate matching the given index name against the index templates in the system
35113511
3512-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
3512+
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-index.html>`_
35133513
35143514
:param name: Index or template name to simulate
35153515
:param allow_auto_create: This setting overrides the value of the `action.auto_create_index`
@@ -3612,7 +3612,7 @@ async def simulate_template(
36123612
"""
36133613
Simulate resolving the given template name or body
36143614
3615-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
3615+
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-template.html>`_
36163616
36173617
:param name: Name of the index template to simulate. To test a template configuration
36183618
before you add it to the cluster, omit this parameter and specify the template

elasticsearch/_async/client/ml.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3582,6 +3582,7 @@ async def start_trained_model_deployment(
35823582
*,
35833583
model_id: str,
35843584
cache_size: t.Optional[t.Union[int, str]] = None,
3585+
deployment_id: t.Optional[str] = None,
35853586
error_trace: t.Optional[bool] = None,
35863587
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
35873588
human: t.Optional[bool] = None,
@@ -3605,6 +3606,7 @@ async def start_trained_model_deployment(
36053606
:param cache_size: The inference cache size (in memory outside the JVM heap)
36063607
per node for the model. The default value is the same size as the `model_size_bytes`.
36073608
To disable the cache, `0b` can be provided.
3609+
:param deployment_id: A unique identifier for the deployment of the model.
36083610
:param number_of_allocations: The number of model allocations on each node where
36093611
the model is deployed. All allocations on a node share the same copy of the
36103612
model in memory but use a separate set of threads to evaluate the model.
@@ -3631,6 +3633,8 @@ async def start_trained_model_deployment(
36313633
__query: t.Dict[str, t.Any] = {}
36323634
if cache_size is not None:
36333635
__query["cache_size"] = cache_size
3636+
if deployment_id is not None:
3637+
__query["deployment_id"] = deployment_id
36343638
if error_trace is not None:
36353639
__query["error_trace"] = error_trace
36363640
if filter_path is not None:

elasticsearch/_async/client/search_application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async def delete(
3737
"""
3838
Deletes a search application.
3939
40-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/put-search-application.html>`_
40+
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-search-application.html>`_
4141
4242
:param name: The name of the search application to delete
4343
"""

elasticsearch/_sync/client/indices.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ def delete_index_template(
830830
"""
831831
Deletes an index template.
832832
833-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
833+
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template.html>`_
834834
835835
:param name: Comma-separated list of index template names used to limit the request.
836836
Wildcard (*) expressions are supported.
@@ -878,7 +878,7 @@ def delete_template(
878878
"""
879879
Deletes an index template.
880880
881-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
881+
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template-v1.html>`_
882882
883883
:param name: The name of the legacy index template to delete. Wildcard (`*`)
884884
expressions are supported.
@@ -1190,7 +1190,7 @@ def exists_index_template(
11901190
"""
11911191
Returns information about whether a particular index template exists.
11921192
1193-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
1193+
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/index-templates.html>`_
11941194
11951195
:param name: Comma-separated list of index template names used to limit the request.
11961196
Wildcard (*) expressions are supported.
@@ -1235,7 +1235,7 @@ def exists_template(
12351235
"""
12361236
Returns information about whether a particular index template exists.
12371237
1238-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
1238+
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-template-exists-v1.html>`_
12391239
12401240
:param name: The comma separated names of the index templates
12411241
:param flat_settings: Return settings in flat format (default: false)
@@ -1925,7 +1925,7 @@ def get_index_template(
19251925
"""
19261926
Returns an index template.
19271927
1928-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
1928+
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template.html>`_
19291929
19301930
:param name: Comma-separated list of index template names used to limit the request.
19311931
Wildcard (*) expressions are supported.
@@ -2149,7 +2149,7 @@ def get_template(
21492149
"""
21502150
Returns an index template.
21512151
2152-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
2152+
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template-v1.html>`_
21532153
21542154
:param name: Comma-separated list of index template names used to limit the request.
21552155
Wildcard (`*`) expressions are supported. To return all index templates,
@@ -2576,7 +2576,7 @@ def put_index_template(
25762576
"""
25772577
Creates or updates an index template.
25782578
2579-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
2579+
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-template.html>`_
25802580
25812581
:param name: Index or template name
25822582
:param composed_of: An ordered list of component template names. Component templates
@@ -2896,7 +2896,7 @@ def put_template(
28962896
"""
28972897
Creates or updates an index template.
28982898
2899-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
2899+
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates-v1.html>`_
29002900
29012901
:param name: The name of the template
29022902
:param aliases: Aliases for the index.
@@ -3509,7 +3509,7 @@ def simulate_index_template(
35093509
"""
35103510
Simulate matching the given index name against the index templates in the system
35113511
3512-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
3512+
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-index.html>`_
35133513
35143514
:param name: Index or template name to simulate
35153515
:param allow_auto_create: This setting overrides the value of the `action.auto_create_index`
@@ -3612,7 +3612,7 @@ def simulate_template(
36123612
"""
36133613
Simulate resolving the given template name or body
36143614
3615-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
3615+
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-template.html>`_
36163616
36173617
:param name: Name of the index template to simulate. To test a template configuration
36183618
before you add it to the cluster, omit this parameter and specify the template

elasticsearch/_sync/client/ml.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3582,6 +3582,7 @@ def start_trained_model_deployment(
35823582
*,
35833583
model_id: str,
35843584
cache_size: t.Optional[t.Union[int, str]] = None,
3585+
deployment_id: t.Optional[str] = None,
35853586
error_trace: t.Optional[bool] = None,
35863587
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
35873588
human: t.Optional[bool] = None,
@@ -3605,6 +3606,7 @@ def start_trained_model_deployment(
36053606
:param cache_size: The inference cache size (in memory outside the JVM heap)
36063607
per node for the model. The default value is the same size as the `model_size_bytes`.
36073608
To disable the cache, `0b` can be provided.
3609+
:param deployment_id: A unique identifier for the deployment of the model.
36083610
:param number_of_allocations: The number of model allocations on each node where
36093611
the model is deployed. All allocations on a node share the same copy of the
36103612
model in memory but use a separate set of threads to evaluate the model.
@@ -3631,6 +3633,8 @@ def start_trained_model_deployment(
36313633
__query: t.Dict[str, t.Any] = {}
36323634
if cache_size is not None:
36333635
__query["cache_size"] = cache_size
3636+
if deployment_id is not None:
3637+
__query["deployment_id"] = deployment_id
36343638
if error_trace is not None:
36353639
__query["error_trace"] = error_trace
36363640
if filter_path is not None:

elasticsearch/_sync/client/search_application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def delete(
3737
"""
3838
Deletes a search application.
3939
40-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/put-search-application.html>`_
40+
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-search-application.html>`_
4141
4242
:param name: The name of the search application to delete
4343
"""

0 commit comments

Comments
 (0)