Skip to content

Commit 420521a

Browse files
Auto-generated API code
1 parent 058abd3 commit 420521a

File tree

2 files changed

+28
-20
lines changed

2 files changed

+28
-20
lines changed

elasticsearch/_async/client/indices.py

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -934,9 +934,10 @@ async def delete_index_template(
934934
timeout: t.Optional[t.Union["t.Literal[-1]", "t.Literal[0]", str]] = None,
935935
) -> ObjectApiResponse[t.Any]:
936936
"""
937-
The provided <index-template> may contain multiple template names separated by
938-
a comma. If multiple template names are specified then there is no wildcard support
939-
and the provided names should match completely with existing templates.
937+
Delete an index template. The provided <index-template> may contain multiple
938+
template names separated by a comma. If multiple template names are specified
939+
then there is no wildcard support and the provided names should match completely
940+
with existing templates.
940941
941942
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template.html>`_
942943
@@ -1396,7 +1397,8 @@ async def exists_template(
13961397
pretty: t.Optional[bool] = None,
13971398
) -> HeadApiResponse:
13981399
"""
1399-
Returns information about whether a particular index template exists.
1400+
Check existence of index templates. Returns information about whether a particular
1401+
index template exists.
14001402
14011403
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-template-exists-v1.html>`_
14021404
@@ -2160,7 +2162,7 @@ async def get_index_template(
21602162
pretty: t.Optional[bool] = None,
21612163
) -> ObjectApiResponse[t.Any]:
21622164
"""
2163-
Returns information about one or more index templates.
2165+
Get index templates. Returns information about one or more index templates.
21642166
21652167
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template.html>`_
21662168
@@ -2412,7 +2414,7 @@ async def get_template(
24122414
pretty: t.Optional[bool] = None,
24132415
) -> ObjectApiResponse[t.Any]:
24142416
"""
2415-
Retrieves information about one or more index templates.
2417+
Get index templates. Retrieves information about one or more index templates.
24162418
24172419
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template-v1.html>`_
24182420
@@ -2924,7 +2926,7 @@ async def put_index_template(
29242926
body: t.Optional[t.Dict[str, t.Any]] = None,
29252927
) -> ObjectApiResponse[t.Any]:
29262928
"""
2927-
Creates or updates an index template. Index templates define settings, mappings,
2929+
Create or update an index template. Index templates define settings, mappings,
29282930
and aliases that can be applied automatically to new indices.
29292931
29302932
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-template.html>`_
@@ -3326,7 +3328,7 @@ async def put_template(
33263328
body: t.Optional[t.Dict[str, t.Any]] = None,
33273329
) -> ObjectApiResponse[t.Any]:
33283330
"""
3329-
Creates or updates an index template. Index templates define settings, mappings,
3331+
Create or update an index template. Index templates define settings, mappings,
33303332
and aliases that can be applied automatically to new indices.
33313333
33323334
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates-v1.html>`_
@@ -4081,7 +4083,8 @@ async def simulate_index_template(
40814083
pretty: t.Optional[bool] = None,
40824084
) -> ObjectApiResponse[t.Any]:
40834085
"""
4084-
4086+
Simulate an index. Returns the index configuration that would be applied to the
4087+
specified index from an existing index template.
40854088
40864089
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-index.html>`_
40874090
@@ -4160,7 +4163,8 @@ async def simulate_template(
41604163
body: t.Optional[t.Dict[str, t.Any]] = None,
41614164
) -> ObjectApiResponse[t.Any]:
41624165
"""
4163-
Returns the index configuration that would be applied by a particular index template.
4166+
Simulate an index template. Returns the index configuration that would be applied
4167+
by a particular index template.
41644168
41654169
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-template.html>`_
41664170

elasticsearch/_sync/client/indices.py

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -934,9 +934,10 @@ def delete_index_template(
934934
timeout: t.Optional[t.Union["t.Literal[-1]", "t.Literal[0]", str]] = None,
935935
) -> ObjectApiResponse[t.Any]:
936936
"""
937-
The provided <index-template> may contain multiple template names separated by
938-
a comma. If multiple template names are specified then there is no wildcard support
939-
and the provided names should match completely with existing templates.
937+
Delete an index template. The provided <index-template> may contain multiple
938+
template names separated by a comma. If multiple template names are specified
939+
then there is no wildcard support and the provided names should match completely
940+
with existing templates.
940941
941942
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template.html>`_
942943
@@ -1396,7 +1397,8 @@ def exists_template(
13961397
pretty: t.Optional[bool] = None,
13971398
) -> HeadApiResponse:
13981399
"""
1399-
Returns information about whether a particular index template exists.
1400+
Check existence of index templates. Returns information about whether a particular
1401+
index template exists.
14001402
14011403
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-template-exists-v1.html>`_
14021404
@@ -2160,7 +2162,7 @@ def get_index_template(
21602162
pretty: t.Optional[bool] = None,
21612163
) -> ObjectApiResponse[t.Any]:
21622164
"""
2163-
Returns information about one or more index templates.
2165+
Get index templates. Returns information about one or more index templates.
21642166
21652167
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template.html>`_
21662168
@@ -2412,7 +2414,7 @@ def get_template(
24122414
pretty: t.Optional[bool] = None,
24132415
) -> ObjectApiResponse[t.Any]:
24142416
"""
2415-
Retrieves information about one or more index templates.
2417+
Get index templates. Retrieves information about one or more index templates.
24162418
24172419
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template-v1.html>`_
24182420
@@ -2924,7 +2926,7 @@ def put_index_template(
29242926
body: t.Optional[t.Dict[str, t.Any]] = None,
29252927
) -> ObjectApiResponse[t.Any]:
29262928
"""
2927-
Creates or updates an index template. Index templates define settings, mappings,
2929+
Create or update an index template. Index templates define settings, mappings,
29282930
and aliases that can be applied automatically to new indices.
29292931
29302932
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-template.html>`_
@@ -3326,7 +3328,7 @@ def put_template(
33263328
body: t.Optional[t.Dict[str, t.Any]] = None,
33273329
) -> ObjectApiResponse[t.Any]:
33283330
"""
3329-
Creates or updates an index template. Index templates define settings, mappings,
3331+
Create or update an index template. Index templates define settings, mappings,
33303332
and aliases that can be applied automatically to new indices.
33313333
33323334
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates-v1.html>`_
@@ -4081,7 +4083,8 @@ def simulate_index_template(
40814083
pretty: t.Optional[bool] = None,
40824084
) -> ObjectApiResponse[t.Any]:
40834085
"""
4084-
4086+
Simulate an index. Returns the index configuration that would be applied to the
4087+
specified index from an existing index template.
40854088
40864089
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-index.html>`_
40874090
@@ -4160,7 +4163,8 @@ def simulate_template(
41604163
body: t.Optional[t.Dict[str, t.Any]] = None,
41614164
) -> ObjectApiResponse[t.Any]:
41624165
"""
4163-
Returns the index configuration that would be applied by a particular index template.
4166+
Simulate an index template. Returns the index configuration that would be applied
4167+
by a particular index template.
41644168
41654169
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-template.html>`_
41664170

0 commit comments

Comments
 (0)