Skip to content

Auto-generated code for 8.18 #2956

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 8.18
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
208 changes: 201 additions & 7 deletions elasticsearch/_async/client/cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -1774,7 +1774,200 @@ async def nodes(
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
format: t.Optional[str] = None,
full_id: t.Optional[t.Union[bool, str]] = None,
h: t.Optional[t.Union[str, t.Sequence[str]]] = None,
h: t.Optional[
t.Union[
t.Sequence[
t.Union[
str,
t.Literal[
"build",
"completion.size",
"cpu",
"disk.avail",
"disk.total",
"disk.used",
"disk.used_percent",
"fielddata.evictions",
"fielddata.memory_size",
"file_desc.current",
"file_desc.max",
"file_desc.percent",
"flush.total",
"flush.total_time",
"get.current",
"get.exists_time",
"get.exists_total",
"get.missing_time",
"get.missing_total",
"get.time",
"get.total",
"heap.current",
"heap.max",
"heap.percent",
"http_address",
"id",
"indexing.delete_current",
"indexing.delete_time",
"indexing.delete_total",
"indexing.index_current",
"indexing.index_failed",
"indexing.index_failed_due_to_version_conflict",
"indexing.index_time",
"indexing.index_total",
"ip",
"jdk",
"load_15m",
"load_1m",
"load_5m",
"mappings.total_count",
"mappings.total_estimated_overhead_in_bytes",
"master",
"merges.current",
"merges.current_docs",
"merges.current_size",
"merges.total",
"merges.total_docs",
"merges.total_size",
"merges.total_time",
"name",
"node.role",
"pid",
"port",
"query_cache.evictions",
"query_cache.hit_count",
"query_cache.memory_size",
"query_cache.miss_count",
"ram.current",
"ram.max",
"ram.percent",
"refresh.time",
"refresh.total",
"request_cache.evictions",
"request_cache.hit_count",
"request_cache.memory_size",
"request_cache.miss_count",
"script.cache_evictions",
"script.compilations",
"search.fetch_current",
"search.fetch_time",
"search.fetch_total",
"search.open_contexts",
"search.query_current",
"search.query_time",
"search.query_total",
"search.scroll_current",
"search.scroll_time",
"search.scroll_total",
"segments.count",
"segments.fixed_bitset_memory",
"segments.index_writer_memory",
"segments.memory",
"segments.version_map_memory",
"shard_stats.total_count",
"suggest.current",
"suggest.time",
"suggest.total",
"uptime",
"version",
],
]
],
t.Union[
str,
t.Literal[
"build",
"completion.size",
"cpu",
"disk.avail",
"disk.total",
"disk.used",
"disk.used_percent",
"fielddata.evictions",
"fielddata.memory_size",
"file_desc.current",
"file_desc.max",
"file_desc.percent",
"flush.total",
"flush.total_time",
"get.current",
"get.exists_time",
"get.exists_total",
"get.missing_time",
"get.missing_total",
"get.time",
"get.total",
"heap.current",
"heap.max",
"heap.percent",
"http_address",
"id",
"indexing.delete_current",
"indexing.delete_time",
"indexing.delete_total",
"indexing.index_current",
"indexing.index_failed",
"indexing.index_failed_due_to_version_conflict",
"indexing.index_time",
"indexing.index_total",
"ip",
"jdk",
"load_15m",
"load_1m",
"load_5m",
"mappings.total_count",
"mappings.total_estimated_overhead_in_bytes",
"master",
"merges.current",
"merges.current_docs",
"merges.current_size",
"merges.total",
"merges.total_docs",
"merges.total_size",
"merges.total_time",
"name",
"node.role",
"pid",
"port",
"query_cache.evictions",
"query_cache.hit_count",
"query_cache.memory_size",
"query_cache.miss_count",
"ram.current",
"ram.max",
"ram.percent",
"refresh.time",
"refresh.total",
"request_cache.evictions",
"request_cache.hit_count",
"request_cache.memory_size",
"request_cache.miss_count",
"script.cache_evictions",
"script.compilations",
"search.fetch_current",
"search.fetch_time",
"search.fetch_total",
"search.open_contexts",
"search.query_current",
"search.query_time",
"search.query_total",
"search.scroll_current",
"search.scroll_time",
"search.scroll_total",
"segments.count",
"segments.fixed_bitset_memory",
"segments.index_writer_memory",
"segments.memory",
"segments.version_map_memory",
"shard_stats.total_count",
"suggest.current",
"suggest.time",
"suggest.total",
"uptime",
"version",
],
],
]
] = None,
help: t.Optional[bool] = None,
human: t.Optional[bool] = None,
include_unloaded_segments: t.Optional[bool] = None,
Expand All @@ -1801,16 +1994,17 @@ async def nodes(
to `text`, `json`, `cbor`, `yaml`, or `smile`.
:param full_id: If `true`, return the full node ID. If `false`, return the shortened
node ID.
:param h: List of columns to appear in the response. Supports simple wildcards.
:param h: A comma-separated list of columns names to display. It supports simple
wildcards.
:param help: When set to `true` will output available columns. This option can't
be combined with any other query string option.
:param include_unloaded_segments: If true, the response includes information
from segments that are not loaded into memory.
:param master_timeout: Period to wait for a connection to the master node.
:param s: List of columns that determine how the table should be sorted. Sorting
defaults to ascending and can be changed by setting `:asc` or `:desc` as
a suffix to the column name.
:param time: Unit used to display time values.
:param master_timeout: The period to wait for a connection to the master node.
:param s: A comma-separated list of column names or aliases that determines the
sort order. Sorting defaults to ascending and can be changed by setting `:asc`
or `:desc` as a suffix to the column name.
:param time: The unit used to display time values.
:param v: When set to `true` will enable verbose output.
"""
__path_parts: t.Dict[str, str] = {}
Expand Down
35 changes: 31 additions & 4 deletions elasticsearch/_async/client/indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,8 @@ async def delete_template(
"""
.. raw:: html

<p>Delete a legacy index template.</p>
<p>Delete a legacy index template.
IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.</p>


`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/indices-delete-template-v1.html>`_
Expand Down Expand Up @@ -2878,7 +2879,7 @@ async def get_template(
"""
.. raw:: html

<p>Get index templates.
<p>Get legacy index templates.
Get information about one or more index templates.</p>
<p>IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.</p>

Expand Down Expand Up @@ -3850,8 +3851,34 @@ async def put_settings(
Changes dynamic index settings in real time.
For data streams, index setting changes are applied to all backing indices by default.</p>
<p>To revert a setting to the default value, use a null value.
The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation.
The list of per-index settings that can be updated dynamically on live indices can be found in index settings documentation.
To preserve existing settings from being updated, set the <code>preserve_existing</code> parameter to <code>true</code>.</p>
<p>There are multiple valid ways to represent index settings in the request body. You can specify only the setting, for example:</p>
<pre><code>{
&quot;number_of_replicas&quot;: 1
}
</code></pre>
<p>Or you can use an <code>index</code> setting object:</p>
<pre><code>{
&quot;index&quot;: {
&quot;number_of_replicas&quot;: 1
}
}
</code></pre>
<p>Or you can use dot annotation:</p>
<pre><code>{
&quot;index.number_of_replicas&quot;: 1
}
</code></pre>
<p>Or you can embed any of the aforementioned options in a <code>settings</code> object. For example:</p>
<pre><code>{
&quot;settings&quot;: {
&quot;index&quot;: {
&quot;number_of_replicas&quot;: 1
}
}
}
</code></pre>
<p>NOTE: You can only define new analyzers on closed indices.
To add an analyzer, you must close the index, define the analyzer, and reopen the index.
You cannot close the write index of a data stream.
Expand Down Expand Up @@ -3971,7 +3998,7 @@ async def put_template(
"""
.. raw:: html

<p>Create or update an index template.
<p>Create or update a legacy index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
Elasticsearch applies templates to new indices based on an index pattern that matches the index name.</p>
<p>IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.</p>
Expand Down
Loading