Skip to content

Auto-generated code for 9.0 #2955

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: 9.0
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
10 changes: 5 additions & 5 deletions elasticsearch/_async/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4652,11 +4652,11 @@ async def search(
of the specified nodes are available, select shards from any available node
using the default method. * `_prefer_nodes:<node-id>,<node-id>` to if possible,
run the search on the specified nodes IDs. If not, select shards using the
default method. `_shards:<shard>,<shard>` to run the search only on the specified
shards. You can combine this value with other `preference` values. However,
the `_shards` value must come first. For example: `_shards:2,3|_local`. `<custom-string>`
(any string that does not start with `_`) to route searches with the same
`<custom-string>` to the same shards in the same order.
default method. * `_shards:<shard>,<shard>` to run the search only on the
specified shards. You can combine this value with other `preference` values.
However, the `_shards` value must come first. For example: `_shards:2,3|_local`.
* `<custom-string>` (any string that does not start with `_`) to route searches
with the same `<custom-string>` to the same shards in the same order.
:param profile: Set to `true` to return detailed timing information about the
execution of individual components in a search request. NOTE: This is a debugging
tool and adds significant overhead to search execution.
Expand Down
208 changes: 201 additions & 7 deletions elasticsearch/_async/client/cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -1767,7 +1767,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 @@ -1794,16 +1987,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
10 changes: 9 additions & 1 deletion elasticsearch/_async/client/indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,15 @@ async def create(

`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-create>`_

:param index: Name of the index you wish to create.
:param index: Name of the index you wish to create. Index names must meet the
following criteria: * Lowercase only * Cannot include `\\`, `/`, `*`, `?`,
`"`, `<`, `>`, `|`, ` ` (space character), `,`, or `#` * Indices prior to
7.0 could contain a colon (`:`), but that has been deprecated and will not
be supported in later versions * Cannot start with `-`, `_`, or `+` * Cannot
be `.` or `..` * Cannot be longer than 255 bytes (note thtat it is bytes,
so multi-byte characters will reach the limit faster) * Names starting with
`.` are deprecated, except for hidden indices and internal indices managed
by plugins
:param aliases: Aliases for the index.
:param mappings: Mapping for fields in the index. If specified, this mapping
can include: - Field names - Field data types - Mapping parameters
Expand Down
Loading