@@ -38,6 +38,7 @@ async def allocation_explain(
3838 include_disk_info : t .Optional [bool ] = None ,
3939 include_yes_decisions : t .Optional [bool ] = None ,
4040 index : t .Optional [str ] = None ,
41+ master_timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
4142 pretty : t .Optional [bool ] = None ,
4243 primary : t .Optional [bool ] = None ,
4344 shard : t .Optional [int ] = None ,
@@ -61,6 +62,7 @@ async def allocation_explain(
6162 :param include_yes_decisions: If true, returns YES decisions in explanation.
6263 :param index: Specifies the name of the index that you would like an explanation
6364 for.
65+ :param master_timeout: Period to wait for a connection to the master node.
6466 :param primary: If true, returns explanation for the primary shard for the given
6567 shard ID.
6668 :param shard: Specifies the ID of the shard that you would like an explanation
@@ -80,6 +82,8 @@ async def allocation_explain(
8082 __query ["include_disk_info" ] = include_disk_info
8183 if include_yes_decisions is not None :
8284 __query ["include_yes_decisions" ] = include_yes_decisions
85+ if master_timeout is not None :
86+ __query ["master_timeout" ] = master_timeout
8387 if pretty is not None :
8488 __query ["pretty" ] = pretty
8589 if not __body :
@@ -119,9 +123,8 @@ async def delete_component_template(
119123 timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
120124 ) -> ObjectApiResponse [t .Any ]:
121125 """
122- Delete component templates. Deletes component templates. Component templates
123- are building blocks for constructing index templates that specify index mappings,
124- settings, and aliases.
126+ Delete component templates. Component templates are building blocks for constructing
127+ index templates that specify index mappings, settings, and aliases.
125128
126129 `<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html>`_
127130
@@ -167,6 +170,7 @@ async def delete_voting_config_exclusions(
167170 error_trace : t .Optional [bool ] = None ,
168171 filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
169172 human : t .Optional [bool ] = None ,
173+ master_timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
170174 pretty : t .Optional [bool ] = None ,
171175 wait_for_removal : t .Optional [bool ] = None ,
172176 ) -> ObjectApiResponse [t .Any ]:
@@ -176,6 +180,7 @@ async def delete_voting_config_exclusions(
176180
177181 `<https://www.elastic.co/guide/en/elasticsearch/reference/master/voting-config-exclusions.html>`_
178182
183+ :param master_timeout: Period to wait for a connection to the master node.
179184 :param wait_for_removal: Specifies whether to wait for all excluded nodes to
180185 be removed from the cluster before clearing the voting configuration exclusions
181186 list. Defaults to true, meaning that all excluded nodes must be removed from
@@ -192,6 +197,8 @@ async def delete_voting_config_exclusions(
192197 __query ["filter_path" ] = filter_path
193198 if human is not None :
194199 __query ["human" ] = human
200+ if master_timeout is not None :
201+ __query ["master_timeout" ] = master_timeout
195202 if pretty is not None :
196203 __query ["pretty" ] = pretty
197204 if wait_for_removal is not None :
@@ -275,7 +282,7 @@ async def get_component_template(
275282 pretty : t .Optional [bool ] = None ,
276283 ) -> ObjectApiResponse [t .Any ]:
277284 """
278- Get component templates. Retrieves information about component templates.
285+ Get component templates. Get information about component templates.
279286
280287 `<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html>`_
281288
@@ -625,6 +632,7 @@ async def post_voting_config_exclusions(
625632 error_trace : t .Optional [bool ] = None ,
626633 filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
627634 human : t .Optional [bool ] = None ,
635+ master_timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
628636 node_ids : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
629637 node_names : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
630638 pretty : t .Optional [bool ] = None ,
@@ -661,6 +669,7 @@ async def post_voting_config_exclusions(
661669
662670 `<https://www.elastic.co/guide/en/elasticsearch/reference/master/voting-config-exclusions.html>`_
663671
672+ :param master_timeout: Period to wait for a connection to the master node.
664673 :param node_ids: A comma-separated list of the persistent ids of the nodes to
665674 exclude from the voting configuration. If specified, you may not also specify
666675 node_names.
@@ -680,6 +689,8 @@ async def post_voting_config_exclusions(
680689 __query ["filter_path" ] = filter_path
681690 if human is not None :
682691 __query ["human" ] = human
692+ if master_timeout is not None :
693+ __query ["master_timeout" ] = master_timeout
683694 if node_ids is not None :
684695 __query ["node_ids" ] = node_ids
685696 if node_names is not None :
@@ -719,20 +730,21 @@ async def put_component_template(
719730 body : t .Optional [t .Dict [str , t .Any ]] = None ,
720731 ) -> ObjectApiResponse [t .Any ]:
721732 """
722- Create or update a component template. Creates or updates a component template.
723- Component templates are building blocks for constructing index templates that
724- specify index mappings, settings, and aliases. An index template can be composed
725- of multiple component templates. To use a component template, specify it in an
726- index template’s `composed_of` list. Component templates are only applied to
727- new data streams and indices as part of a matching index template. Settings and
728- mappings specified directly in the index template or the create index request
729- override any settings or mappings specified in a component template. Component
730- templates are only used during index creation. For data streams, this includes
731- data stream creation and the creation of a stream’s backing indices. Changes
732- to component templates do not affect existing indices, including a stream’s backing
733- indices. You can use C-style `/* *\\ /` block comments in component templates.
733+ Create or update a component template. Component templates are building blocks
734+ for constructing index templates that specify index mappings, settings, and aliases.
735+ An index template can be composed of multiple component templates. To use a component
736+ template, specify it in an index template’s `composed_of` list. Component templates
737+ are only applied to new data streams and indices as part of a matching index
738+ template. Settings and mappings specified directly in the index template or the
739+ create index request override any settings or mappings specified in a component
740+ template. Component templates are only used during index creation. For data streams,
741+ this includes data stream creation and the creation of a stream’s backing indices.
742+ Changes to component templates do not affect existing indices, including a stream’s
743+ backing indices. You can use C-style `/* *\\ /` block comments in component templates.
734744 You can include comments anywhere in the request body except before the opening
735- curly bracket.
745+ curly bracket. **Applying component templates** You cannot directly apply a component
746+ template to a data stream or index. To be applied, a component template must
747+ be included in an index template's `composed_of` list.
736748
737749 `<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html>`_
738750
@@ -755,8 +767,8 @@ async def put_component_template(
755767 :param master_timeout: Period to wait for a connection to the master node. If
756768 no response is received before the timeout expires, the request fails and
757769 returns an error.
758- :param meta: Optional user metadata about the component template. May have any
759- contents. This map is not automatically generated by Elasticsearch. This
770+ :param meta: Optional user metadata about the component template. It may have
771+ any contents. This map is not automatically generated by Elasticsearch. This
760772 information is stored in the cluster state, so keeping it short is preferable.
761773 To unset `_meta`, replace the template without specifying this information.
762774 :param version: Version number used to manage component templates externally.
0 commit comments