@@ -33,15 +33,14 @@ async def delete_component_template(
33
33
error_trace : t .Optional [bool ] = None ,
34
34
filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
35
35
human : t .Optional [bool ] = None ,
36
- master_timeout : t .Optional [
37
- t .Union ["t.Literal[-1]" , "t.Literal[0]" , str ]
38
- ] = None ,
36
+ master_timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
39
37
pretty : t .Optional [bool ] = None ,
40
- timeout : t .Optional [t .Union [" t.Literal[-1]" , " t.Literal[0]" , str ]] = None ,
38
+ timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
41
39
) -> ObjectApiResponse [t .Any ]:
42
40
"""
43
- Deletes component templates. Component templates are building blocks for constructing
44
- index templates that specify index mappings, settings, and aliases.
41
+ Delete component templates. Deletes component templates. Component templates
42
+ are building blocks for constructing index templates that specify index mappings,
43
+ settings, and aliases.
45
44
46
45
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html>`_
47
46
@@ -89,13 +88,12 @@ async def exists_component_template(
89
88
filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
90
89
human : t .Optional [bool ] = None ,
91
90
local : t .Optional [bool ] = None ,
92
- master_timeout : t .Optional [
93
- t .Union ["t.Literal[-1]" , "t.Literal[0]" , str ]
94
- ] = None ,
91
+ master_timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
95
92
pretty : t .Optional [bool ] = None ,
96
93
) -> HeadApiResponse :
97
94
"""
98
- Returns information about whether a particular component template exist
95
+ Check component templates. Returns information about whether a particular component
96
+ template exists.
99
97
100
98
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html>`_
101
99
@@ -146,13 +144,11 @@ async def get_component_template(
146
144
human : t .Optional [bool ] = None ,
147
145
include_defaults : t .Optional [bool ] = None ,
148
146
local : t .Optional [bool ] = None ,
149
- master_timeout : t .Optional [
150
- t .Union ["t.Literal[-1]" , "t.Literal[0]" , str ]
151
- ] = None ,
147
+ master_timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
152
148
pretty : t .Optional [bool ] = None ,
153
149
) -> ObjectApiResponse [t .Any ]:
154
150
"""
155
- Retrieves information about component templates.
151
+ Get component templates. Retrieves information about component templates.
156
152
157
153
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html>`_
158
154
@@ -208,20 +204,18 @@ async def info(
208
204
target : t .Union [
209
205
t .Sequence [
210
206
t .Union [
211
- " t.Literal[' _all', ' http', ' ingest', ' script', ' thread_pool']" , str
207
+ str , t .Literal [" _all" , " http" , " ingest" , " script" , " thread_pool" ]
212
208
]
213
209
],
214
- t .Union [
215
- "t.Literal['_all', 'http', 'ingest', 'script', 'thread_pool']" , str
216
- ],
210
+ t .Union [str , t .Literal ["_all" , "http" , "ingest" , "script" , "thread_pool" ]],
217
211
],
218
212
error_trace : t .Optional [bool ] = None ,
219
213
filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
220
214
human : t .Optional [bool ] = None ,
221
215
pretty : t .Optional [bool ] = None ,
222
216
) -> ObjectApiResponse [t .Any ]:
223
217
"""
224
- Returns different information about the cluster.
218
+ Get cluster info. Returns basic information about the cluster.
225
219
226
220
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-info.html>`_
227
221
@@ -265,26 +259,25 @@ async def put_component_template(
265
259
error_trace : t .Optional [bool ] = None ,
266
260
filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
267
261
human : t .Optional [bool ] = None ,
268
- master_timeout : t .Optional [
269
- t .Union ["t.Literal[-1]" , "t.Literal[0]" , str ]
270
- ] = None ,
262
+ master_timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
271
263
meta : t .Optional [t .Mapping [str , t .Any ]] = None ,
272
264
pretty : t .Optional [bool ] = None ,
273
265
version : t .Optional [int ] = None ,
274
266
body : t .Optional [t .Dict [str , t .Any ]] = None ,
275
267
) -> ObjectApiResponse [t .Any ]:
276
268
"""
277
- Creates or updates a component template. Component templates are building blocks
278
- for constructing index templates that specify index mappings, settings, and aliases.
279
- An index template can be composed of multiple component templates. To use a component
280
- template, specify it in an index template’s `composed_of` list. Component templates
281
- are only applied to new data streams and indices as part of a matching index
282
- template. Settings and mappings specified directly in the index template or the
283
- create index request override any settings or mappings specified in a component
284
- template. Component templates are only used during index creation. For data streams,
285
- this includes data stream creation and the creation of a stream’s backing indices.
286
- Changes to component templates do not affect existing indices, including a stream’s
287
- backing indices. You can use C-style `/* *\\ /` block comments in component templates.
269
+ Create or update a component template. Creates or updates a component template.
270
+ Component templates are building blocks for constructing index templates that
271
+ specify index mappings, settings, and aliases. An index template can be composed
272
+ of multiple component templates. To use a component template, specify it in an
273
+ index template’s `composed_of` list. Component templates are only applied to
274
+ new data streams and indices as part of a matching index template. Settings and
275
+ mappings specified directly in the index template or the create index request
276
+ override any settings or mappings specified in a component template. Component
277
+ templates are only used during index creation. For data streams, this includes
278
+ data stream creation and the creation of a stream’s backing indices. Changes
279
+ to component templates do not affect existing indices, including a stream’s backing
280
+ indices. You can use C-style `/* *\\ /` block comments in component templates.
288
281
You can include comments anywhere in the request body except before the opening
289
282
curly bracket.
290
283
0 commit comments