Skip to content
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
38 changes: 38 additions & 0 deletions elasticsearch/_async/client/cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2895,10 +2895,20 @@ async def segments(
self,
*,
index: t.Optional[t.Union[str, t.Sequence[str]]] = None,
allow_closed: t.Optional[bool] = None,
allow_no_indices: t.Optional[bool] = None,
bytes: t.Optional[
t.Union[str, t.Literal["b", "gb", "kb", "mb", "pb", "tb"]]
] = None,
error_trace: t.Optional[bool] = None,
expand_wildcards: t.Optional[
t.Union[
t.Sequence[
t.Union[str, t.Literal["all", "closed", "hidden", "none", "open"]]
],
t.Union[str, t.Literal["all", "closed", "hidden", "none", "open"]],
]
] = None,
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
format: t.Optional[str] = None,
h: t.Optional[
Expand Down Expand Up @@ -2949,6 +2959,8 @@ async def segments(
] = None,
help: t.Optional[bool] = None,
human: t.Optional[bool] = None,
ignore_throttled: t.Optional[bool] = None,
ignore_unavailable: t.Optional[bool] = None,
local: t.Optional[bool] = None,
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
pretty: t.Optional[bool] = None,
Expand All @@ -2972,6 +2984,14 @@ async def segments(
:param index: A comma-separated list of data streams, indices, and aliases used
to limit the request. Supports wildcards (`*`). To target all data streams
and indices, omit this parameter or use `*` or `_all`.
:param allow_closed: If true, allow closed indices to be returned in the response
otherwise if false, keep the legacy behaviour of throwing an exception if
index pattern matches closed indices
:param allow_no_indices: If false, the request returns an error if any wildcard
expression, index alias, or _all value targets only missing or closed indices.
This behavior applies even if the request targets other open indices. For
example, a request targeting foo*,bar* returns an error if an index starts
with foo but no index starts with bar.
:param bytes: Sets the units for columns that contain a byte-size value. Note
that byte-size value units work in terms of powers of 1024. For instance
`1kb` means 1024 bytes, not 1000 bytes. If omitted, byte-size values are
Expand All @@ -2980,12 +3000,20 @@ async def segments(
least `1.0`. If given, byte-size values are rendered as an integer with no
suffix, representing the value of the column in the chosen unit. Values that
are not an exact multiple of the chosen unit are rounded down.
:param expand_wildcards: Type of index that wildcard expressions can match. If
the request can target data streams, this argument determines whether wildcard
expressions match hidden data streams. Supports comma-separated values, such
as open,hidden.
:param format: Specifies the format to return the columnar data in, can be set
to `text`, `json`, `cbor`, `yaml`, or `smile`.
: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 ignore_throttled: If true, concrete, expanded or aliased indices are ignored
when frozen.
:param ignore_unavailable: If true, missing or closed indices are not included
in the response.
:param local: If `true`, the request computes the list of selected nodes from
the local cluster state. If `false` the list of selected nodes are computed
from the cluster state of the master node. In both cases the coordinating
Expand All @@ -3010,10 +3038,16 @@ async def segments(
__path_parts = {}
__path = "/_cat/segments"
__query: t.Dict[str, t.Any] = {}
if allow_closed is not None:
__query["allow_closed"] = allow_closed
if allow_no_indices is not None:
__query["allow_no_indices"] = allow_no_indices
if bytes is not None:
__query["bytes"] = bytes
if error_trace is not None:
__query["error_trace"] = error_trace
if expand_wildcards is not None:
__query["expand_wildcards"] = expand_wildcards
if filter_path is not None:
__query["filter_path"] = filter_path
if format is not None:
Expand All @@ -3024,6 +3058,10 @@ async def segments(
__query["help"] = help
if human is not None:
__query["human"] = human
if ignore_throttled is not None:
__query["ignore_throttled"] = ignore_throttled
if ignore_unavailable is not None:
__query["ignore_unavailable"] = ignore_unavailable
if local is not None:
__query["local"] = local
if master_timeout is not None:
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch/_async/client/indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -3427,7 +3427,7 @@ async def put_data_lifecycle(
*,
name: t.Union[str, t.Sequence[str]],
data_retention: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
downsampling: t.Optional[t.Mapping[str, t.Any]] = None,
downsampling: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
enabled: t.Optional[bool] = None,
error_trace: t.Optional[bool] = None,
expand_wildcards: t.Optional[
Expand Down
38 changes: 38 additions & 0 deletions elasticsearch/_sync/client/cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2895,10 +2895,20 @@ def segments(
self,
*,
index: t.Optional[t.Union[str, t.Sequence[str]]] = None,
allow_closed: t.Optional[bool] = None,
allow_no_indices: t.Optional[bool] = None,
bytes: t.Optional[
t.Union[str, t.Literal["b", "gb", "kb", "mb", "pb", "tb"]]
] = None,
error_trace: t.Optional[bool] = None,
expand_wildcards: t.Optional[
t.Union[
t.Sequence[
t.Union[str, t.Literal["all", "closed", "hidden", "none", "open"]]
],
t.Union[str, t.Literal["all", "closed", "hidden", "none", "open"]],
]
] = None,
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
format: t.Optional[str] = None,
h: t.Optional[
Expand Down Expand Up @@ -2949,6 +2959,8 @@ def segments(
] = None,
help: t.Optional[bool] = None,
human: t.Optional[bool] = None,
ignore_throttled: t.Optional[bool] = None,
ignore_unavailable: t.Optional[bool] = None,
local: t.Optional[bool] = None,
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
pretty: t.Optional[bool] = None,
Expand All @@ -2972,6 +2984,14 @@ def segments(
:param index: A comma-separated list of data streams, indices, and aliases used
to limit the request. Supports wildcards (`*`). To target all data streams
and indices, omit this parameter or use `*` or `_all`.
:param allow_closed: If true, allow closed indices to be returned in the response
otherwise if false, keep the legacy behaviour of throwing an exception if
index pattern matches closed indices
:param allow_no_indices: If false, the request returns an error if any wildcard
expression, index alias, or _all value targets only missing or closed indices.
This behavior applies even if the request targets other open indices. For
example, a request targeting foo*,bar* returns an error if an index starts
with foo but no index starts with bar.
:param bytes: Sets the units for columns that contain a byte-size value. Note
that byte-size value units work in terms of powers of 1024. For instance
`1kb` means 1024 bytes, not 1000 bytes. If omitted, byte-size values are
Expand All @@ -2980,12 +3000,20 @@ def segments(
least `1.0`. If given, byte-size values are rendered as an integer with no
suffix, representing the value of the column in the chosen unit. Values that
are not an exact multiple of the chosen unit are rounded down.
:param expand_wildcards: Type of index that wildcard expressions can match. If
the request can target data streams, this argument determines whether wildcard
expressions match hidden data streams. Supports comma-separated values, such
as open,hidden.
:param format: Specifies the format to return the columnar data in, can be set
to `text`, `json`, `cbor`, `yaml`, or `smile`.
: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 ignore_throttled: If true, concrete, expanded or aliased indices are ignored
when frozen.
:param ignore_unavailable: If true, missing or closed indices are not included
in the response.
:param local: If `true`, the request computes the list of selected nodes from
the local cluster state. If `false` the list of selected nodes are computed
from the cluster state of the master node. In both cases the coordinating
Expand All @@ -3010,10 +3038,16 @@ def segments(
__path_parts = {}
__path = "/_cat/segments"
__query: t.Dict[str, t.Any] = {}
if allow_closed is not None:
__query["allow_closed"] = allow_closed
if allow_no_indices is not None:
__query["allow_no_indices"] = allow_no_indices
if bytes is not None:
__query["bytes"] = bytes
if error_trace is not None:
__query["error_trace"] = error_trace
if expand_wildcards is not None:
__query["expand_wildcards"] = expand_wildcards
if filter_path is not None:
__query["filter_path"] = filter_path
if format is not None:
Expand All @@ -3024,6 +3058,10 @@ def segments(
__query["help"] = help
if human is not None:
__query["human"] = human
if ignore_throttled is not None:
__query["ignore_throttled"] = ignore_throttled
if ignore_unavailable is not None:
__query["ignore_unavailable"] = ignore_unavailable
if local is not None:
__query["local"] = local
if master_timeout is not None:
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch/_sync/client/indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -3427,7 +3427,7 @@ def put_data_lifecycle(
*,
name: t.Union[str, t.Sequence[str]],
data_retention: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
downsampling: t.Optional[t.Mapping[str, t.Any]] = None,
downsampling: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
enabled: t.Optional[bool] = None,
error_trace: t.Optional[bool] = None,
expand_wildcards: t.Optional[
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
# under the License.

__versionstr__ = "8.19.2"
__es_specification_commit__ = "f4816bb41c52c1bfda93c48191f0a0e4e2d575be"
__es_specification_commit__ = "e225b84c0a1bbb47232c3d4b2b804583d21d02a3"
14 changes: 7 additions & 7 deletions elasticsearch/dsl/aggs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1513,9 +1513,9 @@ class GeoLine(Agg[_R]):
ordered by the chosen sort field.

:arg point: (required) The name of the geo_point field.
:arg sort: (required) The name of the numeric field to use as the sort
key for ordering the points. When the `geo_line` aggregation is
nested inside a `time_series` aggregation, this field defaults to
:arg sort: The name of the numeric field to use as the sort key for
ordering the points. When the `geo_line` aggregation is nested
inside a `time_series` aggregation, this field defaults to
`@timestamp`, and any other value will result in error.
:arg include_sort: When `true`, returns an additional array of the
sort values in the feature properties.
Expand Down Expand Up @@ -1852,9 +1852,9 @@ def __init__(
class Line(Agg[_R]):
"""
:arg point: (required) The name of the geo_point field.
:arg sort: (required) The name of the numeric field to use as the sort
key for ordering the points. When the `geo_line` aggregation is
nested inside a `time_series` aggregation, this field defaults to
:arg sort: The name of the numeric field to use as the sort key for
ordering the points. When the `geo_line` aggregation is nested
inside a `time_series` aggregation, this field defaults to
`@timestamp`, and any other value will result in error.
:arg include_sort: When `true`, returns an additional array of the
sort values in the feature properties.
Expand Down Expand Up @@ -2677,7 +2677,7 @@ def __init__(
self,
*,
keyed: Union[bool, "DefaultType"] = DEFAULT,
percents: Union[Sequence[float], "DefaultType"] = DEFAULT,
percents: Union[float, Sequence[float], "DefaultType"] = DEFAULT,
hdr: Union["types.HdrMethod", Dict[str, Any], "DefaultType"] = DEFAULT,
tdigest: Union["types.TDigest", Dict[str, Any], "DefaultType"] = DEFAULT,
format: Union[str, "DefaultType"] = DEFAULT,
Expand Down
Loading