@@ -304,7 +304,7 @@ async def clone(
304304 settings : t .Optional [t .Mapping [str , t .Any ]] = None ,
305305 timeout : t .Optional [t .Union [int , str ]] = None ,
306306 wait_for_active_shards : t .Optional [
307- t .Union [int , t .Union ["t.Literal['all']" , str ]]
307+ t .Union [int , t .Union ["t.Literal['all', 'index-setting' ]" , str ]]
308308 ] = None ,
309309 ) -> ObjectApiResponse [t .Any ]:
310310 """
@@ -389,7 +389,7 @@ async def close(
389389 pretty : t .Optional [bool ] = None ,
390390 timeout : t .Optional [t .Union [int , str ]] = None ,
391391 wait_for_active_shards : t .Optional [
392- t .Union [int , t .Union ["t.Literal['all']" , str ]]
392+ t .Union [int , t .Union ["t.Literal['all', 'index-setting' ]" , str ]]
393393 ] = None ,
394394 ) -> ObjectApiResponse [t .Any ]:
395395 """
@@ -458,7 +458,7 @@ async def create(
458458 settings : t .Optional [t .Mapping [str , t .Any ]] = None ,
459459 timeout : t .Optional [t .Union [int , str ]] = None ,
460460 wait_for_active_shards : t .Optional [
461- t .Union [int , t .Union ["t.Literal['all']" , str ]]
461+ t .Union [int , t .Union ["t.Literal['all', 'index-setting' ]" , str ]]
462462 ] = None ,
463463 ) -> ObjectApiResponse [t .Any ]:
464464 """
@@ -794,20 +794,28 @@ async def delete_data_stream(
794794 async def delete_index_template (
795795 self ,
796796 * ,
797- name : str ,
797+ name : t . Union [ str , t . Union [ t . List [ str ], t . Tuple [ str , ...]]] ,
798798 error_trace : t .Optional [bool ] = None ,
799799 filter_path : t .Optional [
800800 t .Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]]
801801 ] = None ,
802802 human : t .Optional [bool ] = None ,
803+ master_timeout : t .Optional [t .Union [int , str ]] = None ,
803804 pretty : t .Optional [bool ] = None ,
805+ timeout : t .Optional [t .Union [int , str ]] = None ,
804806 ) -> ObjectApiResponse [t .Any ]:
805807 """
806808 Deletes an index template.
807809
808810 `<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html>`_
809811
810- :param name: The name of the template
812+ :param name: Comma-separated list of index template names used to limit the request.
813+ Wildcard (*) expressions are supported.
814+ :param master_timeout: Period to wait for a connection to the master node. If
815+ no response is received before the timeout expires, the request fails and
816+ returns an error.
817+ :param timeout: Period to wait for a response. If no response is received before
818+ the timeout expires, the request fails and returns an error.
811819 """
812820 if name in SKIP_IN_PATH :
813821 raise ValueError ("Empty value passed for parameter 'name'" )
@@ -819,8 +827,12 @@ async def delete_index_template(
819827 __query ["filter_path" ] = filter_path
820828 if human is not None :
821829 __query ["human" ] = human
830+ if master_timeout is not None :
831+ __query ["master_timeout" ] = master_timeout
822832 if pretty is not None :
823833 __query ["pretty" ] = pretty
834+ if timeout is not None :
835+ __query ["timeout" ] = timeout
824836 __headers = {"accept" : "application/json" }
825837 return await self .perform_request ( # type: ignore[return-value]
826838 "DELETE" , __path , params = __query , headers = __headers
@@ -1236,7 +1248,7 @@ async def exists_template(
12361248 async def field_usage_stats (
12371249 self ,
12381250 * ,
1239- index : t .Optional [ t . Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]]] = None ,
1251+ index : t .Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]],
12401252 allow_no_indices : t .Optional [bool ] = None ,
12411253 error_trace : t .Optional [bool ] = None ,
12421254 expand_wildcards : t .Optional [
@@ -1269,7 +1281,7 @@ async def field_usage_stats(
12691281 pretty : t .Optional [bool ] = None ,
12701282 timeout : t .Optional [t .Union [int , str ]] = None ,
12711283 wait_for_active_shards : t .Optional [
1272- t .Union [int , t .Union ["t.Literal['all']" , str ]]
1284+ t .Union [int , t .Union ["t.Literal['all', 'index-setting' ]" , str ]]
12731285 ] = None ,
12741286 ) -> ObjectApiResponse [t .Any ]:
12751287 """
@@ -1301,6 +1313,8 @@ async def field_usage_stats(
13011313 before proceeding with the operation. Set to all or any positive integer
13021314 up to the total number of shards in the index (`number_of_replicas+1`).
13031315 """
1316+ if index in SKIP_IN_PATH :
1317+ raise ValueError ("Empty value passed for parameter 'index'" )
13041318 __path = f"/{ _quote (index )} /_field_usage_stats"
13051319 __query : t .Dict [str , t .Any ] = {}
13061320 if allow_no_indices is not None :
@@ -2172,7 +2186,7 @@ async def open(
21722186 pretty : t .Optional [bool ] = None ,
21732187 timeout : t .Optional [t .Union [int , str ]] = None ,
21742188 wait_for_active_shards : t .Optional [
2175- t .Union [int , t .Union ["t.Literal['all']" , str ]]
2189+ t .Union [int , t .Union ["t.Literal['all', 'index-setting' ]" , str ]]
21762190 ] = None ,
21772191 ) -> ObjectApiResponse [t .Any ]:
21782192 """
@@ -3025,7 +3039,7 @@ async def rollover(
30253039 settings : t .Optional [t .Mapping [str , t .Any ]] = None ,
30263040 timeout : t .Optional [t .Union [int , str ]] = None ,
30273041 wait_for_active_shards : t .Optional [
3028- t .Union [int , t .Union ["t.Literal['all']" , str ]]
3042+ t .Union [int , t .Union ["t.Literal['all', 'index-setting' ]" , str ]]
30293043 ] = None ,
30303044 ) -> ObjectApiResponse [t .Any ]:
30313045 """
@@ -3269,7 +3283,7 @@ async def shrink(
32693283 settings : t .Optional [t .Mapping [str , t .Any ]] = None ,
32703284 timeout : t .Optional [t .Union [int , str ]] = None ,
32713285 wait_for_active_shards : t .Optional [
3272- t .Union [int , t .Union ["t.Literal['all']" , str ]]
3286+ t .Union [int , t .Union ["t.Literal['all', 'index-setting' ]" , str ]]
32733287 ] = None ,
32743288 ) -> ObjectApiResponse [t .Any ]:
32753289 """
@@ -3491,7 +3505,7 @@ async def split(
34913505 settings : t .Optional [t .Mapping [str , t .Any ]] = None ,
34923506 timeout : t .Optional [t .Union [int , str ]] = None ,
34933507 wait_for_active_shards : t .Optional [
3494- t .Union [int , t .Union ["t.Literal['all']" , str ]]
3508+ t .Union [int , t .Union ["t.Literal['all', 'index-setting' ]" , str ]]
34953509 ] = None ,
34963510 ) -> ObjectApiResponse [t .Any ]:
34973511 """
0 commit comments