[7.x] Generate new API type stubs
This commit is contained in:
committed by
Seth Michael Larson
parent
c8d0a71a63
commit
631a6d2fa8
@@ -461,7 +461,7 @@ class AsyncElasticsearch(object):
|
|||||||
async def clear_scroll(self, body=None, scroll_id=None, params=None, headers=None):
|
async def clear_scroll(self, body=None, scroll_id=None, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Explicitly clears the search context for a scroll.
|
Explicitly clears the search context for a scroll.
|
||||||
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-body.html#_clear_scroll_api>`_
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/clear-scroll-api.html>`_
|
||||||
|
|
||||||
:arg body: A comma-separated list of scroll IDs to clear if none
|
:arg body: A comma-separated list of scroll IDs to clear if none
|
||||||
was specified via the scroll_id parameter
|
was specified via the scroll_id parameter
|
||||||
@@ -2039,3 +2039,40 @@ class AsyncElasticsearch(object):
|
|||||||
return await self.transport.perform_request(
|
return await self.transport.perform_request(
|
||||||
"GET", "/_script_language", params=params, headers=headers
|
"GET", "/_script_language", params=params, headers=headers
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@query_params()
|
||||||
|
async def close_point_in_time(self, body=None, params=None, headers=None):
|
||||||
|
"""
|
||||||
|
Close a point in time
|
||||||
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/point-in-time-api.html>`_
|
||||||
|
|
||||||
|
:arg body: a point-in-time id to close
|
||||||
|
"""
|
||||||
|
return await self.transport.perform_request(
|
||||||
|
"DELETE", "/_pit", params=params, headers=headers, body=body
|
||||||
|
)
|
||||||
|
|
||||||
|
@query_params(
|
||||||
|
"expand_wildcards", "ignore_unavailable", "keep_alive", "preference", "routing"
|
||||||
|
)
|
||||||
|
async def open_point_in_time(self, index=None, params=None, headers=None):
|
||||||
|
"""
|
||||||
|
Open a point in time that can be used in subsequent searches
|
||||||
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/point-in-time-api.html>`_
|
||||||
|
|
||||||
|
:arg index: A comma-separated list of index names to open point
|
||||||
|
in time; use `_all` or empty string to perform the operation on all
|
||||||
|
indices
|
||||||
|
:arg expand_wildcards: Whether to expand wildcard expression to
|
||||||
|
concrete indices that are open, closed or both. Valid choices: open,
|
||||||
|
closed, hidden, none, all Default: open
|
||||||
|
:arg ignore_unavailable: Whether specified concrete indices
|
||||||
|
should be ignored when unavailable (missing or closed)
|
||||||
|
:arg keep_alive: Specific the time to live for the point in time
|
||||||
|
:arg preference: Specify the node or shard the operation should
|
||||||
|
be performed on (default: random)
|
||||||
|
:arg routing: Specific routing value
|
||||||
|
"""
|
||||||
|
return await self.transport.perform_request(
|
||||||
|
"POST", _make_path(index, "_pit"), params=params, headers=headers
|
||||||
|
)
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,108 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class AsyncSearchClient(NamespacedClient):
|
||||||
|
async def delete(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
keep_alive: Optional[Any] = ...,
|
||||||
|
typed_keys: Optional[Any] = ...,
|
||||||
|
wait_for_completion_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def submit(
|
||||||
|
self,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
index: Optional[Any] = ...,
|
||||||
|
_source: Optional[Any] = ...,
|
||||||
|
_source_excludes: Optional[Any] = ...,
|
||||||
|
_source_includes: Optional[Any] = ...,
|
||||||
|
allow_no_indices: Optional[Any] = ...,
|
||||||
|
allow_partial_search_results: Optional[Any] = ...,
|
||||||
|
analyze_wildcard: Optional[Any] = ...,
|
||||||
|
analyzer: Optional[Any] = ...,
|
||||||
|
batched_reduce_size: Optional[Any] = ...,
|
||||||
|
default_operator: Optional[Any] = ...,
|
||||||
|
df: Optional[Any] = ...,
|
||||||
|
docvalue_fields: Optional[Any] = ...,
|
||||||
|
expand_wildcards: Optional[Any] = ...,
|
||||||
|
explain: Optional[Any] = ...,
|
||||||
|
from_: Optional[Any] = ...,
|
||||||
|
ignore_throttled: Optional[Any] = ...,
|
||||||
|
ignore_unavailable: Optional[Any] = ...,
|
||||||
|
keep_alive: Optional[Any] = ...,
|
||||||
|
keep_on_completion: Optional[Any] = ...,
|
||||||
|
lenient: Optional[Any] = ...,
|
||||||
|
max_concurrent_shard_requests: Optional[Any] = ...,
|
||||||
|
preference: Optional[Any] = ...,
|
||||||
|
q: Optional[Any] = ...,
|
||||||
|
request_cache: Optional[Any] = ...,
|
||||||
|
routing: Optional[Any] = ...,
|
||||||
|
search_type: Optional[Any] = ...,
|
||||||
|
seq_no_primary_term: Optional[Any] = ...,
|
||||||
|
size: Optional[Any] = ...,
|
||||||
|
sort: Optional[Any] = ...,
|
||||||
|
stats: Optional[Any] = ...,
|
||||||
|
stored_fields: Optional[Any] = ...,
|
||||||
|
suggest_field: Optional[Any] = ...,
|
||||||
|
suggest_mode: Optional[Any] = ...,
|
||||||
|
suggest_size: Optional[Any] = ...,
|
||||||
|
suggest_text: Optional[Any] = ...,
|
||||||
|
terminate_after: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
track_scores: Optional[Any] = ...,
|
||||||
|
track_total_hits: Optional[Any] = ...,
|
||||||
|
typed_keys: Optional[Any] = ...,
|
||||||
|
version: Optional[Any] = ...,
|
||||||
|
wait_for_completion_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class AutoscalingClient(NamespacedClient):
|
||||||
|
async def get_autoscaling_decision(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def delete_autoscaling_policy(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_autoscaling_policy(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def put_autoscaling_policy(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -596,7 +596,9 @@ class CatClient(NamespacedClient):
|
|||||||
headers=headers,
|
headers=headers,
|
||||||
)
|
)
|
||||||
|
|
||||||
@query_params("allow_no_datafeeds", "format", "h", "help", "s", "time", "v")
|
@query_params(
|
||||||
|
"allow_no_datafeeds", "allow_no_match", "format", "h", "help", "s", "time", "v"
|
||||||
|
)
|
||||||
async def ml_datafeeds(self, datafeed_id=None, params=None, headers=None):
|
async def ml_datafeeds(self, datafeed_id=None, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Gets configuration and usage information about datafeeds.
|
Gets configuration and usage information about datafeeds.
|
||||||
@@ -606,6 +608,9 @@ class CatClient(NamespacedClient):
|
|||||||
:arg allow_no_datafeeds: Whether to ignore if a wildcard
|
:arg allow_no_datafeeds: Whether to ignore if a wildcard
|
||||||
expression matches no datafeeds. (This includes `_all` string or when no
|
expression matches no datafeeds. (This includes `_all` string or when no
|
||||||
datafeeds have been specified)
|
datafeeds have been specified)
|
||||||
|
:arg allow_no_match: Whether to ignore if a wildcard expression
|
||||||
|
matches no datafeeds. (This includes `_all` string or when no datafeeds
|
||||||
|
have been specified)
|
||||||
:arg format: a short version of the Accept header, e.g. json,
|
:arg format: a short version of the Accept header, e.g. json,
|
||||||
yaml
|
yaml
|
||||||
:arg h: Comma-separated list of column names to display
|
:arg h: Comma-separated list of column names to display
|
||||||
@@ -623,7 +628,17 @@ class CatClient(NamespacedClient):
|
|||||||
headers=headers,
|
headers=headers,
|
||||||
)
|
)
|
||||||
|
|
||||||
@query_params("allow_no_jobs", "bytes", "format", "h", "help", "s", "time", "v")
|
@query_params(
|
||||||
|
"allow_no_jobs",
|
||||||
|
"allow_no_match",
|
||||||
|
"bytes",
|
||||||
|
"format",
|
||||||
|
"h",
|
||||||
|
"help",
|
||||||
|
"s",
|
||||||
|
"time",
|
||||||
|
"v",
|
||||||
|
)
|
||||||
async def ml_jobs(self, job_id=None, params=None, headers=None):
|
async def ml_jobs(self, job_id=None, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Gets configuration and usage information about anomaly detection jobs.
|
Gets configuration and usage information about anomaly detection jobs.
|
||||||
@@ -633,6 +648,9 @@ class CatClient(NamespacedClient):
|
|||||||
:arg allow_no_jobs: Whether to ignore if a wildcard expression
|
:arg allow_no_jobs: Whether to ignore if a wildcard expression
|
||||||
matches no jobs. (This includes `_all` string or when no jobs have been
|
matches no jobs. (This includes `_all` string or when no jobs have been
|
||||||
specified)
|
specified)
|
||||||
|
:arg allow_no_match: Whether to ignore if a wildcard expression
|
||||||
|
matches no jobs. (This includes `_all` string or when no jobs have been
|
||||||
|
specified)
|
||||||
:arg bytes: The unit in which to display byte values Valid
|
:arg bytes: The unit in which to display byte values Valid
|
||||||
choices: b, k, kb, m, mb, g, gb, t, tb, p, pb
|
choices: b, k, kb, m, mb, g, gb, t, tb, p, pb
|
||||||
:arg format: a short version of the Accept header, e.g. json,
|
:arg format: a short version of the Accept header, e.g. json,
|
||||||
|
|||||||
@@ -0,0 +1,533 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class CatClient(NamespacedClient):
|
||||||
|
async def aliases(
|
||||||
|
self,
|
||||||
|
name: Optional[Any] = ...,
|
||||||
|
expand_wildcards: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def allocation(
|
||||||
|
self,
|
||||||
|
node_id: Optional[Any] = ...,
|
||||||
|
bytes: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def count(
|
||||||
|
self,
|
||||||
|
index: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def health(
|
||||||
|
self,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
ts: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def help(
|
||||||
|
self,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def indices(
|
||||||
|
self,
|
||||||
|
index: Optional[Any] = ...,
|
||||||
|
bytes: Optional[Any] = ...,
|
||||||
|
expand_wildcards: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
health: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
include_unloaded_segments: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
pri: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def master(
|
||||||
|
self,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def nodes(
|
||||||
|
self,
|
||||||
|
bytes: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
full_id: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def recovery(
|
||||||
|
self,
|
||||||
|
index: Optional[Any] = ...,
|
||||||
|
active_only: Optional[Any] = ...,
|
||||||
|
bytes: Optional[Any] = ...,
|
||||||
|
detailed: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def shards(
|
||||||
|
self,
|
||||||
|
index: Optional[Any] = ...,
|
||||||
|
bytes: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def segments(
|
||||||
|
self,
|
||||||
|
index: Optional[Any] = ...,
|
||||||
|
bytes: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def pending_tasks(
|
||||||
|
self,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def thread_pool(
|
||||||
|
self,
|
||||||
|
thread_pool_patterns: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
size: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def fielddata(
|
||||||
|
self,
|
||||||
|
fields: Optional[Any] = ...,
|
||||||
|
bytes: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def plugins(
|
||||||
|
self,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def nodeattrs(
|
||||||
|
self,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def repositories(
|
||||||
|
self,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def snapshots(
|
||||||
|
self,
|
||||||
|
repository: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
ignore_unavailable: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def tasks(
|
||||||
|
self,
|
||||||
|
actions: Optional[Any] = ...,
|
||||||
|
detailed: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
node_id: Optional[Any] = ...,
|
||||||
|
parent_task: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def templates(
|
||||||
|
self,
|
||||||
|
name: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def ml_data_frame_analytics(
|
||||||
|
self,
|
||||||
|
id: Optional[Any] = ...,
|
||||||
|
allow_no_match: Optional[Any] = ...,
|
||||||
|
bytes: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def ml_datafeeds(
|
||||||
|
self,
|
||||||
|
datafeed_id: Optional[Any] = ...,
|
||||||
|
allow_no_datafeeds: Optional[Any] = ...,
|
||||||
|
allow_no_match: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def ml_jobs(
|
||||||
|
self,
|
||||||
|
job_id: Optional[Any] = ...,
|
||||||
|
allow_no_jobs: Optional[Any] = ...,
|
||||||
|
allow_no_match: Optional[Any] = ...,
|
||||||
|
bytes: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def ml_trained_models(
|
||||||
|
self,
|
||||||
|
model_id: Optional[Any] = ...,
|
||||||
|
allow_no_match: Optional[Any] = ...,
|
||||||
|
bytes: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
from_: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
size: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def transforms(
|
||||||
|
self,
|
||||||
|
transform_id: Optional[Any] = ...,
|
||||||
|
allow_no_match: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
from_: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
size: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,207 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class CcrClient(NamespacedClient):
|
||||||
|
async def delete_auto_follow_pattern(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def follow(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
body: Any,
|
||||||
|
wait_for_active_shards: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def follow_info(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def follow_stats(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def forget_follower(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_auto_follow_pattern(
|
||||||
|
self,
|
||||||
|
name: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def pause_follow(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def put_auto_follow_pattern(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def resume_follow(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def stats(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def unfollow(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def pause_auto_follow_pattern(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def resume_auto_follow_pattern(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,279 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class ClusterClient(NamespacedClient):
|
||||||
|
async def health(
|
||||||
|
self,
|
||||||
|
index: Optional[Any] = ...,
|
||||||
|
expand_wildcards: Optional[Any] = ...,
|
||||||
|
level: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
wait_for_active_shards: Optional[Any] = ...,
|
||||||
|
wait_for_events: Optional[Any] = ...,
|
||||||
|
wait_for_no_initializing_shards: Optional[Any] = ...,
|
||||||
|
wait_for_no_relocating_shards: Optional[Any] = ...,
|
||||||
|
wait_for_nodes: Optional[Any] = ...,
|
||||||
|
wait_for_status: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def pending_tasks(
|
||||||
|
self,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def state(
|
||||||
|
self,
|
||||||
|
metric: Optional[Any] = ...,
|
||||||
|
index: Optional[Any] = ...,
|
||||||
|
allow_no_indices: Optional[Any] = ...,
|
||||||
|
expand_wildcards: Optional[Any] = ...,
|
||||||
|
flat_settings: Optional[Any] = ...,
|
||||||
|
ignore_unavailable: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
wait_for_metadata_version: Optional[Any] = ...,
|
||||||
|
wait_for_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def stats(
|
||||||
|
self,
|
||||||
|
node_id: Optional[Any] = ...,
|
||||||
|
flat_settings: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def reroute(
|
||||||
|
self,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
dry_run: Optional[Any] = ...,
|
||||||
|
explain: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
metric: Optional[Any] = ...,
|
||||||
|
retry_failed: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_settings(
|
||||||
|
self,
|
||||||
|
flat_settings: Optional[Any] = ...,
|
||||||
|
include_defaults: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def put_settings(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
flat_settings: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def remote_info(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def allocation_explain(
|
||||||
|
self,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
include_disk_info: Optional[Any] = ...,
|
||||||
|
include_yes_decisions: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def delete_component_template(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_component_template(
|
||||||
|
self,
|
||||||
|
name: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def put_component_template(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
body: Any,
|
||||||
|
create: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def exists_component_template(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> bool: ...
|
||||||
|
async def delete_voting_config_exclusions(
|
||||||
|
self,
|
||||||
|
wait_for_removal: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def post_voting_config_exclusions(
|
||||||
|
self,
|
||||||
|
node_ids: Optional[Any] = ...,
|
||||||
|
node_names: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class DanglingIndicesClient(NamespacedClient):
|
||||||
|
async def delete_dangling_index(
|
||||||
|
self,
|
||||||
|
index_uuid: Any,
|
||||||
|
accept_data_loss: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def import_dangling_index(
|
||||||
|
self,
|
||||||
|
index_uuid: Any,
|
||||||
|
accept_data_loss: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def list_dangling_indices(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,125 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, MutableMapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class Data_FrameClient(NamespacedClient):
|
||||||
|
async def delete_data_frame_transform(
|
||||||
|
self,
|
||||||
|
transform_id: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[MutableMapping[str, Any]] = ...,
|
||||||
|
headers: Optional[MutableMapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_data_frame_transform(
|
||||||
|
self,
|
||||||
|
transform_id: Optional[Any] = ...,
|
||||||
|
from_: Optional[Any] = ...,
|
||||||
|
size: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[MutableMapping[str, Any]] = ...,
|
||||||
|
headers: Optional[MutableMapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_data_frame_transform_stats(
|
||||||
|
self,
|
||||||
|
transform_id: Optional[Any],
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[MutableMapping[str, Any]] = ...,
|
||||||
|
headers: Optional[MutableMapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def preview_data_frame_transform(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[MutableMapping[str, Any]] = ...,
|
||||||
|
headers: Optional[MutableMapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def put_data_frame_transform(
|
||||||
|
self,
|
||||||
|
transform_id: Any,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[MutableMapping[str, Any]] = ...,
|
||||||
|
headers: Optional[MutableMapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def start_data_frame_transform(
|
||||||
|
self,
|
||||||
|
transform_id: Any,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[MutableMapping[str, Any]] = ...,
|
||||||
|
headers: Optional[MutableMapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def stop_data_frame_transform(
|
||||||
|
self,
|
||||||
|
transform_id: Any,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
wait_for_completion: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[MutableMapping[str, Any]] = ...,
|
||||||
|
headers: Optional[MutableMapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, MutableMapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class DeprecationClient(NamespacedClient):
|
||||||
|
async def info(
|
||||||
|
self,
|
||||||
|
index: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[MutableMapping[str, Any]] = ...,
|
||||||
|
headers: Optional[MutableMapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,92 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class EnrichClient(NamespacedClient):
|
||||||
|
async def delete_policy(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def execute_policy(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
wait_for_completion: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_policy(
|
||||||
|
self,
|
||||||
|
name: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def put_policy(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def stats(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class EqlClient(NamespacedClient):
|
||||||
|
async def search(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
body: Any,
|
||||||
|
keep_alive: Optional[Any] = ...,
|
||||||
|
keep_on_completion: Optional[Any] = ...,
|
||||||
|
wait_for_completion_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def delete(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
keep_alive: Optional[Any] = ...,
|
||||||
|
wait_for_completion_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class GraphClient(NamespacedClient):
|
||||||
|
async def explore(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
doc_type: Optional[Any] = ...,
|
||||||
|
routing: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,162 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class IlmClient(NamespacedClient):
|
||||||
|
async def delete_lifecycle(
|
||||||
|
self,
|
||||||
|
policy: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def explain_lifecycle(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
only_errors: Optional[Any] = ...,
|
||||||
|
only_managed: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_lifecycle(
|
||||||
|
self,
|
||||||
|
policy: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_status(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def move_to_step(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def put_lifecycle(
|
||||||
|
self,
|
||||||
|
policy: Any,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def remove_policy(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def retry(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def start(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def stop(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -1292,23 +1292,18 @@ class IndicesClient(NamespacedClient):
|
|||||||
)
|
)
|
||||||
|
|
||||||
@query_params()
|
@query_params()
|
||||||
async def create_data_stream(self, name, body=None, params=None, headers=None):
|
async def create_data_stream(self, name, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Creates or updates a data stream
|
Creates a data stream
|
||||||
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/data-streams.html>`_
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/data-streams.html>`_
|
||||||
|
|
||||||
:arg name: The name of the data stream
|
:arg name: The name of the data stream
|
||||||
:arg body: The data stream definition
|
|
||||||
"""
|
"""
|
||||||
if name in SKIP_IN_PATH:
|
if name in SKIP_IN_PATH:
|
||||||
raise ValueError("Empty value passed for a required argument 'name'.")
|
raise ValueError("Empty value passed for a required argument 'name'.")
|
||||||
|
|
||||||
return await self.transport.perform_request(
|
return await self.transport.perform_request(
|
||||||
"PUT",
|
"PUT", _make_path("_data_stream", name), params=params, headers=headers
|
||||||
_make_path("_data_stream", name),
|
|
||||||
params=params,
|
|
||||||
headers=headers,
|
|
||||||
body=body,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
@query_params()
|
@query_params()
|
||||||
@@ -1482,7 +1477,7 @@ class IndicesClient(NamespacedClient):
|
|||||||
async def resolve_index(self, name, params=None, headers=None):
|
async def resolve_index(self, name, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Returns information about any matching indices, aliases, and data streams
|
Returns information about any matching indices, aliases, and data streams
|
||||||
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-index.html>`_
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-resolve-index-api.html>`_
|
||||||
|
|
||||||
:arg name: A comma-separated list of names or wildcard
|
:arg name: A comma-separated list of names or wildcard
|
||||||
expressions
|
expressions
|
||||||
@@ -1507,7 +1502,7 @@ class IndicesClient(NamespacedClient):
|
|||||||
async def add_block(self, index, block, params=None, headers=None):
|
async def add_block(self, index, block, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Adds a block to an index.
|
Adds a block to an index.
|
||||||
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-blocks.html>`_
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/index-modules-blocks.html>`_
|
||||||
|
|
||||||
:arg index: A comma separated list of indices to add a block to
|
:arg index: A comma separated list of indices to add a block to
|
||||||
:arg block: The block to add (one of read, write, read_only or
|
:arg block: The block to add (one of read, write, read_only or
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,98 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class IngestClient(NamespacedClient):
|
||||||
|
async def get_pipeline(
|
||||||
|
self,
|
||||||
|
id: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def put_pipeline(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
body: Any,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def delete_pipeline(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def simulate(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
id: Optional[Any] = ...,
|
||||||
|
verbose: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def processor_grok(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,119 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class LicenseClient(NamespacedClient):
|
||||||
|
async def delete(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get(
|
||||||
|
self,
|
||||||
|
accept_enterprise: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_basic_status(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_trial_status(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def post(
|
||||||
|
self,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
acknowledge: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def post_start_basic(
|
||||||
|
self,
|
||||||
|
acknowledge: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def post_start_trial(
|
||||||
|
self,
|
||||||
|
acknowledge: Optional[Any] = ...,
|
||||||
|
doc_type: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class MigrationClient(NamespacedClient):
|
||||||
|
async def deprecations(
|
||||||
|
self,
|
||||||
|
index: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -19,7 +19,7 @@ from .utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH, _bu
|
|||||||
|
|
||||||
|
|
||||||
class MlClient(NamespacedClient):
|
class MlClient(NamespacedClient):
|
||||||
@query_params("allow_no_jobs", "force", "timeout")
|
@query_params("allow_no_jobs", "allow_no_match", "force", "timeout")
|
||||||
async def close_job(self, job_id, body=None, params=None, headers=None):
|
async def close_job(self, job_id, body=None, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Closes one or more anomaly detection jobs. A job can be opened and closed
|
Closes one or more anomaly detection jobs. A job can be opened and closed
|
||||||
@@ -31,6 +31,9 @@ class MlClient(NamespacedClient):
|
|||||||
:arg allow_no_jobs: Whether to ignore if a wildcard expression
|
:arg allow_no_jobs: Whether to ignore if a wildcard expression
|
||||||
matches no jobs. (This includes `_all` string or when no jobs have been
|
matches no jobs. (This includes `_all` string or when no jobs have been
|
||||||
specified)
|
specified)
|
||||||
|
:arg allow_no_match: Whether to ignore if a wildcard expression
|
||||||
|
matches no jobs. (This includes `_all` string or when no jobs have been
|
||||||
|
specified)
|
||||||
:arg force: True if the job should be forcefully closed
|
:arg force: True if the job should be forcefully closed
|
||||||
:arg timeout: Controls the time to wait until a job has closed.
|
:arg timeout: Controls the time to wait until a job has closed.
|
||||||
Default to 30 minutes
|
Default to 30 minutes
|
||||||
@@ -502,7 +505,7 @@ class MlClient(NamespacedClient):
|
|||||||
body=body,
|
body=body,
|
||||||
)
|
)
|
||||||
|
|
||||||
@query_params("allow_no_datafeeds")
|
@query_params("allow_no_datafeeds", "allow_no_match")
|
||||||
async def get_datafeed_stats(self, datafeed_id=None, params=None, headers=None):
|
async def get_datafeed_stats(self, datafeed_id=None, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Retrieves usage information for datafeeds.
|
Retrieves usage information for datafeeds.
|
||||||
@@ -512,6 +515,9 @@ class MlClient(NamespacedClient):
|
|||||||
:arg allow_no_datafeeds: Whether to ignore if a wildcard
|
:arg allow_no_datafeeds: Whether to ignore if a wildcard
|
||||||
expression matches no datafeeds. (This includes `_all` string or when no
|
expression matches no datafeeds. (This includes `_all` string or when no
|
||||||
datafeeds have been specified)
|
datafeeds have been specified)
|
||||||
|
:arg allow_no_match: Whether to ignore if a wildcard expression
|
||||||
|
matches no datafeeds. (This includes `_all` string or when no datafeeds
|
||||||
|
have been specified)
|
||||||
"""
|
"""
|
||||||
return await self.transport.perform_request(
|
return await self.transport.perform_request(
|
||||||
"GET",
|
"GET",
|
||||||
@@ -520,7 +526,7 @@ class MlClient(NamespacedClient):
|
|||||||
headers=headers,
|
headers=headers,
|
||||||
)
|
)
|
||||||
|
|
||||||
@query_params("allow_no_datafeeds")
|
@query_params("allow_no_datafeeds", "allow_no_match")
|
||||||
async def get_datafeeds(self, datafeed_id=None, params=None, headers=None):
|
async def get_datafeeds(self, datafeed_id=None, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Retrieves configuration information for datafeeds.
|
Retrieves configuration information for datafeeds.
|
||||||
@@ -530,6 +536,9 @@ class MlClient(NamespacedClient):
|
|||||||
:arg allow_no_datafeeds: Whether to ignore if a wildcard
|
:arg allow_no_datafeeds: Whether to ignore if a wildcard
|
||||||
expression matches no datafeeds. (This includes `_all` string or when no
|
expression matches no datafeeds. (This includes `_all` string or when no
|
||||||
datafeeds have been specified)
|
datafeeds have been specified)
|
||||||
|
:arg allow_no_match: Whether to ignore if a wildcard expression
|
||||||
|
matches no datafeeds. (This includes `_all` string or when no datafeeds
|
||||||
|
have been specified)
|
||||||
"""
|
"""
|
||||||
return await self.transport.perform_request(
|
return await self.transport.perform_request(
|
||||||
"GET",
|
"GET",
|
||||||
@@ -602,7 +611,7 @@ class MlClient(NamespacedClient):
|
|||||||
body=body,
|
body=body,
|
||||||
)
|
)
|
||||||
|
|
||||||
@query_params("allow_no_jobs")
|
@query_params("allow_no_jobs", "allow_no_match")
|
||||||
async def get_job_stats(self, job_id=None, params=None, headers=None):
|
async def get_job_stats(self, job_id=None, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Retrieves usage information for anomaly detection jobs.
|
Retrieves usage information for anomaly detection jobs.
|
||||||
@@ -612,6 +621,9 @@ class MlClient(NamespacedClient):
|
|||||||
:arg allow_no_jobs: Whether to ignore if a wildcard expression
|
:arg allow_no_jobs: Whether to ignore if a wildcard expression
|
||||||
matches no jobs. (This includes `_all` string or when no jobs have been
|
matches no jobs. (This includes `_all` string or when no jobs have been
|
||||||
specified)
|
specified)
|
||||||
|
:arg allow_no_match: Whether to ignore if a wildcard expression
|
||||||
|
matches no jobs. (This includes `_all` string or when no jobs have been
|
||||||
|
specified)
|
||||||
"""
|
"""
|
||||||
return await self.transport.perform_request(
|
return await self.transport.perform_request(
|
||||||
"GET",
|
"GET",
|
||||||
@@ -620,7 +632,7 @@ class MlClient(NamespacedClient):
|
|||||||
headers=headers,
|
headers=headers,
|
||||||
)
|
)
|
||||||
|
|
||||||
@query_params("allow_no_jobs")
|
@query_params("allow_no_jobs", "allow_no_match")
|
||||||
async def get_jobs(self, job_id=None, params=None, headers=None):
|
async def get_jobs(self, job_id=None, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Retrieves configuration information for anomaly detection jobs.
|
Retrieves configuration information for anomaly detection jobs.
|
||||||
@@ -630,6 +642,9 @@ class MlClient(NamespacedClient):
|
|||||||
:arg allow_no_jobs: Whether to ignore if a wildcard expression
|
:arg allow_no_jobs: Whether to ignore if a wildcard expression
|
||||||
matches no jobs. (This includes `_all` string or when no jobs have been
|
matches no jobs. (This includes `_all` string or when no jobs have been
|
||||||
specified)
|
specified)
|
||||||
|
:arg allow_no_match: Whether to ignore if a wildcard expression
|
||||||
|
matches no jobs. (This includes `_all` string or when no jobs have been
|
||||||
|
specified)
|
||||||
"""
|
"""
|
||||||
return await self.transport.perform_request(
|
return await self.transport.perform_request(
|
||||||
"GET",
|
"GET",
|
||||||
@@ -677,6 +692,7 @@ class MlClient(NamespacedClient):
|
|||||||
|
|
||||||
@query_params(
|
@query_params(
|
||||||
"allow_no_jobs",
|
"allow_no_jobs",
|
||||||
|
"allow_no_match",
|
||||||
"bucket_span",
|
"bucket_span",
|
||||||
"end",
|
"end",
|
||||||
"exclude_interim",
|
"exclude_interim",
|
||||||
@@ -697,6 +713,9 @@ class MlClient(NamespacedClient):
|
|||||||
:arg allow_no_jobs: Whether to ignore if a wildcard expression
|
:arg allow_no_jobs: Whether to ignore if a wildcard expression
|
||||||
matches no jobs. (This includes `_all` string or when no jobs have been
|
matches no jobs. (This includes `_all` string or when no jobs have been
|
||||||
specified)
|
specified)
|
||||||
|
:arg allow_no_match: Whether to ignore if a wildcard expression
|
||||||
|
matches no jobs. (This includes `_all` string or when no jobs have been
|
||||||
|
specified)
|
||||||
:arg bucket_span: The span of the overall buckets. Defaults to
|
:arg bucket_span: The span of the overall buckets. Defaults to
|
||||||
the longest job bucket_span
|
the longest job bucket_span
|
||||||
:arg end: Returns overall buckets with timestamps earlier than
|
:arg end: Returns overall buckets with timestamps earlier than
|
||||||
@@ -1052,16 +1071,20 @@ class MlClient(NamespacedClient):
|
|||||||
body=body,
|
body=body,
|
||||||
)
|
)
|
||||||
|
|
||||||
@query_params("allow_no_datafeeds", "force", "timeout")
|
@query_params("allow_no_datafeeds", "allow_no_match", "force", "timeout")
|
||||||
async def stop_datafeed(self, datafeed_id, params=None, headers=None):
|
async def stop_datafeed(self, datafeed_id, body=None, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Stops one or more datafeeds.
|
Stops one or more datafeeds.
|
||||||
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/ml-stop-datafeed.html>`_
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/ml-stop-datafeed.html>`_
|
||||||
|
|
||||||
:arg datafeed_id: The ID of the datafeed to stop
|
:arg datafeed_id: The ID of the datafeed to stop
|
||||||
|
:arg body: The URL params optionally sent in the body
|
||||||
:arg allow_no_datafeeds: Whether to ignore if a wildcard
|
:arg allow_no_datafeeds: Whether to ignore if a wildcard
|
||||||
expression matches no datafeeds. (This includes `_all` string or when no
|
expression matches no datafeeds. (This includes `_all` string or when no
|
||||||
datafeeds have been specified)
|
datafeeds have been specified)
|
||||||
|
:arg allow_no_match: Whether to ignore if a wildcard expression
|
||||||
|
matches no datafeeds. (This includes `_all` string or when no datafeeds
|
||||||
|
have been specified)
|
||||||
:arg force: True if the datafeed should be forcefully stopped.
|
:arg force: True if the datafeed should be forcefully stopped.
|
||||||
:arg timeout: Controls the time to wait until a datafeed has
|
:arg timeout: Controls the time to wait until a datafeed has
|
||||||
stopped. Default to 20 seconds
|
stopped. Default to 20 seconds
|
||||||
@@ -1076,6 +1099,7 @@ class MlClient(NamespacedClient):
|
|||||||
_make_path("_ml", "datafeeds", datafeed_id, "_stop"),
|
_make_path("_ml", "datafeeds", datafeed_id, "_stop"),
|
||||||
params=params,
|
params=params,
|
||||||
headers=headers,
|
headers=headers,
|
||||||
|
body=body,
|
||||||
)
|
)
|
||||||
|
|
||||||
@query_params(
|
@query_params(
|
||||||
@@ -1427,6 +1451,7 @@ class MlClient(NamespacedClient):
|
|||||||
"decompress_definition",
|
"decompress_definition",
|
||||||
"for_export",
|
"for_export",
|
||||||
"from_",
|
"from_",
|
||||||
|
"include",
|
||||||
"include_model_definition",
|
"include_model_definition",
|
||||||
"size",
|
"size",
|
||||||
"tags",
|
"tags",
|
||||||
@@ -1446,6 +1471,9 @@ class MlClient(NamespacedClient):
|
|||||||
:arg for_export: Omits fields that are illegal to set on model
|
:arg for_export: Omits fields that are illegal to set on model
|
||||||
PUT
|
PUT
|
||||||
:arg from_: skips a number of trained models
|
:arg from_: skips a number of trained models
|
||||||
|
:arg include: A comma-separate list of fields to optionally
|
||||||
|
include. Valid options are 'definition' and 'total_feature_importance'.
|
||||||
|
Default is none.
|
||||||
:arg include_model_definition: Should the full model definition
|
:arg include_model_definition: Should the full model definition
|
||||||
be included in the results. These definitions can be large. So be
|
be included in the results. These definitions can be large. So be
|
||||||
cautious when including them. Defaults to false.
|
cautious when including them. Defaults to false.
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,39 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class MonitoringClient(NamespacedClient):
|
||||||
|
async def bulk(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
doc_type: Optional[Any] = ...,
|
||||||
|
interval: Optional[Any] = ...,
|
||||||
|
system_api_version: Optional[Any] = ...,
|
||||||
|
system_id: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,114 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class NodesClient(NamespacedClient):
|
||||||
|
async def reload_secure_settings(
|
||||||
|
self,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
node_id: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def info(
|
||||||
|
self,
|
||||||
|
node_id: Optional[Any] = ...,
|
||||||
|
metric: Optional[Any] = ...,
|
||||||
|
flat_settings: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def stats(
|
||||||
|
self,
|
||||||
|
node_id: Optional[Any] = ...,
|
||||||
|
metric: Optional[Any] = ...,
|
||||||
|
index_metric: Optional[Any] = ...,
|
||||||
|
completion_fields: Optional[Any] = ...,
|
||||||
|
fielddata_fields: Optional[Any] = ...,
|
||||||
|
fields: Optional[Any] = ...,
|
||||||
|
groups: Optional[Any] = ...,
|
||||||
|
include_segment_file_sizes: Optional[Any] = ...,
|
||||||
|
level: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
types: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def hot_threads(
|
||||||
|
self,
|
||||||
|
node_id: Optional[Any] = ...,
|
||||||
|
doc_type: Optional[Any] = ...,
|
||||||
|
ignore_idle_threads: Optional[Any] = ...,
|
||||||
|
interval: Optional[Any] = ...,
|
||||||
|
snapshots: Optional[Any] = ...,
|
||||||
|
threads: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def usage(
|
||||||
|
self,
|
||||||
|
node_id: Optional[Any] = ...,
|
||||||
|
metric: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class RemoteClient(NamespacedClient):
|
||||||
|
async def info(
|
||||||
|
self,
|
||||||
|
timeout: Optional[Any] = None,
|
||||||
|
pretty: Optional[bool] = None,
|
||||||
|
human: Optional[bool] = None,
|
||||||
|
error_trace: Optional[bool] = None,
|
||||||
|
format: Optional[str] = None,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = None,
|
||||||
|
params: Optional[Mapping[str, Any]] = None,
|
||||||
|
headers: Optional[Mapping[str, str]] = None,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,140 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class RollupClient(NamespacedClient):
|
||||||
|
async def delete_job(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_jobs(
|
||||||
|
self,
|
||||||
|
id: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_rollup_caps(
|
||||||
|
self,
|
||||||
|
id: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_rollup_index_caps(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def put_job(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def rollup_search(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
body: Any,
|
||||||
|
doc_type: Optional[Any] = ...,
|
||||||
|
rest_total_hits_as_int: Optional[Any] = ...,
|
||||||
|
typed_keys: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def start_job(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def stop_job(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
wait_for_completion: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -23,7 +23,7 @@ class SearchableSnapshotsClient(NamespacedClient):
|
|||||||
async def clear_cache(self, index=None, params=None, headers=None):
|
async def clear_cache(self, index=None, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Clear the cache of searchable snapshots.
|
Clear the cache of searchable snapshots.
|
||||||
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/searchable-snapshots-api-clear-cache.html>`_
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/searchable-snapshots-apis.html>`_
|
||||||
|
|
||||||
:arg index: A comma-separated list of index name to limit the
|
:arg index: A comma-separated list of index name to limit the
|
||||||
operation
|
operation
|
||||||
@@ -74,8 +74,8 @@ class SearchableSnapshotsClient(NamespacedClient):
|
|||||||
@query_params()
|
@query_params()
|
||||||
async def repository_stats(self, repository, params=None, headers=None):
|
async def repository_stats(self, repository, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Retrieve usage statistics about a snapshot repository.
|
DEPRECATED: This API is replaced by the Repositories Metering API.
|
||||||
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/searchable-snapshots-repository-stats.html>`_
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/searchable-snapshots-apis.html>`_
|
||||||
|
|
||||||
:arg repository: The repository for which to get the stats for
|
:arg repository: The repository for which to get the stats for
|
||||||
"""
|
"""
|
||||||
@@ -93,7 +93,7 @@ class SearchableSnapshotsClient(NamespacedClient):
|
|||||||
async def stats(self, index=None, params=None, headers=None):
|
async def stats(self, index=None, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Retrieve various statistics about searchable snapshots.
|
Retrieve various statistics about searchable snapshots.
|
||||||
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/searchable-snapshots-api-stats.html>`_
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/searchable-snapshots-apis.html>`_
|
||||||
|
|
||||||
:arg index: A comma-separated list of index names
|
:arg index: A comma-separated list of index names
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -0,0 +1,84 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class SearchableSnapshotsClient(NamespacedClient):
|
||||||
|
async def clear_cache(
|
||||||
|
self,
|
||||||
|
index: Optional[Any] = ...,
|
||||||
|
allow_no_indices: Optional[Any] = ...,
|
||||||
|
expand_wildcards: Optional[Any] = ...,
|
||||||
|
ignore_unavailable: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def mount(
|
||||||
|
self,
|
||||||
|
repository: Any,
|
||||||
|
snapshot: Any,
|
||||||
|
body: Any,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
wait_for_completion: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def repository_stats(
|
||||||
|
self,
|
||||||
|
repository: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def stats(
|
||||||
|
self,
|
||||||
|
index: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,420 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class SecurityClient(NamespacedClient):
|
||||||
|
async def authenticate(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def change_password(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
username: Optional[Any] = ...,
|
||||||
|
refresh: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def clear_cached_realms(
|
||||||
|
self,
|
||||||
|
realms: Any,
|
||||||
|
usernames: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def clear_cached_roles(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def create_api_key(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
refresh: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def delete_privileges(
|
||||||
|
self,
|
||||||
|
application: Any,
|
||||||
|
name: Any,
|
||||||
|
refresh: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def delete_role(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
refresh: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def delete_role_mapping(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
refresh: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def delete_user(
|
||||||
|
self,
|
||||||
|
username: Any,
|
||||||
|
refresh: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def disable_user(
|
||||||
|
self,
|
||||||
|
username: Any,
|
||||||
|
refresh: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def enable_user(
|
||||||
|
self,
|
||||||
|
username: Any,
|
||||||
|
refresh: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_api_key(
|
||||||
|
self,
|
||||||
|
id: Optional[Any] = ...,
|
||||||
|
name: Optional[Any] = ...,
|
||||||
|
owner: Optional[Any] = ...,
|
||||||
|
realm_name: Optional[Any] = ...,
|
||||||
|
username: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_privileges(
|
||||||
|
self,
|
||||||
|
application: Optional[Any] = ...,
|
||||||
|
name: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_role(
|
||||||
|
self,
|
||||||
|
name: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_role_mapping(
|
||||||
|
self,
|
||||||
|
name: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_token(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_user(
|
||||||
|
self,
|
||||||
|
username: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_user_privileges(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def has_privileges(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
user: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def invalidate_api_key(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def invalidate_token(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def put_privileges(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
refresh: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def put_role(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
body: Any,
|
||||||
|
refresh: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def put_role_mapping(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
body: Any,
|
||||||
|
refresh: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def put_user(
|
||||||
|
self,
|
||||||
|
username: Any,
|
||||||
|
body: Any,
|
||||||
|
refresh: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_builtin_privileges(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def clear_cached_privileges(
|
||||||
|
self,
|
||||||
|
application: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,143 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class SlmClient(NamespacedClient):
|
||||||
|
async def delete_lifecycle(
|
||||||
|
self,
|
||||||
|
policy_id: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def execute_lifecycle(
|
||||||
|
self,
|
||||||
|
policy_id: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def execute_retention(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_lifecycle(
|
||||||
|
self,
|
||||||
|
policy_id: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_stats(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def put_lifecycle(
|
||||||
|
self,
|
||||||
|
policy_id: Any,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_status(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def start(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def stop(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,190 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class SnapshotClient(NamespacedClient):
|
||||||
|
async def create(
|
||||||
|
self,
|
||||||
|
repository: Any,
|
||||||
|
snapshot: Any,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
wait_for_completion: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def delete(
|
||||||
|
self,
|
||||||
|
repository: Any,
|
||||||
|
snapshot: Any,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get(
|
||||||
|
self,
|
||||||
|
repository: Any,
|
||||||
|
snapshot: Any,
|
||||||
|
ignore_unavailable: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
verbose: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def delete_repository(
|
||||||
|
self,
|
||||||
|
repository: Any,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_repository(
|
||||||
|
self,
|
||||||
|
repository: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def create_repository(
|
||||||
|
self,
|
||||||
|
repository: Any,
|
||||||
|
body: Any,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
verify: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def restore(
|
||||||
|
self,
|
||||||
|
repository: Any,
|
||||||
|
snapshot: Any,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
wait_for_completion: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def status(
|
||||||
|
self,
|
||||||
|
repository: Optional[Any] = ...,
|
||||||
|
snapshot: Optional[Any] = ...,
|
||||||
|
ignore_unavailable: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def verify_repository(
|
||||||
|
self,
|
||||||
|
repository: Any,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def cleanup_repository(
|
||||||
|
self,
|
||||||
|
repository: Any,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class SqlClient(NamespacedClient):
|
||||||
|
async def clear_cursor(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def query(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def translate(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class SslClient(NamespacedClient):
|
||||||
|
async def certificates(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,75 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class TasksClient(NamespacedClient):
|
||||||
|
async def list(
|
||||||
|
self,
|
||||||
|
actions: Optional[Any] = ...,
|
||||||
|
detailed: Optional[Any] = ...,
|
||||||
|
group_by: Optional[Any] = ...,
|
||||||
|
nodes: Optional[Any] = ...,
|
||||||
|
parent_task_id: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
wait_for_completion: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def cancel(
|
||||||
|
self,
|
||||||
|
task_id: Optional[Any] = ...,
|
||||||
|
actions: Optional[Any] = ...,
|
||||||
|
nodes: Optional[Any] = ...,
|
||||||
|
parent_task_id: Optional[Any] = ...,
|
||||||
|
wait_for_completion: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get(
|
||||||
|
self,
|
||||||
|
task_id: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
wait_for_completion: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,150 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class TransformClient(NamespacedClient):
|
||||||
|
async def delete_transform(
|
||||||
|
self,
|
||||||
|
transform_id: Any,
|
||||||
|
force: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_transform(
|
||||||
|
self,
|
||||||
|
transform_id: Optional[Any] = ...,
|
||||||
|
allow_no_match: Optional[Any] = ...,
|
||||||
|
from_: Optional[Any] = ...,
|
||||||
|
size: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_transform_stats(
|
||||||
|
self,
|
||||||
|
transform_id: Any,
|
||||||
|
allow_no_match: Optional[Any] = ...,
|
||||||
|
from_: Optional[Any] = ...,
|
||||||
|
size: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def preview_transform(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def put_transform(
|
||||||
|
self,
|
||||||
|
transform_id: Any,
|
||||||
|
body: Any,
|
||||||
|
defer_validation: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def start_transform(
|
||||||
|
self,
|
||||||
|
transform_id: Any,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def stop_transform(
|
||||||
|
self,
|
||||||
|
transform_id: Any,
|
||||||
|
allow_no_match: Optional[Any] = ...,
|
||||||
|
force: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
wait_for_checkpoint: Optional[Any] = ...,
|
||||||
|
wait_for_completion: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def update_transform(
|
||||||
|
self,
|
||||||
|
transform_id: Any,
|
||||||
|
body: Any,
|
||||||
|
defer_validation: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from ...client.utils import ( # noqa
|
||||||
|
_make_path as _make_path,
|
||||||
|
_normalize_hosts as _normalize_hosts,
|
||||||
|
_escape as _escape,
|
||||||
|
_bulk_body as _bulk_body,
|
||||||
|
query_params as query_params,
|
||||||
|
SKIP_IN_PATH as SKIP_IN_PATH,
|
||||||
|
)
|
||||||
|
from ..transport import AsyncTransport
|
||||||
|
from ..client import AsyncElasticsearch
|
||||||
|
|
||||||
|
class NamespacedClient:
|
||||||
|
client: AsyncElasticsearch
|
||||||
|
def __init__(self, client: AsyncElasticsearch) -> None: ...
|
||||||
|
@property
|
||||||
|
def transport(self) -> AsyncTransport: ...
|
||||||
@@ -0,0 +1,168 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class WatcherClient(NamespacedClient):
|
||||||
|
async def ack_watch(
|
||||||
|
self,
|
||||||
|
watch_id: Any,
|
||||||
|
action_id: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def activate_watch(
|
||||||
|
self,
|
||||||
|
watch_id: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def deactivate_watch(
|
||||||
|
self,
|
||||||
|
watch_id: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def delete_watch(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def execute_watch(
|
||||||
|
self,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
id: Optional[Any] = ...,
|
||||||
|
debug: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def get_watch(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def put_watch(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
active: Optional[Any] = ...,
|
||||||
|
if_primary_term: Optional[Any] = ...,
|
||||||
|
if_seq_no: Optional[Any] = ...,
|
||||||
|
version: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def start(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def stats(
|
||||||
|
self,
|
||||||
|
metric: Optional[Any] = ...,
|
||||||
|
emit_stacktraces: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def stop(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class XPackClient(NamespacedClient):
|
||||||
|
def __getattr__(self, attr_name: str) -> Any:
|
||||||
|
return getattr(self.client, attr_name)
|
||||||
|
# AUTO-GENERATED-API-DEFINITIONS #
|
||||||
|
async def info(
|
||||||
|
self,
|
||||||
|
accept_enterprise: Optional[Any] = ...,
|
||||||
|
categories: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
async def usage(
|
||||||
|
self,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -459,7 +459,7 @@ class Elasticsearch(object):
|
|||||||
def clear_scroll(self, body=None, scroll_id=None, params=None, headers=None):
|
def clear_scroll(self, body=None, scroll_id=None, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Explicitly clears the search context for a scroll.
|
Explicitly clears the search context for a scroll.
|
||||||
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-body.html#_clear_scroll_api>`_
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/clear-scroll-api.html>`_
|
||||||
|
|
||||||
:arg body: A comma-separated list of scroll IDs to clear if none
|
:arg body: A comma-separated list of scroll IDs to clear if none
|
||||||
was specified via the scroll_id parameter
|
was specified via the scroll_id parameter
|
||||||
@@ -2027,3 +2027,40 @@ class Elasticsearch(object):
|
|||||||
return self.transport.perform_request(
|
return self.transport.perform_request(
|
||||||
"GET", "/_script_language", params=params, headers=headers
|
"GET", "/_script_language", params=params, headers=headers
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@query_params()
|
||||||
|
def close_point_in_time(self, body=None, params=None, headers=None):
|
||||||
|
"""
|
||||||
|
Close a point in time
|
||||||
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/point-in-time-api.html>`_
|
||||||
|
|
||||||
|
:arg body: a point-in-time id to close
|
||||||
|
"""
|
||||||
|
return self.transport.perform_request(
|
||||||
|
"DELETE", "/_pit", params=params, headers=headers, body=body
|
||||||
|
)
|
||||||
|
|
||||||
|
@query_params(
|
||||||
|
"expand_wildcards", "ignore_unavailable", "keep_alive", "preference", "routing"
|
||||||
|
)
|
||||||
|
def open_point_in_time(self, index=None, params=None, headers=None):
|
||||||
|
"""
|
||||||
|
Open a point in time that can be used in subsequent searches
|
||||||
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/point-in-time-api.html>`_
|
||||||
|
|
||||||
|
:arg index: A comma-separated list of index names to open point
|
||||||
|
in time; use `_all` or empty string to perform the operation on all
|
||||||
|
indices
|
||||||
|
:arg expand_wildcards: Whether to expand wildcard expression to
|
||||||
|
concrete indices that are open, closed or both. Valid choices: open,
|
||||||
|
closed, hidden, none, all Default: open
|
||||||
|
:arg ignore_unavailable: Whether specified concrete indices
|
||||||
|
should be ignored when unavailable (missing or closed)
|
||||||
|
:arg keep_alive: Specific the time to live for the point in time
|
||||||
|
:arg preference: Specify the node or shard the operation should
|
||||||
|
be performed on (default: random)
|
||||||
|
:arg routing: Specific routing value
|
||||||
|
"""
|
||||||
|
return self.transport.perform_request(
|
||||||
|
"POST", _make_path(index, "_pit"), params=params, headers=headers
|
||||||
|
)
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,108 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class AsyncSearchClient(NamespacedClient):
|
||||||
|
def delete(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
keep_alive: Optional[Any] = ...,
|
||||||
|
typed_keys: Optional[Any] = ...,
|
||||||
|
wait_for_completion_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def submit(
|
||||||
|
self,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
index: Optional[Any] = ...,
|
||||||
|
_source: Optional[Any] = ...,
|
||||||
|
_source_excludes: Optional[Any] = ...,
|
||||||
|
_source_includes: Optional[Any] = ...,
|
||||||
|
allow_no_indices: Optional[Any] = ...,
|
||||||
|
allow_partial_search_results: Optional[Any] = ...,
|
||||||
|
analyze_wildcard: Optional[Any] = ...,
|
||||||
|
analyzer: Optional[Any] = ...,
|
||||||
|
batched_reduce_size: Optional[Any] = ...,
|
||||||
|
default_operator: Optional[Any] = ...,
|
||||||
|
df: Optional[Any] = ...,
|
||||||
|
docvalue_fields: Optional[Any] = ...,
|
||||||
|
expand_wildcards: Optional[Any] = ...,
|
||||||
|
explain: Optional[Any] = ...,
|
||||||
|
from_: Optional[Any] = ...,
|
||||||
|
ignore_throttled: Optional[Any] = ...,
|
||||||
|
ignore_unavailable: Optional[Any] = ...,
|
||||||
|
keep_alive: Optional[Any] = ...,
|
||||||
|
keep_on_completion: Optional[Any] = ...,
|
||||||
|
lenient: Optional[Any] = ...,
|
||||||
|
max_concurrent_shard_requests: Optional[Any] = ...,
|
||||||
|
preference: Optional[Any] = ...,
|
||||||
|
q: Optional[Any] = ...,
|
||||||
|
request_cache: Optional[Any] = ...,
|
||||||
|
routing: Optional[Any] = ...,
|
||||||
|
search_type: Optional[Any] = ...,
|
||||||
|
seq_no_primary_term: Optional[Any] = ...,
|
||||||
|
size: Optional[Any] = ...,
|
||||||
|
sort: Optional[Any] = ...,
|
||||||
|
stats: Optional[Any] = ...,
|
||||||
|
stored_fields: Optional[Any] = ...,
|
||||||
|
suggest_field: Optional[Any] = ...,
|
||||||
|
suggest_mode: Optional[Any] = ...,
|
||||||
|
suggest_size: Optional[Any] = ...,
|
||||||
|
suggest_text: Optional[Any] = ...,
|
||||||
|
terminate_after: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
track_scores: Optional[Any] = ...,
|
||||||
|
track_total_hits: Optional[Any] = ...,
|
||||||
|
typed_keys: Optional[Any] = ...,
|
||||||
|
version: Optional[Any] = ...,
|
||||||
|
wait_for_completion_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class AutoscalingClient(NamespacedClient):
|
||||||
|
def get_autoscaling_decision(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def delete_autoscaling_policy(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_autoscaling_policy(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def put_autoscaling_policy(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -596,7 +596,9 @@ class CatClient(NamespacedClient):
|
|||||||
headers=headers,
|
headers=headers,
|
||||||
)
|
)
|
||||||
|
|
||||||
@query_params("allow_no_datafeeds", "format", "h", "help", "s", "time", "v")
|
@query_params(
|
||||||
|
"allow_no_datafeeds", "allow_no_match", "format", "h", "help", "s", "time", "v"
|
||||||
|
)
|
||||||
def ml_datafeeds(self, datafeed_id=None, params=None, headers=None):
|
def ml_datafeeds(self, datafeed_id=None, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Gets configuration and usage information about datafeeds.
|
Gets configuration and usage information about datafeeds.
|
||||||
@@ -606,6 +608,9 @@ class CatClient(NamespacedClient):
|
|||||||
:arg allow_no_datafeeds: Whether to ignore if a wildcard
|
:arg allow_no_datafeeds: Whether to ignore if a wildcard
|
||||||
expression matches no datafeeds. (This includes `_all` string or when no
|
expression matches no datafeeds. (This includes `_all` string or when no
|
||||||
datafeeds have been specified)
|
datafeeds have been specified)
|
||||||
|
:arg allow_no_match: Whether to ignore if a wildcard expression
|
||||||
|
matches no datafeeds. (This includes `_all` string or when no datafeeds
|
||||||
|
have been specified)
|
||||||
:arg format: a short version of the Accept header, e.g. json,
|
:arg format: a short version of the Accept header, e.g. json,
|
||||||
yaml
|
yaml
|
||||||
:arg h: Comma-separated list of column names to display
|
:arg h: Comma-separated list of column names to display
|
||||||
@@ -623,7 +628,17 @@ class CatClient(NamespacedClient):
|
|||||||
headers=headers,
|
headers=headers,
|
||||||
)
|
)
|
||||||
|
|
||||||
@query_params("allow_no_jobs", "bytes", "format", "h", "help", "s", "time", "v")
|
@query_params(
|
||||||
|
"allow_no_jobs",
|
||||||
|
"allow_no_match",
|
||||||
|
"bytes",
|
||||||
|
"format",
|
||||||
|
"h",
|
||||||
|
"help",
|
||||||
|
"s",
|
||||||
|
"time",
|
||||||
|
"v",
|
||||||
|
)
|
||||||
def ml_jobs(self, job_id=None, params=None, headers=None):
|
def ml_jobs(self, job_id=None, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Gets configuration and usage information about anomaly detection jobs.
|
Gets configuration and usage information about anomaly detection jobs.
|
||||||
@@ -633,6 +648,9 @@ class CatClient(NamespacedClient):
|
|||||||
:arg allow_no_jobs: Whether to ignore if a wildcard expression
|
:arg allow_no_jobs: Whether to ignore if a wildcard expression
|
||||||
matches no jobs. (This includes `_all` string or when no jobs have been
|
matches no jobs. (This includes `_all` string or when no jobs have been
|
||||||
specified)
|
specified)
|
||||||
|
:arg allow_no_match: Whether to ignore if a wildcard expression
|
||||||
|
matches no jobs. (This includes `_all` string or when no jobs have been
|
||||||
|
specified)
|
||||||
:arg bytes: The unit in which to display byte values Valid
|
:arg bytes: The unit in which to display byte values Valid
|
||||||
choices: b, k, kb, m, mb, g, gb, t, tb, p, pb
|
choices: b, k, kb, m, mb, g, gb, t, tb, p, pb
|
||||||
:arg format: a short version of the Accept header, e.g. json,
|
:arg format: a short version of the Accept header, e.g. json,
|
||||||
|
|||||||
@@ -0,0 +1,533 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class CatClient(NamespacedClient):
|
||||||
|
def aliases(
|
||||||
|
self,
|
||||||
|
name: Optional[Any] = ...,
|
||||||
|
expand_wildcards: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def allocation(
|
||||||
|
self,
|
||||||
|
node_id: Optional[Any] = ...,
|
||||||
|
bytes: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def count(
|
||||||
|
self,
|
||||||
|
index: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def health(
|
||||||
|
self,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
ts: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def help(
|
||||||
|
self,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def indices(
|
||||||
|
self,
|
||||||
|
index: Optional[Any] = ...,
|
||||||
|
bytes: Optional[Any] = ...,
|
||||||
|
expand_wildcards: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
health: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
include_unloaded_segments: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
pri: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def master(
|
||||||
|
self,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def nodes(
|
||||||
|
self,
|
||||||
|
bytes: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
full_id: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def recovery(
|
||||||
|
self,
|
||||||
|
index: Optional[Any] = ...,
|
||||||
|
active_only: Optional[Any] = ...,
|
||||||
|
bytes: Optional[Any] = ...,
|
||||||
|
detailed: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def shards(
|
||||||
|
self,
|
||||||
|
index: Optional[Any] = ...,
|
||||||
|
bytes: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def segments(
|
||||||
|
self,
|
||||||
|
index: Optional[Any] = ...,
|
||||||
|
bytes: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def pending_tasks(
|
||||||
|
self,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def thread_pool(
|
||||||
|
self,
|
||||||
|
thread_pool_patterns: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
size: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def fielddata(
|
||||||
|
self,
|
||||||
|
fields: Optional[Any] = ...,
|
||||||
|
bytes: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def plugins(
|
||||||
|
self,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def nodeattrs(
|
||||||
|
self,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def repositories(
|
||||||
|
self,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def snapshots(
|
||||||
|
self,
|
||||||
|
repository: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
ignore_unavailable: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def tasks(
|
||||||
|
self,
|
||||||
|
actions: Optional[Any] = ...,
|
||||||
|
detailed: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
node_id: Optional[Any] = ...,
|
||||||
|
parent_task: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def templates(
|
||||||
|
self,
|
||||||
|
name: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def ml_data_frame_analytics(
|
||||||
|
self,
|
||||||
|
id: Optional[Any] = ...,
|
||||||
|
allow_no_match: Optional[Any] = ...,
|
||||||
|
bytes: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def ml_datafeeds(
|
||||||
|
self,
|
||||||
|
datafeed_id: Optional[Any] = ...,
|
||||||
|
allow_no_datafeeds: Optional[Any] = ...,
|
||||||
|
allow_no_match: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def ml_jobs(
|
||||||
|
self,
|
||||||
|
job_id: Optional[Any] = ...,
|
||||||
|
allow_no_jobs: Optional[Any] = ...,
|
||||||
|
allow_no_match: Optional[Any] = ...,
|
||||||
|
bytes: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def ml_trained_models(
|
||||||
|
self,
|
||||||
|
model_id: Optional[Any] = ...,
|
||||||
|
allow_no_match: Optional[Any] = ...,
|
||||||
|
bytes: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
from_: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
size: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def transforms(
|
||||||
|
self,
|
||||||
|
transform_id: Optional[Any] = ...,
|
||||||
|
allow_no_match: Optional[Any] = ...,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
from_: Optional[Any] = ...,
|
||||||
|
h: Optional[Any] = ...,
|
||||||
|
help: Optional[Any] = ...,
|
||||||
|
s: Optional[Any] = ...,
|
||||||
|
size: Optional[Any] = ...,
|
||||||
|
time: Optional[Any] = ...,
|
||||||
|
v: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,207 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class CcrClient(NamespacedClient):
|
||||||
|
def delete_auto_follow_pattern(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def follow(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
body: Any,
|
||||||
|
wait_for_active_shards: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def follow_info(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def follow_stats(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def forget_follower(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_auto_follow_pattern(
|
||||||
|
self,
|
||||||
|
name: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def pause_follow(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def put_auto_follow_pattern(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def resume_follow(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def stats(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def unfollow(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def pause_auto_follow_pattern(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def resume_auto_follow_pattern(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,279 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class ClusterClient(NamespacedClient):
|
||||||
|
def health(
|
||||||
|
self,
|
||||||
|
index: Optional[Any] = ...,
|
||||||
|
expand_wildcards: Optional[Any] = ...,
|
||||||
|
level: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
wait_for_active_shards: Optional[Any] = ...,
|
||||||
|
wait_for_events: Optional[Any] = ...,
|
||||||
|
wait_for_no_initializing_shards: Optional[Any] = ...,
|
||||||
|
wait_for_no_relocating_shards: Optional[Any] = ...,
|
||||||
|
wait_for_nodes: Optional[Any] = ...,
|
||||||
|
wait_for_status: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def pending_tasks(
|
||||||
|
self,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def state(
|
||||||
|
self,
|
||||||
|
metric: Optional[Any] = ...,
|
||||||
|
index: Optional[Any] = ...,
|
||||||
|
allow_no_indices: Optional[Any] = ...,
|
||||||
|
expand_wildcards: Optional[Any] = ...,
|
||||||
|
flat_settings: Optional[Any] = ...,
|
||||||
|
ignore_unavailable: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
wait_for_metadata_version: Optional[Any] = ...,
|
||||||
|
wait_for_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def stats(
|
||||||
|
self,
|
||||||
|
node_id: Optional[Any] = ...,
|
||||||
|
flat_settings: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def reroute(
|
||||||
|
self,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
dry_run: Optional[Any] = ...,
|
||||||
|
explain: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
metric: Optional[Any] = ...,
|
||||||
|
retry_failed: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_settings(
|
||||||
|
self,
|
||||||
|
flat_settings: Optional[Any] = ...,
|
||||||
|
include_defaults: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def put_settings(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
flat_settings: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def remote_info(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def allocation_explain(
|
||||||
|
self,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
include_disk_info: Optional[Any] = ...,
|
||||||
|
include_yes_decisions: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def delete_component_template(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_component_template(
|
||||||
|
self,
|
||||||
|
name: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def put_component_template(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
body: Any,
|
||||||
|
create: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def exists_component_template(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> bool: ...
|
||||||
|
def delete_voting_config_exclusions(
|
||||||
|
self,
|
||||||
|
wait_for_removal: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def post_voting_config_exclusions(
|
||||||
|
self,
|
||||||
|
node_ids: Optional[Any] = ...,
|
||||||
|
node_names: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class DanglingIndicesClient(NamespacedClient):
|
||||||
|
def delete_dangling_index(
|
||||||
|
self,
|
||||||
|
index_uuid: Any,
|
||||||
|
accept_data_loss: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def import_dangling_index(
|
||||||
|
self,
|
||||||
|
index_uuid: Any,
|
||||||
|
accept_data_loss: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def list_dangling_indices(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,125 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, MutableMapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class Data_FrameClient(NamespacedClient):
|
||||||
|
def delete_data_frame_transform(
|
||||||
|
self,
|
||||||
|
transform_id: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[MutableMapping[str, Any]] = ...,
|
||||||
|
headers: Optional[MutableMapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_data_frame_transform(
|
||||||
|
self,
|
||||||
|
transform_id: Optional[Any] = ...,
|
||||||
|
from_: Optional[Any] = ...,
|
||||||
|
size: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[MutableMapping[str, Any]] = ...,
|
||||||
|
headers: Optional[MutableMapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_data_frame_transform_stats(
|
||||||
|
self,
|
||||||
|
transform_id: Optional[Any],
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[MutableMapping[str, Any]] = ...,
|
||||||
|
headers: Optional[MutableMapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def preview_data_frame_transform(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[MutableMapping[str, Any]] = ...,
|
||||||
|
headers: Optional[MutableMapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def put_data_frame_transform(
|
||||||
|
self,
|
||||||
|
transform_id: Any,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[MutableMapping[str, Any]] = ...,
|
||||||
|
headers: Optional[MutableMapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def start_data_frame_transform(
|
||||||
|
self,
|
||||||
|
transform_id: Any,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[MutableMapping[str, Any]] = ...,
|
||||||
|
headers: Optional[MutableMapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def stop_data_frame_transform(
|
||||||
|
self,
|
||||||
|
transform_id: Any,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
wait_for_completion: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[MutableMapping[str, Any]] = ...,
|
||||||
|
headers: Optional[MutableMapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, MutableMapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class DeprecationClient(NamespacedClient):
|
||||||
|
def info(
|
||||||
|
self,
|
||||||
|
index: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[MutableMapping[str, Any]] = ...,
|
||||||
|
headers: Optional[MutableMapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,92 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class EnrichClient(NamespacedClient):
|
||||||
|
def delete_policy(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def execute_policy(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
wait_for_completion: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_policy(
|
||||||
|
self,
|
||||||
|
name: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def put_policy(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def stats(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class EqlClient(NamespacedClient):
|
||||||
|
def search(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
body: Any,
|
||||||
|
keep_alive: Optional[Any] = ...,
|
||||||
|
keep_on_completion: Optional[Any] = ...,
|
||||||
|
wait_for_completion_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def delete(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
keep_alive: Optional[Any] = ...,
|
||||||
|
wait_for_completion_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class GraphClient(NamespacedClient):
|
||||||
|
def explore(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
doc_type: Optional[Any] = ...,
|
||||||
|
routing: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,162 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class IlmClient(NamespacedClient):
|
||||||
|
def delete_lifecycle(
|
||||||
|
self,
|
||||||
|
policy: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def explain_lifecycle(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
only_errors: Optional[Any] = ...,
|
||||||
|
only_managed: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_lifecycle(
|
||||||
|
self,
|
||||||
|
policy: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_status(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def move_to_step(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def put_lifecycle(
|
||||||
|
self,
|
||||||
|
policy: Any,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def remove_policy(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def retry(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def start(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def stop(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -1288,23 +1288,18 @@ class IndicesClient(NamespacedClient):
|
|||||||
)
|
)
|
||||||
|
|
||||||
@query_params()
|
@query_params()
|
||||||
def create_data_stream(self, name, body=None, params=None, headers=None):
|
def create_data_stream(self, name, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Creates or updates a data stream
|
Creates a data stream
|
||||||
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/data-streams.html>`_
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/data-streams.html>`_
|
||||||
|
|
||||||
:arg name: The name of the data stream
|
:arg name: The name of the data stream
|
||||||
:arg body: The data stream definition
|
|
||||||
"""
|
"""
|
||||||
if name in SKIP_IN_PATH:
|
if name in SKIP_IN_PATH:
|
||||||
raise ValueError("Empty value passed for a required argument 'name'.")
|
raise ValueError("Empty value passed for a required argument 'name'.")
|
||||||
|
|
||||||
return self.transport.perform_request(
|
return self.transport.perform_request(
|
||||||
"PUT",
|
"PUT", _make_path("_data_stream", name), params=params, headers=headers
|
||||||
_make_path("_data_stream", name),
|
|
||||||
params=params,
|
|
||||||
headers=headers,
|
|
||||||
body=body,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
@query_params()
|
@query_params()
|
||||||
@@ -1478,7 +1473,7 @@ class IndicesClient(NamespacedClient):
|
|||||||
def resolve_index(self, name, params=None, headers=None):
|
def resolve_index(self, name, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Returns information about any matching indices, aliases, and data streams
|
Returns information about any matching indices, aliases, and data streams
|
||||||
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-index.html>`_
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-resolve-index-api.html>`_
|
||||||
|
|
||||||
:arg name: A comma-separated list of names or wildcard
|
:arg name: A comma-separated list of names or wildcard
|
||||||
expressions
|
expressions
|
||||||
@@ -1503,7 +1498,7 @@ class IndicesClient(NamespacedClient):
|
|||||||
def add_block(self, index, block, params=None, headers=None):
|
def add_block(self, index, block, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Adds a block to an index.
|
Adds a block to an index.
|
||||||
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-blocks.html>`_
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/index-modules-blocks.html>`_
|
||||||
|
|
||||||
:arg index: A comma separated list of indices to add a block to
|
:arg index: A comma separated list of indices to add a block to
|
||||||
:arg block: The block to add (one of read, write, read_only or
|
:arg block: The block to add (one of read, write, read_only or
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,98 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class IngestClient(NamespacedClient):
|
||||||
|
def get_pipeline(
|
||||||
|
self,
|
||||||
|
id: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def put_pipeline(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
body: Any,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def delete_pipeline(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def simulate(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
id: Optional[Any] = ...,
|
||||||
|
verbose: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def processor_grok(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,119 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class LicenseClient(NamespacedClient):
|
||||||
|
def delete(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get(
|
||||||
|
self,
|
||||||
|
accept_enterprise: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_basic_status(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_trial_status(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def post(
|
||||||
|
self,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
acknowledge: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def post_start_basic(
|
||||||
|
self,
|
||||||
|
acknowledge: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def post_start_trial(
|
||||||
|
self,
|
||||||
|
acknowledge: Optional[Any] = ...,
|
||||||
|
doc_type: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class MigrationClient(NamespacedClient):
|
||||||
|
def deprecations(
|
||||||
|
self,
|
||||||
|
index: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -19,7 +19,7 @@ from .utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH, _bu
|
|||||||
|
|
||||||
|
|
||||||
class MlClient(NamespacedClient):
|
class MlClient(NamespacedClient):
|
||||||
@query_params("allow_no_jobs", "force", "timeout")
|
@query_params("allow_no_jobs", "allow_no_match", "force", "timeout")
|
||||||
def close_job(self, job_id, body=None, params=None, headers=None):
|
def close_job(self, job_id, body=None, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Closes one or more anomaly detection jobs. A job can be opened and closed
|
Closes one or more anomaly detection jobs. A job can be opened and closed
|
||||||
@@ -31,6 +31,9 @@ class MlClient(NamespacedClient):
|
|||||||
:arg allow_no_jobs: Whether to ignore if a wildcard expression
|
:arg allow_no_jobs: Whether to ignore if a wildcard expression
|
||||||
matches no jobs. (This includes `_all` string or when no jobs have been
|
matches no jobs. (This includes `_all` string or when no jobs have been
|
||||||
specified)
|
specified)
|
||||||
|
:arg allow_no_match: Whether to ignore if a wildcard expression
|
||||||
|
matches no jobs. (This includes `_all` string or when no jobs have been
|
||||||
|
specified)
|
||||||
:arg force: True if the job should be forcefully closed
|
:arg force: True if the job should be forcefully closed
|
||||||
:arg timeout: Controls the time to wait until a job has closed.
|
:arg timeout: Controls the time to wait until a job has closed.
|
||||||
Default to 30 minutes
|
Default to 30 minutes
|
||||||
@@ -490,7 +493,7 @@ class MlClient(NamespacedClient):
|
|||||||
body=body,
|
body=body,
|
||||||
)
|
)
|
||||||
|
|
||||||
@query_params("allow_no_datafeeds")
|
@query_params("allow_no_datafeeds", "allow_no_match")
|
||||||
def get_datafeed_stats(self, datafeed_id=None, params=None, headers=None):
|
def get_datafeed_stats(self, datafeed_id=None, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Retrieves usage information for datafeeds.
|
Retrieves usage information for datafeeds.
|
||||||
@@ -500,6 +503,9 @@ class MlClient(NamespacedClient):
|
|||||||
:arg allow_no_datafeeds: Whether to ignore if a wildcard
|
:arg allow_no_datafeeds: Whether to ignore if a wildcard
|
||||||
expression matches no datafeeds. (This includes `_all` string or when no
|
expression matches no datafeeds. (This includes `_all` string or when no
|
||||||
datafeeds have been specified)
|
datafeeds have been specified)
|
||||||
|
:arg allow_no_match: Whether to ignore if a wildcard expression
|
||||||
|
matches no datafeeds. (This includes `_all` string or when no datafeeds
|
||||||
|
have been specified)
|
||||||
"""
|
"""
|
||||||
return self.transport.perform_request(
|
return self.transport.perform_request(
|
||||||
"GET",
|
"GET",
|
||||||
@@ -508,7 +514,7 @@ class MlClient(NamespacedClient):
|
|||||||
headers=headers,
|
headers=headers,
|
||||||
)
|
)
|
||||||
|
|
||||||
@query_params("allow_no_datafeeds")
|
@query_params("allow_no_datafeeds", "allow_no_match")
|
||||||
def get_datafeeds(self, datafeed_id=None, params=None, headers=None):
|
def get_datafeeds(self, datafeed_id=None, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Retrieves configuration information for datafeeds.
|
Retrieves configuration information for datafeeds.
|
||||||
@@ -518,6 +524,9 @@ class MlClient(NamespacedClient):
|
|||||||
:arg allow_no_datafeeds: Whether to ignore if a wildcard
|
:arg allow_no_datafeeds: Whether to ignore if a wildcard
|
||||||
expression matches no datafeeds. (This includes `_all` string or when no
|
expression matches no datafeeds. (This includes `_all` string or when no
|
||||||
datafeeds have been specified)
|
datafeeds have been specified)
|
||||||
|
:arg allow_no_match: Whether to ignore if a wildcard expression
|
||||||
|
matches no datafeeds. (This includes `_all` string or when no datafeeds
|
||||||
|
have been specified)
|
||||||
"""
|
"""
|
||||||
return self.transport.perform_request(
|
return self.transport.perform_request(
|
||||||
"GET",
|
"GET",
|
||||||
@@ -590,7 +599,7 @@ class MlClient(NamespacedClient):
|
|||||||
body=body,
|
body=body,
|
||||||
)
|
)
|
||||||
|
|
||||||
@query_params("allow_no_jobs")
|
@query_params("allow_no_jobs", "allow_no_match")
|
||||||
def get_job_stats(self, job_id=None, params=None, headers=None):
|
def get_job_stats(self, job_id=None, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Retrieves usage information for anomaly detection jobs.
|
Retrieves usage information for anomaly detection jobs.
|
||||||
@@ -600,6 +609,9 @@ class MlClient(NamespacedClient):
|
|||||||
:arg allow_no_jobs: Whether to ignore if a wildcard expression
|
:arg allow_no_jobs: Whether to ignore if a wildcard expression
|
||||||
matches no jobs. (This includes `_all` string or when no jobs have been
|
matches no jobs. (This includes `_all` string or when no jobs have been
|
||||||
specified)
|
specified)
|
||||||
|
:arg allow_no_match: Whether to ignore if a wildcard expression
|
||||||
|
matches no jobs. (This includes `_all` string or when no jobs have been
|
||||||
|
specified)
|
||||||
"""
|
"""
|
||||||
return self.transport.perform_request(
|
return self.transport.perform_request(
|
||||||
"GET",
|
"GET",
|
||||||
@@ -608,7 +620,7 @@ class MlClient(NamespacedClient):
|
|||||||
headers=headers,
|
headers=headers,
|
||||||
)
|
)
|
||||||
|
|
||||||
@query_params("allow_no_jobs")
|
@query_params("allow_no_jobs", "allow_no_match")
|
||||||
def get_jobs(self, job_id=None, params=None, headers=None):
|
def get_jobs(self, job_id=None, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Retrieves configuration information for anomaly detection jobs.
|
Retrieves configuration information for anomaly detection jobs.
|
||||||
@@ -618,6 +630,9 @@ class MlClient(NamespacedClient):
|
|||||||
:arg allow_no_jobs: Whether to ignore if a wildcard expression
|
:arg allow_no_jobs: Whether to ignore if a wildcard expression
|
||||||
matches no jobs. (This includes `_all` string or when no jobs have been
|
matches no jobs. (This includes `_all` string or when no jobs have been
|
||||||
specified)
|
specified)
|
||||||
|
:arg allow_no_match: Whether to ignore if a wildcard expression
|
||||||
|
matches no jobs. (This includes `_all` string or when no jobs have been
|
||||||
|
specified)
|
||||||
"""
|
"""
|
||||||
return self.transport.perform_request(
|
return self.transport.perform_request(
|
||||||
"GET",
|
"GET",
|
||||||
@@ -665,6 +680,7 @@ class MlClient(NamespacedClient):
|
|||||||
|
|
||||||
@query_params(
|
@query_params(
|
||||||
"allow_no_jobs",
|
"allow_no_jobs",
|
||||||
|
"allow_no_match",
|
||||||
"bucket_span",
|
"bucket_span",
|
||||||
"end",
|
"end",
|
||||||
"exclude_interim",
|
"exclude_interim",
|
||||||
@@ -685,6 +701,9 @@ class MlClient(NamespacedClient):
|
|||||||
:arg allow_no_jobs: Whether to ignore if a wildcard expression
|
:arg allow_no_jobs: Whether to ignore if a wildcard expression
|
||||||
matches no jobs. (This includes `_all` string or when no jobs have been
|
matches no jobs. (This includes `_all` string or when no jobs have been
|
||||||
specified)
|
specified)
|
||||||
|
:arg allow_no_match: Whether to ignore if a wildcard expression
|
||||||
|
matches no jobs. (This includes `_all` string or when no jobs have been
|
||||||
|
specified)
|
||||||
:arg bucket_span: The span of the overall buckets. Defaults to
|
:arg bucket_span: The span of the overall buckets. Defaults to
|
||||||
the longest job bucket_span
|
the longest job bucket_span
|
||||||
:arg end: Returns overall buckets with timestamps earlier than
|
:arg end: Returns overall buckets with timestamps earlier than
|
||||||
@@ -1040,16 +1059,20 @@ class MlClient(NamespacedClient):
|
|||||||
body=body,
|
body=body,
|
||||||
)
|
)
|
||||||
|
|
||||||
@query_params("allow_no_datafeeds", "force", "timeout")
|
@query_params("allow_no_datafeeds", "allow_no_match", "force", "timeout")
|
||||||
def stop_datafeed(self, datafeed_id, params=None, headers=None):
|
def stop_datafeed(self, datafeed_id, body=None, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Stops one or more datafeeds.
|
Stops one or more datafeeds.
|
||||||
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/ml-stop-datafeed.html>`_
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/ml-stop-datafeed.html>`_
|
||||||
|
|
||||||
:arg datafeed_id: The ID of the datafeed to stop
|
:arg datafeed_id: The ID of the datafeed to stop
|
||||||
|
:arg body: The URL params optionally sent in the body
|
||||||
:arg allow_no_datafeeds: Whether to ignore if a wildcard
|
:arg allow_no_datafeeds: Whether to ignore if a wildcard
|
||||||
expression matches no datafeeds. (This includes `_all` string or when no
|
expression matches no datafeeds. (This includes `_all` string or when no
|
||||||
datafeeds have been specified)
|
datafeeds have been specified)
|
||||||
|
:arg allow_no_match: Whether to ignore if a wildcard expression
|
||||||
|
matches no datafeeds. (This includes `_all` string or when no datafeeds
|
||||||
|
have been specified)
|
||||||
:arg force: True if the datafeed should be forcefully stopped.
|
:arg force: True if the datafeed should be forcefully stopped.
|
||||||
:arg timeout: Controls the time to wait until a datafeed has
|
:arg timeout: Controls the time to wait until a datafeed has
|
||||||
stopped. Default to 20 seconds
|
stopped. Default to 20 seconds
|
||||||
@@ -1064,6 +1087,7 @@ class MlClient(NamespacedClient):
|
|||||||
_make_path("_ml", "datafeeds", datafeed_id, "_stop"),
|
_make_path("_ml", "datafeeds", datafeed_id, "_stop"),
|
||||||
params=params,
|
params=params,
|
||||||
headers=headers,
|
headers=headers,
|
||||||
|
body=body,
|
||||||
)
|
)
|
||||||
|
|
||||||
@query_params(
|
@query_params(
|
||||||
@@ -1413,6 +1437,7 @@ class MlClient(NamespacedClient):
|
|||||||
"decompress_definition",
|
"decompress_definition",
|
||||||
"for_export",
|
"for_export",
|
||||||
"from_",
|
"from_",
|
||||||
|
"include",
|
||||||
"include_model_definition",
|
"include_model_definition",
|
||||||
"size",
|
"size",
|
||||||
"tags",
|
"tags",
|
||||||
@@ -1432,6 +1457,9 @@ class MlClient(NamespacedClient):
|
|||||||
:arg for_export: Omits fields that are illegal to set on model
|
:arg for_export: Omits fields that are illegal to set on model
|
||||||
PUT
|
PUT
|
||||||
:arg from_: skips a number of trained models
|
:arg from_: skips a number of trained models
|
||||||
|
:arg include: A comma-separate list of fields to optionally
|
||||||
|
include. Valid options are 'definition' and 'total_feature_importance'.
|
||||||
|
Default is none.
|
||||||
:arg include_model_definition: Should the full model definition
|
:arg include_model_definition: Should the full model definition
|
||||||
be included in the results. These definitions can be large. So be
|
be included in the results. These definitions can be large. So be
|
||||||
cautious when including them. Defaults to false.
|
cautious when including them. Defaults to false.
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,39 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class MonitoringClient(NamespacedClient):
|
||||||
|
def bulk(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
doc_type: Optional[Any] = ...,
|
||||||
|
interval: Optional[Any] = ...,
|
||||||
|
system_api_version: Optional[Any] = ...,
|
||||||
|
system_id: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,114 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class NodesClient(NamespacedClient):
|
||||||
|
def reload_secure_settings(
|
||||||
|
self,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
node_id: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def info(
|
||||||
|
self,
|
||||||
|
node_id: Optional[Any] = ...,
|
||||||
|
metric: Optional[Any] = ...,
|
||||||
|
flat_settings: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def stats(
|
||||||
|
self,
|
||||||
|
node_id: Optional[Any] = ...,
|
||||||
|
metric: Optional[Any] = ...,
|
||||||
|
index_metric: Optional[Any] = ...,
|
||||||
|
completion_fields: Optional[Any] = ...,
|
||||||
|
fielddata_fields: Optional[Any] = ...,
|
||||||
|
fields: Optional[Any] = ...,
|
||||||
|
groups: Optional[Any] = ...,
|
||||||
|
include_segment_file_sizes: Optional[Any] = ...,
|
||||||
|
level: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
types: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def hot_threads(
|
||||||
|
self,
|
||||||
|
node_id: Optional[Any] = ...,
|
||||||
|
doc_type: Optional[Any] = ...,
|
||||||
|
ignore_idle_threads: Optional[Any] = ...,
|
||||||
|
interval: Optional[Any] = ...,
|
||||||
|
snapshots: Optional[Any] = ...,
|
||||||
|
threads: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def usage(
|
||||||
|
self,
|
||||||
|
node_id: Optional[Any] = ...,
|
||||||
|
metric: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class RemoteClient(NamespacedClient):
|
||||||
|
def info(
|
||||||
|
self,
|
||||||
|
timeout: Optional[Any] = None,
|
||||||
|
pretty: Optional[bool] = None,
|
||||||
|
human: Optional[bool] = None,
|
||||||
|
error_trace: Optional[bool] = None,
|
||||||
|
format: Optional[str] = None,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = None,
|
||||||
|
params: Optional[Mapping[str, Any]] = None,
|
||||||
|
headers: Optional[Mapping[str, str]] = None,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,140 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class RollupClient(NamespacedClient):
|
||||||
|
def delete_job(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_jobs(
|
||||||
|
self,
|
||||||
|
id: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_rollup_caps(
|
||||||
|
self,
|
||||||
|
id: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_rollup_index_caps(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def put_job(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def rollup_search(
|
||||||
|
self,
|
||||||
|
index: Any,
|
||||||
|
body: Any,
|
||||||
|
doc_type: Optional[Any] = ...,
|
||||||
|
rest_total_hits_as_int: Optional[Any] = ...,
|
||||||
|
typed_keys: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def start_job(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def stop_job(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
wait_for_completion: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -23,7 +23,7 @@ class SearchableSnapshotsClient(NamespacedClient):
|
|||||||
def clear_cache(self, index=None, params=None, headers=None):
|
def clear_cache(self, index=None, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Clear the cache of searchable snapshots.
|
Clear the cache of searchable snapshots.
|
||||||
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/searchable-snapshots-api-clear-cache.html>`_
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/searchable-snapshots-apis.html>`_
|
||||||
|
|
||||||
:arg index: A comma-separated list of index name to limit the
|
:arg index: A comma-separated list of index name to limit the
|
||||||
operation
|
operation
|
||||||
@@ -74,8 +74,8 @@ class SearchableSnapshotsClient(NamespacedClient):
|
|||||||
@query_params()
|
@query_params()
|
||||||
def repository_stats(self, repository, params=None, headers=None):
|
def repository_stats(self, repository, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Retrieve usage statistics about a snapshot repository.
|
DEPRECATED: This API is replaced by the Repositories Metering API.
|
||||||
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/searchable-snapshots-repository-stats.html>`_
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/searchable-snapshots-apis.html>`_
|
||||||
|
|
||||||
:arg repository: The repository for which to get the stats for
|
:arg repository: The repository for which to get the stats for
|
||||||
"""
|
"""
|
||||||
@@ -93,7 +93,7 @@ class SearchableSnapshotsClient(NamespacedClient):
|
|||||||
def stats(self, index=None, params=None, headers=None):
|
def stats(self, index=None, params=None, headers=None):
|
||||||
"""
|
"""
|
||||||
Retrieve various statistics about searchable snapshots.
|
Retrieve various statistics about searchable snapshots.
|
||||||
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/searchable-snapshots-api-stats.html>`_
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/searchable-snapshots-apis.html>`_
|
||||||
|
|
||||||
:arg index: A comma-separated list of index names
|
:arg index: A comma-separated list of index names
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -0,0 +1,84 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class SearchableSnapshotsClient(NamespacedClient):
|
||||||
|
def clear_cache(
|
||||||
|
self,
|
||||||
|
index: Optional[Any] = ...,
|
||||||
|
allow_no_indices: Optional[Any] = ...,
|
||||||
|
expand_wildcards: Optional[Any] = ...,
|
||||||
|
ignore_unavailable: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def mount(
|
||||||
|
self,
|
||||||
|
repository: Any,
|
||||||
|
snapshot: Any,
|
||||||
|
body: Any,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
wait_for_completion: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def repository_stats(
|
||||||
|
self,
|
||||||
|
repository: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def stats(
|
||||||
|
self,
|
||||||
|
index: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,420 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class SecurityClient(NamespacedClient):
|
||||||
|
def authenticate(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def change_password(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
username: Optional[Any] = ...,
|
||||||
|
refresh: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def clear_cached_realms(
|
||||||
|
self,
|
||||||
|
realms: Any,
|
||||||
|
usernames: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def clear_cached_roles(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def create_api_key(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
refresh: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def delete_privileges(
|
||||||
|
self,
|
||||||
|
application: Any,
|
||||||
|
name: Any,
|
||||||
|
refresh: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def delete_role(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
refresh: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def delete_role_mapping(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
refresh: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def delete_user(
|
||||||
|
self,
|
||||||
|
username: Any,
|
||||||
|
refresh: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def disable_user(
|
||||||
|
self,
|
||||||
|
username: Any,
|
||||||
|
refresh: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def enable_user(
|
||||||
|
self,
|
||||||
|
username: Any,
|
||||||
|
refresh: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_api_key(
|
||||||
|
self,
|
||||||
|
id: Optional[Any] = ...,
|
||||||
|
name: Optional[Any] = ...,
|
||||||
|
owner: Optional[Any] = ...,
|
||||||
|
realm_name: Optional[Any] = ...,
|
||||||
|
username: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_privileges(
|
||||||
|
self,
|
||||||
|
application: Optional[Any] = ...,
|
||||||
|
name: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_role(
|
||||||
|
self,
|
||||||
|
name: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_role_mapping(
|
||||||
|
self,
|
||||||
|
name: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_token(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_user(
|
||||||
|
self,
|
||||||
|
username: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_user_privileges(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def has_privileges(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
user: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def invalidate_api_key(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def invalidate_token(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def put_privileges(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
refresh: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def put_role(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
body: Any,
|
||||||
|
refresh: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def put_role_mapping(
|
||||||
|
self,
|
||||||
|
name: Any,
|
||||||
|
body: Any,
|
||||||
|
refresh: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def put_user(
|
||||||
|
self,
|
||||||
|
username: Any,
|
||||||
|
body: Any,
|
||||||
|
refresh: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_builtin_privileges(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def clear_cached_privileges(
|
||||||
|
self,
|
||||||
|
application: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,143 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class SlmClient(NamespacedClient):
|
||||||
|
def delete_lifecycle(
|
||||||
|
self,
|
||||||
|
policy_id: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def execute_lifecycle(
|
||||||
|
self,
|
||||||
|
policy_id: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def execute_retention(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_lifecycle(
|
||||||
|
self,
|
||||||
|
policy_id: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_stats(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def put_lifecycle(
|
||||||
|
self,
|
||||||
|
policy_id: Any,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_status(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def start(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def stop(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,190 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class SnapshotClient(NamespacedClient):
|
||||||
|
def create(
|
||||||
|
self,
|
||||||
|
repository: Any,
|
||||||
|
snapshot: Any,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
wait_for_completion: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def delete(
|
||||||
|
self,
|
||||||
|
repository: Any,
|
||||||
|
snapshot: Any,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get(
|
||||||
|
self,
|
||||||
|
repository: Any,
|
||||||
|
snapshot: Any,
|
||||||
|
ignore_unavailable: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
verbose: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def delete_repository(
|
||||||
|
self,
|
||||||
|
repository: Any,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_repository(
|
||||||
|
self,
|
||||||
|
repository: Optional[Any] = ...,
|
||||||
|
local: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def create_repository(
|
||||||
|
self,
|
||||||
|
repository: Any,
|
||||||
|
body: Any,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
verify: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def restore(
|
||||||
|
self,
|
||||||
|
repository: Any,
|
||||||
|
snapshot: Any,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
wait_for_completion: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def status(
|
||||||
|
self,
|
||||||
|
repository: Optional[Any] = ...,
|
||||||
|
snapshot: Optional[Any] = ...,
|
||||||
|
ignore_unavailable: Optional[Any] = ...,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def verify_repository(
|
||||||
|
self,
|
||||||
|
repository: Any,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def cleanup_repository(
|
||||||
|
self,
|
||||||
|
repository: Any,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class SqlClient(NamespacedClient):
|
||||||
|
def clear_cursor(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def query(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
format: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def translate(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class SslClient(NamespacedClient):
|
||||||
|
def certificates(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,75 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class TasksClient(NamespacedClient):
|
||||||
|
def list(
|
||||||
|
self,
|
||||||
|
actions: Optional[Any] = ...,
|
||||||
|
detailed: Optional[Any] = ...,
|
||||||
|
group_by: Optional[Any] = ...,
|
||||||
|
nodes: Optional[Any] = ...,
|
||||||
|
parent_task_id: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
wait_for_completion: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def cancel(
|
||||||
|
self,
|
||||||
|
task_id: Optional[Any] = ...,
|
||||||
|
actions: Optional[Any] = ...,
|
||||||
|
nodes: Optional[Any] = ...,
|
||||||
|
parent_task_id: Optional[Any] = ...,
|
||||||
|
wait_for_completion: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get(
|
||||||
|
self,
|
||||||
|
task_id: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
wait_for_completion: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,150 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class TransformClient(NamespacedClient):
|
||||||
|
def delete_transform(
|
||||||
|
self,
|
||||||
|
transform_id: Any,
|
||||||
|
force: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_transform(
|
||||||
|
self,
|
||||||
|
transform_id: Optional[Any] = ...,
|
||||||
|
allow_no_match: Optional[Any] = ...,
|
||||||
|
from_: Optional[Any] = ...,
|
||||||
|
size: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_transform_stats(
|
||||||
|
self,
|
||||||
|
transform_id: Any,
|
||||||
|
allow_no_match: Optional[Any] = ...,
|
||||||
|
from_: Optional[Any] = ...,
|
||||||
|
size: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def preview_transform(
|
||||||
|
self,
|
||||||
|
body: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def put_transform(
|
||||||
|
self,
|
||||||
|
transform_id: Any,
|
||||||
|
body: Any,
|
||||||
|
defer_validation: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def start_transform(
|
||||||
|
self,
|
||||||
|
transform_id: Any,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def stop_transform(
|
||||||
|
self,
|
||||||
|
transform_id: Any,
|
||||||
|
allow_no_match: Optional[Any] = ...,
|
||||||
|
force: Optional[Any] = ...,
|
||||||
|
timeout: Optional[Any] = ...,
|
||||||
|
wait_for_checkpoint: Optional[Any] = ...,
|
||||||
|
wait_for_completion: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def update_transform(
|
||||||
|
self,
|
||||||
|
transform_id: Any,
|
||||||
|
body: Any,
|
||||||
|
defer_validation: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from typing import (
|
||||||
|
Collection,
|
||||||
|
Any,
|
||||||
|
Optional,
|
||||||
|
Union,
|
||||||
|
Dict,
|
||||||
|
List,
|
||||||
|
Tuple,
|
||||||
|
Callable,
|
||||||
|
TypeVar,
|
||||||
|
)
|
||||||
|
from ..client import Elasticsearch
|
||||||
|
from ..serializer import Serializer
|
||||||
|
from ..transport import Transport
|
||||||
|
|
||||||
|
T = TypeVar("T")
|
||||||
|
SKIP_IN_PATH: Collection[Any]
|
||||||
|
|
||||||
|
def _normalize_hosts(
|
||||||
|
hosts: Optional[Union[str, Collection[Union[str, Dict[str, Any]]]]]
|
||||||
|
) -> List[Dict[str, Any]]: ...
|
||||||
|
def _escape(value: Any) -> str: ...
|
||||||
|
def _make_path(*parts: Any) -> str: ...
|
||||||
|
|
||||||
|
GLOBAL_PARAMS: Tuple[str, ...]
|
||||||
|
|
||||||
|
def query_params(
|
||||||
|
*es_query_params: str,
|
||||||
|
) -> Callable[[Callable[..., T]], Callable[..., T]]: ...
|
||||||
|
def _bulk_body(
|
||||||
|
serializer: Serializer, body: Union[str, bytes, Collection[Any]]
|
||||||
|
) -> str: ...
|
||||||
|
|
||||||
|
class NamespacedClient:
|
||||||
|
client: Elasticsearch
|
||||||
|
def __init__(self, client: Elasticsearch) -> None: ...
|
||||||
|
@property
|
||||||
|
def transport(self) -> Transport: ...
|
||||||
@@ -0,0 +1,168 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class WatcherClient(NamespacedClient):
|
||||||
|
def ack_watch(
|
||||||
|
self,
|
||||||
|
watch_id: Any,
|
||||||
|
action_id: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def activate_watch(
|
||||||
|
self,
|
||||||
|
watch_id: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def deactivate_watch(
|
||||||
|
self,
|
||||||
|
watch_id: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def delete_watch(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def execute_watch(
|
||||||
|
self,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
id: Optional[Any] = ...,
|
||||||
|
debug: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def get_watch(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def put_watch(
|
||||||
|
self,
|
||||||
|
id: Any,
|
||||||
|
body: Optional[Any] = ...,
|
||||||
|
active: Optional[Any] = ...,
|
||||||
|
if_primary_term: Optional[Any] = ...,
|
||||||
|
if_seq_no: Optional[Any] = ...,
|
||||||
|
version: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def start(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def stats(
|
||||||
|
self,
|
||||||
|
metric: Optional[Any] = ...,
|
||||||
|
emit_stacktraces: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def stop(
|
||||||
|
self,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
||||||
|
# license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright
|
||||||
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
||||||
|
# the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from typing import Any, Mapping, Optional, Union, Collection
|
||||||
|
from .utils import NamespacedClient
|
||||||
|
|
||||||
|
class XPackClient(NamespacedClient):
|
||||||
|
def __getattr__(self, attr_name: str) -> Any:
|
||||||
|
return getattr(self.client, attr_name)
|
||||||
|
# AUTO-GENERATED-API-DEFINITIONS #
|
||||||
|
def info(
|
||||||
|
self,
|
||||||
|
accept_enterprise: Optional[Any] = ...,
|
||||||
|
categories: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
|
def usage(
|
||||||
|
self,
|
||||||
|
master_timeout: Optional[Any] = ...,
|
||||||
|
pretty: Optional[bool] = ...,
|
||||||
|
human: Optional[bool] = ...,
|
||||||
|
error_trace: Optional[bool] = ...,
|
||||||
|
format: Optional[str] = ...,
|
||||||
|
filter_path: Optional[Union[str, Collection[str]]] = ...,
|
||||||
|
request_timeout: Optional[Union[int, float]] = ...,
|
||||||
|
ignore: Optional[Union[int, Collection[int]]] = ...,
|
||||||
|
opaque_id: Optional[str] = ...,
|
||||||
|
params: Optional[Mapping[str, Any]] = ...,
|
||||||
|
headers: Optional[Mapping[str, str]] = ...,
|
||||||
|
) -> Any: ...
|
||||||
Reference in New Issue
Block a user