diff --git a/elasticsearch/_async/client/__init__.py b/elasticsearch/_async/client/__init__.py index 0314f5ed..0f1d9a9a 100644 --- a/elasticsearch/_async/client/__init__.py +++ b/elasticsearch/_async/client/__init__.py @@ -461,7 +461,7 @@ class AsyncElasticsearch(object): async def clear_scroll(self, body=None, scroll_id=None, params=None, headers=None): """ Explicitly clears the search context for a scroll. - ``_ + ``_ :arg body: A comma-separated list of scroll IDs to clear if none was specified via the scroll_id parameter @@ -2039,3 +2039,40 @@ class AsyncElasticsearch(object): return await self.transport.perform_request( "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 + ``_ + + :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 + ``_ + + :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 + ) diff --git a/elasticsearch/_async/client/__init__.pyi b/elasticsearch/_async/client/__init__.pyi new file mode 100644 index 00000000..c9564758 --- /dev/null +++ b/elasticsearch/_async/client/__init__.pyi @@ -0,0 +1,1025 @@ +# -*- coding: utf-8 -*- +# 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 +import logging +from typing import Any, Mapping, Optional, Type, Union, Collection + +from ..transport import AsyncTransport + +from .async_search import AsyncSearchClient +from .autoscaling import AutoscalingClient +from .cat import CatClient +from .cluster import ClusterClient +from .dangling_indices import DanglingIndicesClient +from .indices import IndicesClient +from .ingest import IngestClient +from .nodes import NodesClient +from .remote import RemoteClient +from .snapshot import SnapshotClient +from .tasks import TasksClient + +# xpack APIs +from .xpack import XPackClient +from .ccr import CcrClient +from .enrich import EnrichClient +from .eql import EqlClient +from .graph import GraphClient +from .ilm import IlmClient +from .license import LicenseClient +from .migration import MigrationClient +from .ml import MlClient +from .monitoring import MonitoringClient +from .rollup import RollupClient +from .searchable_snapshots import SearchableSnapshotsClient +from .security import SecurityClient +from .slm import SlmClient +from .sql import SqlClient +from .ssl import SslClient +from .transform import TransformClient +from .watcher import WatcherClient + +logger: logging.Logger + +class AsyncElasticsearch(object): + transport: AsyncTransport + + async_search: AsyncSearchClient + autoscaling: AutoscalingClient + cat: CatClient + cluster: ClusterClient + indices: IndicesClient + ingest: IngestClient + nodes: NodesClient + remote: RemoteClient + snapshot: SnapshotClient + tasks: TasksClient + + xpack: XPackClient + ccr: CcrClient + dangling_indices: DanglingIndicesClient + enrich: EnrichClient + eql: EqlClient + graph: GraphClient + ilm: IlmClient + license: LicenseClient + migration: MigrationClient + ml: MlClient + monitoring: MonitoringClient + rollup: RollupClient + searchable_snapshots: SearchableSnapshotsClient + security: SecurityClient + slm: SlmClient + sql: SqlClient + ssl: SslClient + transform: TransformClient + watcher: WatcherClient + def __init__( + self, + hosts: Any = ..., + transport_class: Type[AsyncTransport] = ..., + **kwargs: Any + ) -> None: ... + def __repr__(self) -> str: ... + async def __aenter__(self) -> "AsyncElasticsearch": ... + async def __aexit__(self, *_: Any) -> None: ... + async def close(self) -> None: ... + # AUTO-GENERATED-API-DEFINITIONS # + async def ping( + 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]] = ..., + ) -> bool: ... + async def 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 create( + self, + index: Any, + id: Any, + body: Any, + doc_type: Optional[Any] = ..., + pipeline: Optional[Any] = ..., + refresh: Optional[Any] = ..., + routing: Optional[Any] = ..., + timeout: Optional[Any] = ..., + version: Optional[Any] = ..., + version_type: Optional[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 index( + self, + index: Any, + body: Any, + doc_type: Optional[Any] = ..., + id: Optional[Any] = ..., + if_primary_term: Optional[Any] = ..., + if_seq_no: Optional[Any] = ..., + op_type: Optional[Any] = ..., + pipeline: Optional[Any] = ..., + refresh: Optional[Any] = ..., + require_alias: Optional[Any] = ..., + routing: Optional[Any] = ..., + timeout: Optional[Any] = ..., + version: Optional[Any] = ..., + version_type: Optional[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 bulk( + self, + body: Any, + index: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + _source: Optional[Any] = ..., + _source_excludes: Optional[Any] = ..., + _source_includes: Optional[Any] = ..., + pipeline: Optional[Any] = ..., + refresh: Optional[Any] = ..., + require_alias: Optional[Any] = ..., + routing: Optional[Any] = ..., + timeout: Optional[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 clear_scroll( + self, + body: Optional[Any] = ..., + scroll_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 count( + self, + body: Optional[Any] = ..., + index: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + analyze_wildcard: Optional[Any] = ..., + analyzer: Optional[Any] = ..., + default_operator: Optional[Any] = ..., + df: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_throttled: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + lenient: Optional[Any] = ..., + min_score: Optional[Any] = ..., + preference: Optional[Any] = ..., + q: Optional[Any] = ..., + routing: Optional[Any] = ..., + terminate_after: 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, + index: Any, + id: Any, + doc_type: Optional[Any] = ..., + if_primary_term: Optional[Any] = ..., + if_seq_no: Optional[Any] = ..., + refresh: Optional[Any] = ..., + routing: Optional[Any] = ..., + timeout: Optional[Any] = ..., + version: Optional[Any] = ..., + version_type: Optional[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 delete_by_query( + self, + index: Any, + body: Any, + doc_type: Optional[Any] = ..., + _source: Optional[Any] = ..., + _source_excludes: Optional[Any] = ..., + _source_includes: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + analyze_wildcard: Optional[Any] = ..., + analyzer: Optional[Any] = ..., + conflicts: Optional[Any] = ..., + default_operator: Optional[Any] = ..., + df: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + from_: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + lenient: Optional[Any] = ..., + max_docs: Optional[Any] = ..., + preference: Optional[Any] = ..., + q: Optional[Any] = ..., + refresh: Optional[Any] = ..., + request_cache: Optional[Any] = ..., + requests_per_second: Optional[Any] = ..., + routing: Optional[Any] = ..., + scroll: Optional[Any] = ..., + scroll_size: Optional[Any] = ..., + search_timeout: Optional[Any] = ..., + search_type: Optional[Any] = ..., + size: Optional[Any] = ..., + slices: Optional[Any] = ..., + sort: Optional[Any] = ..., + stats: Optional[Any] = ..., + terminate_after: Optional[Any] = ..., + timeout: Optional[Any] = ..., + version: Optional[Any] = ..., + wait_for_active_shards: 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_by_query_rethrottle( + self, + task_id: Any, + requests_per_second: 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_script( + 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 exists( + self, + index: Any, + id: Any, + doc_type: Optional[Any] = ..., + _source: Optional[Any] = ..., + _source_excludes: Optional[Any] = ..., + _source_includes: Optional[Any] = ..., + preference: Optional[Any] = ..., + realtime: Optional[Any] = ..., + refresh: Optional[Any] = ..., + routing: Optional[Any] = ..., + stored_fields: Optional[Any] = ..., + version: Optional[Any] = ..., + version_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]] = ..., + ) -> bool: ... + async def exists_source( + self, + index: Any, + id: Any, + doc_type: Optional[Any] = ..., + _source: Optional[Any] = ..., + _source_excludes: Optional[Any] = ..., + _source_includes: Optional[Any] = ..., + preference: Optional[Any] = ..., + realtime: Optional[Any] = ..., + refresh: Optional[Any] = ..., + routing: Optional[Any] = ..., + version: Optional[Any] = ..., + version_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]] = ..., + ) -> bool: ... + async def explain( + self, + index: Any, + id: Any, + body: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + _source: Optional[Any] = ..., + _source_excludes: Optional[Any] = ..., + _source_includes: Optional[Any] = ..., + analyze_wildcard: Optional[Any] = ..., + analyzer: Optional[Any] = ..., + default_operator: Optional[Any] = ..., + df: Optional[Any] = ..., + lenient: Optional[Any] = ..., + preference: Optional[Any] = ..., + q: Optional[Any] = ..., + routing: Optional[Any] = ..., + stored_fields: 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 field_caps( + self, + body: Optional[Any] = ..., + index: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + fields: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + include_unmapped: 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, + index: Any, + id: Any, + doc_type: Optional[Any] = ..., + _source: Optional[Any] = ..., + _source_excludes: Optional[Any] = ..., + _source_includes: Optional[Any] = ..., + preference: Optional[Any] = ..., + realtime: Optional[Any] = ..., + refresh: Optional[Any] = ..., + routing: Optional[Any] = ..., + stored_fields: Optional[Any] = ..., + version: Optional[Any] = ..., + version_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: ... + async def get_script( + self, + id: 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_source( + self, + index: Any, + id: Any, + doc_type: Optional[Any] = ..., + _source: Optional[Any] = ..., + _source_excludes: Optional[Any] = ..., + _source_includes: Optional[Any] = ..., + preference: Optional[Any] = ..., + realtime: Optional[Any] = ..., + refresh: Optional[Any] = ..., + routing: Optional[Any] = ..., + version: Optional[Any] = ..., + version_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: ... + async def mget( + self, + body: Any, + index: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + _source: Optional[Any] = ..., + _source_excludes: Optional[Any] = ..., + _source_includes: Optional[Any] = ..., + preference: Optional[Any] = ..., + realtime: Optional[Any] = ..., + refresh: Optional[Any] = ..., + routing: Optional[Any] = ..., + stored_fields: 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 msearch( + self, + body: Any, + index: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + ccs_minimize_roundtrips: Optional[Any] = ..., + max_concurrent_searches: Optional[Any] = ..., + max_concurrent_shard_requests: Optional[Any] = ..., + pre_filter_shard_size: Optional[Any] = ..., + rest_total_hits_as_int: Optional[Any] = ..., + search_type: 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 msearch_template( + self, + body: Any, + index: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + ccs_minimize_roundtrips: Optional[Any] = ..., + max_concurrent_searches: Optional[Any] = ..., + rest_total_hits_as_int: Optional[Any] = ..., + search_type: 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 mtermvectors( + self, + body: Optional[Any] = ..., + index: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + field_statistics: Optional[Any] = ..., + fields: Optional[Any] = ..., + ids: Optional[Any] = ..., + offsets: Optional[Any] = ..., + payloads: Optional[Any] = ..., + positions: Optional[Any] = ..., + preference: Optional[Any] = ..., + realtime: Optional[Any] = ..., + routing: Optional[Any] = ..., + term_statistics: Optional[Any] = ..., + version: Optional[Any] = ..., + version_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: ... + async def put_script( + self, + id: Any, + body: Any, + context: 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 rank_eval( + self, + body: Any, + index: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + search_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: ... + async def reindex( + self, + body: Any, + max_docs: Optional[Any] = ..., + refresh: Optional[Any] = ..., + requests_per_second: Optional[Any] = ..., + scroll: Optional[Any] = ..., + slices: Optional[Any] = ..., + timeout: Optional[Any] = ..., + wait_for_active_shards: 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 reindex_rethrottle( + self, + task_id: Any, + requests_per_second: 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 render_search_template( + self, + body: Optional[Any] = ..., + 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 scripts_painless_execute( + self, + 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 scroll( + self, + body: Optional[Any] = ..., + scroll_id: Optional[Any] = ..., + rest_total_hits_as_int: Optional[Any] = ..., + scroll: 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 search( + self, + body: Optional[Any] = ..., + index: Optional[Any] = ..., + doc_type: 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] = ..., + ccs_minimize_roundtrips: 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] = ..., + lenient: Optional[Any] = ..., + max_concurrent_shard_requests: Optional[Any] = ..., + pre_filter_shard_size: Optional[Any] = ..., + preference: Optional[Any] = ..., + q: Optional[Any] = ..., + request_cache: Optional[Any] = ..., + rest_total_hits_as_int: Optional[Any] = ..., + routing: Optional[Any] = ..., + scroll: 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] = ..., + pretty: Optional[bool] = ..., + human: Optional[bool] = ..., + error_trace: Optional[bool] = ..., + format: Optional[str] = ..., + filter_path: Optional[Union[str, Collection[str]]] = ..., + request_timeout: Optional[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 search_shards( + self, + index: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + local: Optional[Any] = ..., + preference: Optional[Any] = ..., + routing: 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 search_template( + self, + body: Any, + index: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + ccs_minimize_roundtrips: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + explain: Optional[Any] = ..., + ignore_throttled: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + preference: Optional[Any] = ..., + profile: Optional[Any] = ..., + rest_total_hits_as_int: Optional[Any] = ..., + routing: Optional[Any] = ..., + scroll: Optional[Any] = ..., + search_type: 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 termvectors( + self, + index: Any, + body: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + id: Optional[Any] = ..., + field_statistics: Optional[Any] = ..., + fields: Optional[Any] = ..., + offsets: Optional[Any] = ..., + payloads: Optional[Any] = ..., + positions: Optional[Any] = ..., + preference: Optional[Any] = ..., + realtime: Optional[Any] = ..., + routing: Optional[Any] = ..., + term_statistics: Optional[Any] = ..., + version: Optional[Any] = ..., + version_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: ... + async def update( + self, + index: Any, + id: Any, + body: Any, + doc_type: Optional[Any] = ..., + _source: Optional[Any] = ..., + _source_excludes: Optional[Any] = ..., + _source_includes: Optional[Any] = ..., + if_primary_term: Optional[Any] = ..., + if_seq_no: Optional[Any] = ..., + lang: Optional[Any] = ..., + refresh: Optional[Any] = ..., + require_alias: Optional[Any] = ..., + retry_on_conflict: Optional[Any] = ..., + routing: Optional[Any] = ..., + timeout: Optional[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 update_by_query( + self, + index: Any, + body: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + _source: Optional[Any] = ..., + _source_excludes: Optional[Any] = ..., + _source_includes: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + analyze_wildcard: Optional[Any] = ..., + analyzer: Optional[Any] = ..., + conflicts: Optional[Any] = ..., + default_operator: Optional[Any] = ..., + df: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + from_: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + lenient: Optional[Any] = ..., + max_docs: Optional[Any] = ..., + pipeline: Optional[Any] = ..., + preference: Optional[Any] = ..., + q: Optional[Any] = ..., + refresh: Optional[Any] = ..., + request_cache: Optional[Any] = ..., + requests_per_second: Optional[Any] = ..., + routing: Optional[Any] = ..., + scroll: Optional[Any] = ..., + scroll_size: Optional[Any] = ..., + search_timeout: Optional[Any] = ..., + search_type: Optional[Any] = ..., + size: Optional[Any] = ..., + slices: Optional[Any] = ..., + sort: Optional[Any] = ..., + stats: Optional[Any] = ..., + terminate_after: Optional[Any] = ..., + timeout: Optional[Any] = ..., + version: Optional[Any] = ..., + version_type: Optional[Any] = ..., + wait_for_active_shards: 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_by_query_rethrottle( + self, + task_id: Any, + requests_per_second: 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_script_context( + 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_script_languages( + 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 close_point_in_time( + self, + 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 open_point_in_time( + self, + index: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + keep_alive: Optional[Any] = ..., + preference: Optional[Any] = ..., + routing: 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: ... diff --git a/elasticsearch/_async/client/async_search.pyi b/elasticsearch/_async/client/async_search.pyi new file mode 100644 index 00000000..0ea9cd63 --- /dev/null +++ b/elasticsearch/_async/client/async_search.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/autoscaling.pyi b/elasticsearch/_async/client/autoscaling.pyi new file mode 100644 index 00000000..f18f8b1e --- /dev/null +++ b/elasticsearch/_async/client/autoscaling.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/cat.py b/elasticsearch/_async/client/cat.py index 817194f2..c96bd409 100644 --- a/elasticsearch/_async/client/cat.py +++ b/elasticsearch/_async/client/cat.py @@ -596,7 +596,9 @@ class CatClient(NamespacedClient): 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): """ Gets configuration and usage information about datafeeds. @@ -606,6 +608,9 @@ class CatClient(NamespacedClient): :arg allow_no_datafeeds: Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no 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, yaml :arg h: Comma-separated list of column names to display @@ -623,7 +628,17 @@ class CatClient(NamespacedClient): 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): """ 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 matches no jobs. (This includes `_all` string or when no jobs have been 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 choices: b, k, kb, m, mb, g, gb, t, tb, p, pb :arg format: a short version of the Accept header, e.g. json, diff --git a/elasticsearch/_async/client/cat.pyi b/elasticsearch/_async/client/cat.pyi new file mode 100644 index 00000000..358b291f --- /dev/null +++ b/elasticsearch/_async/client/cat.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/ccr.pyi b/elasticsearch/_async/client/ccr.pyi new file mode 100644 index 00000000..bdde8ecc --- /dev/null +++ b/elasticsearch/_async/client/ccr.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/cluster.pyi b/elasticsearch/_async/client/cluster.pyi new file mode 100644 index 00000000..7304e665 --- /dev/null +++ b/elasticsearch/_async/client/cluster.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/dangling_indices.pyi b/elasticsearch/_async/client/dangling_indices.pyi new file mode 100644 index 00000000..8ff0943b --- /dev/null +++ b/elasticsearch/_async/client/dangling_indices.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/data_frame.pyi b/elasticsearch/_async/client/data_frame.pyi new file mode 100644 index 00000000..f1c6d4ff --- /dev/null +++ b/elasticsearch/_async/client/data_frame.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/deprecation.pyi b/elasticsearch/_async/client/deprecation.pyi new file mode 100644 index 00000000..f7796666 --- /dev/null +++ b/elasticsearch/_async/client/deprecation.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/enrich.pyi b/elasticsearch/_async/client/enrich.pyi new file mode 100644 index 00000000..d20522f4 --- /dev/null +++ b/elasticsearch/_async/client/enrich.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/eql.pyi b/elasticsearch/_async/client/eql.pyi new file mode 100644 index 00000000..18e54e2f --- /dev/null +++ b/elasticsearch/_async/client/eql.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/graph.pyi b/elasticsearch/_async/client/graph.pyi new file mode 100644 index 00000000..bccd6a88 --- /dev/null +++ b/elasticsearch/_async/client/graph.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/ilm.pyi b/elasticsearch/_async/client/ilm.pyi new file mode 100644 index 00000000..8b58e35f --- /dev/null +++ b/elasticsearch/_async/client/ilm.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/indices.py b/elasticsearch/_async/client/indices.py index fce95782..07214a28 100644 --- a/elasticsearch/_async/client/indices.py +++ b/elasticsearch/_async/client/indices.py @@ -1292,23 +1292,18 @@ class IndicesClient(NamespacedClient): ) @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 ``_ :arg name: The name of the data stream - :arg body: The data stream definition """ if name in SKIP_IN_PATH: raise ValueError("Empty value passed for a required argument 'name'.") return await self.transport.perform_request( - "PUT", - _make_path("_data_stream", name), - params=params, - headers=headers, - body=body, + "PUT", _make_path("_data_stream", name), params=params, headers=headers ) @query_params() @@ -1482,7 +1477,7 @@ class IndicesClient(NamespacedClient): async def resolve_index(self, name, params=None, headers=None): """ Returns information about any matching indices, aliases, and data streams - ``_ + ``_ :arg name: A comma-separated list of names or wildcard expressions @@ -1507,7 +1502,7 @@ class IndicesClient(NamespacedClient): async def add_block(self, index, block, params=None, headers=None): """ Adds a block to an index. - ``_ + ``_ :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 diff --git a/elasticsearch/_async/client/indices.pyi b/elasticsearch/_async/client/indices.pyi new file mode 100644 index 00000000..1f95fa3e --- /dev/null +++ b/elasticsearch/_async/client/indices.pyi @@ -0,0 +1,1011 @@ +# 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 IndicesClient(NamespacedClient): + async def analyze( + self, + body: Optional[Any] = ..., + 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: ... + async def refresh( + 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 flush( + self, + index: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + force: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + wait_if_ongoing: 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( + self, + index: Any, + body: Optional[Any] = ..., + include_type_name: Optional[Any] = ..., + master_timeout: Optional[Any] = ..., + timeout: Optional[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 clone( + self, + index: Any, + target: Any, + body: Optional[Any] = ..., + master_timeout: Optional[Any] = ..., + timeout: Optional[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 get( + self, + index: Any, + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + flat_settings: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + include_defaults: Optional[Any] = ..., + include_type_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 open( + self, + index: Any, + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + master_timeout: Optional[Any] = ..., + timeout: Optional[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 close( + self, + index: Any, + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + master_timeout: Optional[Any] = ..., + timeout: Optional[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 delete( + self, + index: Any, + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: 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( + self, + index: Any, + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + flat_settings: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + include_defaults: 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]] = ..., + ) -> bool: ... + async def exists_type( + self, + index: Any, + doc_type: Any, + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: 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]] = ..., + ) -> bool: ... + async def put_mapping( + self, + body: Any, + index: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + include_type_name: Optional[Any] = ..., + master_timeout: Optional[Any] = ..., + timeout: Optional[Any] = ..., + write_index_only: 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_mapping( + self, + index: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + include_type_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 get_field_mapping( + self, + fields: Any, + index: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + include_defaults: Optional[Any] = ..., + include_type_name: 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 put_alias( + self, + index: Any, + name: Any, + body: 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_alias( + self, + name: Any, + index: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: 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]] = ..., + ) -> bool: ... + async def get_alias( + self, + index: Optional[Any] = ..., + name: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: 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 update_aliases( + self, + 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_alias( + self, + index: Any, + 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 put_template( + self, + name: Any, + body: Any, + create: Optional[Any] = ..., + include_type_name: Optional[Any] = ..., + master_timeout: Optional[Any] = ..., + order: 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_template( + self, + name: Any, + flat_settings: 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]] = ..., + ) -> bool: ... + async def get_template( + self, + name: Optional[Any] = ..., + flat_settings: Optional[Any] = ..., + include_type_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 delete_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_settings( + self, + index: Optional[Any] = ..., + name: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + flat_settings: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + include_defaults: 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_settings( + self, + body: Any, + index: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + flat_settings: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + master_timeout: Optional[Any] = ..., + preserve_existing: 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, + index: Optional[Any] = ..., + metric: Optional[Any] = ..., + completion_fields: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + fielddata_fields: Optional[Any] = ..., + fields: Optional[Any] = ..., + forbid_closed_indices: Optional[Any] = ..., + groups: Optional[Any] = ..., + include_segment_file_sizes: Optional[Any] = ..., + include_unloaded_segments: Optional[Any] = ..., + level: 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 segments( + self, + index: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: 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 validate_query( + self, + body: Optional[Any] = ..., + index: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + all_shards: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + analyze_wildcard: Optional[Any] = ..., + analyzer: Optional[Any] = ..., + default_operator: Optional[Any] = ..., + df: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + explain: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + lenient: Optional[Any] = ..., + q: Optional[Any] = ..., + rewrite: 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_cache( + self, + index: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + fielddata: Optional[Any] = ..., + fields: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + query: Optional[Any] = ..., + request: 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 recovery( + self, + index: Optional[Any] = ..., + active_only: Optional[Any] = ..., + detailed: 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 upgrade( + self, + index: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + only_ancient_segments: 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_upgrade( + 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 flush_synced( + 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 shard_stores( + self, + index: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + 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 forcemerge( + self, + index: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + flush: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + max_num_segments: Optional[Any] = ..., + only_expunge_deletes: 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 shrink( + self, + index: Any, + target: Any, + body: Optional[Any] = ..., + copy_settings: Optional[Any] = ..., + master_timeout: Optional[Any] = ..., + timeout: Optional[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 split( + self, + index: Any, + target: Any, + body: Optional[Any] = ..., + copy_settings: Optional[Any] = ..., + master_timeout: Optional[Any] = ..., + timeout: Optional[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 rollover( + self, + alias: Any, + body: Optional[Any] = ..., + new_index: Optional[Any] = ..., + dry_run: Optional[Any] = ..., + include_type_name: Optional[Any] = ..., + master_timeout: Optional[Any] = ..., + timeout: Optional[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 freeze( + self, + index: Any, + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + master_timeout: Optional[Any] = ..., + timeout: Optional[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 unfreeze( + self, + index: Any, + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + master_timeout: Optional[Any] = ..., + timeout: Optional[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 reload_search_analyzers( + self, + index: 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 create_data_stream( + 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 delete_data_stream( + 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 delete_index_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 exists_index_template( + self, + name: Any, + flat_settings: 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]] = ..., + ) -> bool: ... + async def get_index_template( + self, + name: Optional[Any] = ..., + flat_settings: 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_index_template( + self, + name: Any, + body: Any, + cause: Optional[Any] = ..., + create: 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 simulate_index_template( + self, + name: Any, + body: Optional[Any] = ..., + cause: Optional[Any] = ..., + create: 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 get_data_stream( + 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 simulate_template( + self, + body: Optional[Any] = ..., + name: Optional[Any] = ..., + cause: Optional[Any] = ..., + create: 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 resolve_index( + self, + name: Any, + expand_wildcards: 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 add_block( + self, + index: Any, + block: Any, + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: 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 data_streams_stats( + 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: ... diff --git a/elasticsearch/_async/client/ingest.pyi b/elasticsearch/_async/client/ingest.pyi new file mode 100644 index 00000000..2c0527ba --- /dev/null +++ b/elasticsearch/_async/client/ingest.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/license.pyi b/elasticsearch/_async/client/license.pyi new file mode 100644 index 00000000..17602065 --- /dev/null +++ b/elasticsearch/_async/client/license.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/migration.pyi b/elasticsearch/_async/client/migration.pyi new file mode 100644 index 00000000..e82ebf55 --- /dev/null +++ b/elasticsearch/_async/client/migration.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/ml.py b/elasticsearch/_async/client/ml.py index ee4b4473..f4e394cf 100644 --- a/elasticsearch/_async/client/ml.py +++ b/elasticsearch/_async/client/ml.py @@ -19,7 +19,7 @@ from .utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH, _bu 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): """ 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 matches no jobs. (This includes `_all` string or when no jobs have been 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 timeout: Controls the time to wait until a job has closed. Default to 30 minutes @@ -502,7 +505,7 @@ class MlClient(NamespacedClient): 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): """ Retrieves usage information for datafeeds. @@ -512,6 +515,9 @@ class MlClient(NamespacedClient): :arg allow_no_datafeeds: Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no 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( "GET", @@ -520,7 +526,7 @@ class MlClient(NamespacedClient): 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): """ Retrieves configuration information for datafeeds. @@ -530,6 +536,9 @@ class MlClient(NamespacedClient): :arg allow_no_datafeeds: Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no 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( "GET", @@ -602,7 +611,7 @@ class MlClient(NamespacedClient): 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): """ 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 matches no jobs. (This includes `_all` string or when no jobs have been 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( "GET", @@ -620,7 +632,7 @@ class MlClient(NamespacedClient): 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): """ 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 matches no jobs. (This includes `_all` string or when no jobs have been 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( "GET", @@ -677,6 +692,7 @@ class MlClient(NamespacedClient): @query_params( "allow_no_jobs", + "allow_no_match", "bucket_span", "end", "exclude_interim", @@ -697,6 +713,9 @@ class MlClient(NamespacedClient): :arg allow_no_jobs: Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been 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 the longest job bucket_span :arg end: Returns overall buckets with timestamps earlier than @@ -1052,16 +1071,20 @@ class MlClient(NamespacedClient): body=body, ) - @query_params("allow_no_datafeeds", "force", "timeout") - async def stop_datafeed(self, datafeed_id, params=None, headers=None): + @query_params("allow_no_datafeeds", "allow_no_match", "force", "timeout") + async def stop_datafeed(self, datafeed_id, body=None, params=None, headers=None): """ Stops one or more datafeeds. ``_ :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 expression matches no datafeeds. (This includes `_all` string or when no 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 timeout: Controls the time to wait until a datafeed has stopped. Default to 20 seconds @@ -1076,6 +1099,7 @@ class MlClient(NamespacedClient): _make_path("_ml", "datafeeds", datafeed_id, "_stop"), params=params, headers=headers, + body=body, ) @query_params( @@ -1427,6 +1451,7 @@ class MlClient(NamespacedClient): "decompress_definition", "for_export", "from_", + "include", "include_model_definition", "size", "tags", @@ -1446,6 +1471,9 @@ class MlClient(NamespacedClient): :arg for_export: Omits fields that are illegal to set on model PUT :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 be included in the results. These definitions can be large. So be cautious when including them. Defaults to false. diff --git a/elasticsearch/_async/client/ml.pyi b/elasticsearch/_async/client/ml.pyi new file mode 100644 index 00000000..0944fe3e --- /dev/null +++ b/elasticsearch/_async/client/ml.pyi @@ -0,0 +1,1033 @@ +# 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 MlClient(NamespacedClient): + async def close_job( + self, + job_id: Any, + body: Optional[Any] = ..., + allow_no_jobs: Optional[Any] = ..., + allow_no_match: Optional[Any] = ..., + force: 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_calendar( + self, + calendar_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_calendar_event( + self, + calendar_id: Any, + event_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_calendar_job( + self, + calendar_id: Any, + job_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_datafeed( + self, + datafeed_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 delete_expired_data( + self, + body: Optional[Any] = ..., + job_id: Optional[Any] = ..., + requests_per_second: 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_filter( + self, + filter_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_forecast( + self, + job_id: Any, + forecast_id: Optional[Any] = ..., + allow_no_forecasts: 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_job( + self, + job_id: Any, + force: 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_model_snapshot( + self, + job_id: Any, + snapshot_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 find_file_structure( + self, + body: Any, + charset: Optional[Any] = ..., + column_names: Optional[Any] = ..., + delimiter: Optional[Any] = ..., + explain: Optional[Any] = ..., + format: Optional[Any] = ..., + grok_pattern: Optional[Any] = ..., + has_header_row: Optional[Any] = ..., + line_merge_size_limit: Optional[Any] = ..., + lines_to_sample: Optional[Any] = ..., + quote: Optional[Any] = ..., + should_trim_fields: Optional[Any] = ..., + timeout: Optional[Any] = ..., + timestamp_field: Optional[Any] = ..., + timestamp_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 flush_job( + self, + job_id: Any, + body: Optional[Any] = ..., + advance_time: Optional[Any] = ..., + calc_interim: Optional[Any] = ..., + end: Optional[Any] = ..., + skip_time: Optional[Any] = ..., + start: 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 forecast( + self, + job_id: Any, + duration: Optional[Any] = ..., + expires_in: Optional[Any] = ..., + max_model_memory: 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_buckets( + self, + job_id: Any, + body: Optional[Any] = ..., + timestamp: Optional[Any] = ..., + anomaly_score: Optional[Any] = ..., + desc: Optional[Any] = ..., + end: Optional[Any] = ..., + exclude_interim: Optional[Any] = ..., + expand: Optional[Any] = ..., + from_: Optional[Any] = ..., + size: Optional[Any] = ..., + sort: Optional[Any] = ..., + start: 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_calendar_events( + self, + calendar_id: Any, + end: Optional[Any] = ..., + from_: Optional[Any] = ..., + job_id: Optional[Any] = ..., + size: Optional[Any] = ..., + start: 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_calendars( + self, + body: Optional[Any] = ..., + calendar_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[Mapping[str, Any]] = ..., + headers: Optional[Mapping[str, str]] = ..., + ) -> Any: ... + async def get_categories( + self, + job_id: Any, + body: Optional[Any] = ..., + category_id: Optional[Any] = ..., + from_: Optional[Any] = ..., + partition_field_value: 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_datafeed_stats( + self, + datafeed_id: Optional[Any] = ..., + allow_no_datafeeds: Optional[Any] = ..., + allow_no_match: 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_datafeeds( + self, + datafeed_id: Optional[Any] = ..., + allow_no_datafeeds: Optional[Any] = ..., + allow_no_match: 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_filters( + self, + filter_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[Mapping[str, Any]] = ..., + headers: Optional[Mapping[str, str]] = ..., + ) -> Any: ... + async def get_influencers( + self, + job_id: Any, + body: Optional[Any] = ..., + desc: Optional[Any] = ..., + end: Optional[Any] = ..., + exclude_interim: Optional[Any] = ..., + from_: Optional[Any] = ..., + influencer_score: Optional[Any] = ..., + size: Optional[Any] = ..., + sort: Optional[Any] = ..., + start: 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_job_stats( + self, + job_id: Optional[Any] = ..., + allow_no_jobs: Optional[Any] = ..., + allow_no_match: 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_jobs( + self, + job_id: Optional[Any] = ..., + allow_no_jobs: Optional[Any] = ..., + allow_no_match: 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_model_snapshots( + self, + job_id: Any, + body: Optional[Any] = ..., + snapshot_id: Optional[Any] = ..., + desc: Optional[Any] = ..., + end: Optional[Any] = ..., + from_: Optional[Any] = ..., + size: Optional[Any] = ..., + sort: Optional[Any] = ..., + start: 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_overall_buckets( + self, + job_id: Any, + body: Optional[Any] = ..., + allow_no_jobs: Optional[Any] = ..., + allow_no_match: Optional[Any] = ..., + bucket_span: Optional[Any] = ..., + end: Optional[Any] = ..., + exclude_interim: Optional[Any] = ..., + overall_score: Optional[Any] = ..., + start: Optional[Any] = ..., + top_n: 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_records( + self, + job_id: Any, + body: Optional[Any] = ..., + desc: Optional[Any] = ..., + end: Optional[Any] = ..., + exclude_interim: Optional[Any] = ..., + from_: Optional[Any] = ..., + record_score: Optional[Any] = ..., + size: Optional[Any] = ..., + sort: Optional[Any] = ..., + start: 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, + pretty: Optional[bool] = ..., + human: Optional[bool] = ..., + error_trace: Optional[bool] = ..., + format: Optional[str] = ..., + filter_path: Optional[Union[str, Collection[str]]] = ..., + request_timeout: Optional[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 open_job( + self, + job_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 post_calendar_events( + self, + calendar_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 post_data( + self, + job_id: Any, + body: Any, + reset_end: Optional[Any] = ..., + reset_start: 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_datafeed( + self, + datafeed_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_calendar( + self, + calendar_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 put_calendar_job( + self, + calendar_id: Any, + job_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_datafeed( + self, + datafeed_id: Any, + body: Any, + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_throttled: 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 put_filter( + self, + filter_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 put_job( + self, + job_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 revert_model_snapshot( + self, + job_id: Any, + snapshot_id: Any, + body: Optional[Any] = ..., + delete_intervening_results: 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 set_upgrade_mode( + self, + enabled: 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 start_datafeed( + self, + datafeed_id: Any, + body: Optional[Any] = ..., + end: Optional[Any] = ..., + start: 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 stop_datafeed( + self, + datafeed_id: Any, + body: Optional[Any] = ..., + allow_no_datafeeds: Optional[Any] = ..., + allow_no_match: Optional[Any] = ..., + force: 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 update_datafeed( + self, + datafeed_id: Any, + body: Any, + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_throttled: 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 update_filter( + self, + filter_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 update_job( + self, + job_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 update_model_snapshot( + self, + job_id: Any, + snapshot_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 validate( + 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 validate_detector( + 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 delete_data_frame_analytics( + self, + id: Any, + force: 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 evaluate_data_frame( + 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_data_frame_analytics( + self, + 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_data_frame_analytics_stats( + self, + id: Optional[Any] = ..., + allow_no_match: Optional[Any] = ..., + from_: Optional[Any] = ..., + size: 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 put_data_frame_analytics( + 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 start_data_frame_analytics( + self, + id: Any, + body: 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 stop_data_frame_analytics( + self, + id: Any, + body: Optional[Any] = ..., + allow_no_match: Optional[Any] = ..., + force: 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_trained_model( + self, + model_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 explain_data_frame_analytics( + self, + body: Optional[Any] = ..., + 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_trained_models( + self, + model_id: Optional[Any] = ..., + allow_no_match: Optional[Any] = ..., + decompress_definition: Optional[Any] = ..., + for_export: Optional[Any] = ..., + from_: Optional[Any] = ..., + include: Optional[Any] = ..., + include_model_definition: Optional[Any] = ..., + size: Optional[Any] = ..., + tags: 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_trained_models_stats( + self, + model_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 put_trained_model( + self, + model_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 estimate_model_memory( + 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 update_data_frame_analytics( + 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: ... diff --git a/elasticsearch/_async/client/monitoring.pyi b/elasticsearch/_async/client/monitoring.pyi new file mode 100644 index 00000000..1106a812 --- /dev/null +++ b/elasticsearch/_async/client/monitoring.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/nodes.pyi b/elasticsearch/_async/client/nodes.pyi new file mode 100644 index 00000000..7ed7c2d9 --- /dev/null +++ b/elasticsearch/_async/client/nodes.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/remote.pyi b/elasticsearch/_async/client/remote.pyi new file mode 100644 index 00000000..7dd9b541 --- /dev/null +++ b/elasticsearch/_async/client/remote.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/rollup.pyi b/elasticsearch/_async/client/rollup.pyi new file mode 100644 index 00000000..af8ea7d6 --- /dev/null +++ b/elasticsearch/_async/client/rollup.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/searchable_snapshots.py b/elasticsearch/_async/client/searchable_snapshots.py index 5807b1cb..c7df9b34 100644 --- a/elasticsearch/_async/client/searchable_snapshots.py +++ b/elasticsearch/_async/client/searchable_snapshots.py @@ -23,7 +23,7 @@ class SearchableSnapshotsClient(NamespacedClient): async def clear_cache(self, index=None, params=None, headers=None): """ Clear the cache of searchable snapshots. - ``_ + ``_ :arg index: A comma-separated list of index name to limit the operation @@ -74,8 +74,8 @@ class SearchableSnapshotsClient(NamespacedClient): @query_params() 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. + ``_ :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): """ Retrieve various statistics about searchable snapshots. - ``_ + ``_ :arg index: A comma-separated list of index names """ diff --git a/elasticsearch/_async/client/searchable_snapshots.pyi b/elasticsearch/_async/client/searchable_snapshots.pyi new file mode 100644 index 00000000..382f8039 --- /dev/null +++ b/elasticsearch/_async/client/searchable_snapshots.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/security.pyi b/elasticsearch/_async/client/security.pyi new file mode 100644 index 00000000..cb28e4ba --- /dev/null +++ b/elasticsearch/_async/client/security.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/slm.pyi b/elasticsearch/_async/client/slm.pyi new file mode 100644 index 00000000..b00c5dd5 --- /dev/null +++ b/elasticsearch/_async/client/slm.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/snapshot.pyi b/elasticsearch/_async/client/snapshot.pyi new file mode 100644 index 00000000..23c8e141 --- /dev/null +++ b/elasticsearch/_async/client/snapshot.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/sql.pyi b/elasticsearch/_async/client/sql.pyi new file mode 100644 index 00000000..adf8bc7f --- /dev/null +++ b/elasticsearch/_async/client/sql.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/ssl.pyi b/elasticsearch/_async/client/ssl.pyi new file mode 100644 index 00000000..f0d54596 --- /dev/null +++ b/elasticsearch/_async/client/ssl.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/tasks.pyi b/elasticsearch/_async/client/tasks.pyi new file mode 100644 index 00000000..2c75a2a6 --- /dev/null +++ b/elasticsearch/_async/client/tasks.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/transform.pyi b/elasticsearch/_async/client/transform.pyi new file mode 100644 index 00000000..5e732582 --- /dev/null +++ b/elasticsearch/_async/client/transform.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/utils.pyi b/elasticsearch/_async/client/utils.pyi new file mode 100644 index 00000000..9b4501d1 --- /dev/null +++ b/elasticsearch/_async/client/utils.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/watcher.pyi b/elasticsearch/_async/client/watcher.pyi new file mode 100644 index 00000000..dc8f95af --- /dev/null +++ b/elasticsearch/_async/client/watcher.pyi @@ -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: ... diff --git a/elasticsearch/_async/client/xpack.pyi b/elasticsearch/_async/client/xpack.pyi new file mode 100644 index 00000000..7d7fb4aa --- /dev/null +++ b/elasticsearch/_async/client/xpack.pyi @@ -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: ... diff --git a/elasticsearch/client/__init__.py b/elasticsearch/client/__init__.py index 057d4636..a886dddb 100644 --- a/elasticsearch/client/__init__.py +++ b/elasticsearch/client/__init__.py @@ -459,7 +459,7 @@ class Elasticsearch(object): def clear_scroll(self, body=None, scroll_id=None, params=None, headers=None): """ Explicitly clears the search context for a scroll. - ``_ + ``_ :arg body: A comma-separated list of scroll IDs to clear if none was specified via the scroll_id parameter @@ -2027,3 +2027,40 @@ class Elasticsearch(object): return self.transport.perform_request( "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 + ``_ + + :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 + ``_ + + :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 + ) diff --git a/elasticsearch/client/__init__.pyi b/elasticsearch/client/__init__.pyi new file mode 100644 index 00000000..ac8e0688 --- /dev/null +++ b/elasticsearch/client/__init__.pyi @@ -0,0 +1,1022 @@ +# -*- coding: utf-8 -*- +# 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 +import logging +from typing import Any, Mapping, Optional, Type, Union, Collection + +from ..transport import Transport + +from .async_search import AsyncSearchClient +from .autoscaling import AutoscalingClient +from .cat import CatClient +from .cluster import ClusterClient +from .dangling_indices import DanglingIndicesClient +from .indices import IndicesClient +from .ingest import IngestClient +from .nodes import NodesClient +from .remote import RemoteClient +from .snapshot import SnapshotClient +from .tasks import TasksClient + +# xpack APIs +from .xpack import XPackClient +from .ccr import CcrClient +from .enrich import EnrichClient +from .eql import EqlClient +from .graph import GraphClient +from .ilm import IlmClient +from .license import LicenseClient +from .migration import MigrationClient +from .ml import MlClient +from .monitoring import MonitoringClient +from .rollup import RollupClient +from .searchable_snapshots import SearchableSnapshotsClient +from .security import SecurityClient +from .slm import SlmClient +from .sql import SqlClient +from .ssl import SslClient +from .transform import TransformClient +from .watcher import WatcherClient + +logger: logging.Logger + +class Elasticsearch(object): + transport: Transport + + async_search: AsyncSearchClient + autoscaling: AutoscalingClient + cat: CatClient + cluster: ClusterClient + indices: IndicesClient + ingest: IngestClient + nodes: NodesClient + remote: RemoteClient + snapshot: SnapshotClient + tasks: TasksClient + + xpack: XPackClient + ccr: CcrClient + dangling_indices: DanglingIndicesClient + enrich: EnrichClient + eql: EqlClient + graph: GraphClient + ilm: IlmClient + license: LicenseClient + migration: MigrationClient + ml: MlClient + monitoring: MonitoringClient + rollup: RollupClient + searchable_snapshots: SearchableSnapshotsClient + security: SecurityClient + slm: SlmClient + sql: SqlClient + ssl: SslClient + transform: TransformClient + watcher: WatcherClient + def __init__( + self, hosts: Any = ..., transport_class: Type[Transport] = ..., **kwargs: Any + ) -> None: ... + def __repr__(self) -> str: ... + def __enter__(self) -> "Elasticsearch": ... + def __exit__(self, *_: Any) -> None: ... + def close(self) -> None: ... + # AUTO-GENERATED-API-DEFINITIONS # + def ping( + 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]] = ..., + ) -> bool: ... + def 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 create( + self, + index: Any, + id: Any, + body: Any, + doc_type: Optional[Any] = ..., + pipeline: Optional[Any] = ..., + refresh: Optional[Any] = ..., + routing: Optional[Any] = ..., + timeout: Optional[Any] = ..., + version: Optional[Any] = ..., + version_type: Optional[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 index( + self, + index: Any, + body: Any, + doc_type: Optional[Any] = ..., + id: Optional[Any] = ..., + if_primary_term: Optional[Any] = ..., + if_seq_no: Optional[Any] = ..., + op_type: Optional[Any] = ..., + pipeline: Optional[Any] = ..., + refresh: Optional[Any] = ..., + require_alias: Optional[Any] = ..., + routing: Optional[Any] = ..., + timeout: Optional[Any] = ..., + version: Optional[Any] = ..., + version_type: Optional[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 bulk( + self, + body: Any, + index: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + _source: Optional[Any] = ..., + _source_excludes: Optional[Any] = ..., + _source_includes: Optional[Any] = ..., + pipeline: Optional[Any] = ..., + refresh: Optional[Any] = ..., + require_alias: Optional[Any] = ..., + routing: Optional[Any] = ..., + timeout: Optional[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 clear_scroll( + self, + body: Optional[Any] = ..., + scroll_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 count( + self, + body: Optional[Any] = ..., + index: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + analyze_wildcard: Optional[Any] = ..., + analyzer: Optional[Any] = ..., + default_operator: Optional[Any] = ..., + df: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_throttled: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + lenient: Optional[Any] = ..., + min_score: Optional[Any] = ..., + preference: Optional[Any] = ..., + q: Optional[Any] = ..., + routing: Optional[Any] = ..., + terminate_after: 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, + index: Any, + id: Any, + doc_type: Optional[Any] = ..., + if_primary_term: Optional[Any] = ..., + if_seq_no: Optional[Any] = ..., + refresh: Optional[Any] = ..., + routing: Optional[Any] = ..., + timeout: Optional[Any] = ..., + version: Optional[Any] = ..., + version_type: Optional[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 delete_by_query( + self, + index: Any, + body: Any, + doc_type: Optional[Any] = ..., + _source: Optional[Any] = ..., + _source_excludes: Optional[Any] = ..., + _source_includes: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + analyze_wildcard: Optional[Any] = ..., + analyzer: Optional[Any] = ..., + conflicts: Optional[Any] = ..., + default_operator: Optional[Any] = ..., + df: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + from_: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + lenient: Optional[Any] = ..., + max_docs: Optional[Any] = ..., + preference: Optional[Any] = ..., + q: Optional[Any] = ..., + refresh: Optional[Any] = ..., + request_cache: Optional[Any] = ..., + requests_per_second: Optional[Any] = ..., + routing: Optional[Any] = ..., + scroll: Optional[Any] = ..., + scroll_size: Optional[Any] = ..., + search_timeout: Optional[Any] = ..., + search_type: Optional[Any] = ..., + size: Optional[Any] = ..., + slices: Optional[Any] = ..., + sort: Optional[Any] = ..., + stats: Optional[Any] = ..., + terminate_after: Optional[Any] = ..., + timeout: Optional[Any] = ..., + version: Optional[Any] = ..., + wait_for_active_shards: 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_by_query_rethrottle( + self, + task_id: Any, + requests_per_second: 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_script( + 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 exists( + self, + index: Any, + id: Any, + doc_type: Optional[Any] = ..., + _source: Optional[Any] = ..., + _source_excludes: Optional[Any] = ..., + _source_includes: Optional[Any] = ..., + preference: Optional[Any] = ..., + realtime: Optional[Any] = ..., + refresh: Optional[Any] = ..., + routing: Optional[Any] = ..., + stored_fields: Optional[Any] = ..., + version: Optional[Any] = ..., + version_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]] = ..., + ) -> bool: ... + def exists_source( + self, + index: Any, + id: Any, + doc_type: Optional[Any] = ..., + _source: Optional[Any] = ..., + _source_excludes: Optional[Any] = ..., + _source_includes: Optional[Any] = ..., + preference: Optional[Any] = ..., + realtime: Optional[Any] = ..., + refresh: Optional[Any] = ..., + routing: Optional[Any] = ..., + version: Optional[Any] = ..., + version_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]] = ..., + ) -> bool: ... + def explain( + self, + index: Any, + id: Any, + body: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + _source: Optional[Any] = ..., + _source_excludes: Optional[Any] = ..., + _source_includes: Optional[Any] = ..., + analyze_wildcard: Optional[Any] = ..., + analyzer: Optional[Any] = ..., + default_operator: Optional[Any] = ..., + df: Optional[Any] = ..., + lenient: Optional[Any] = ..., + preference: Optional[Any] = ..., + q: Optional[Any] = ..., + routing: Optional[Any] = ..., + stored_fields: 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 field_caps( + self, + body: Optional[Any] = ..., + index: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + fields: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + include_unmapped: 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, + index: Any, + id: Any, + doc_type: Optional[Any] = ..., + _source: Optional[Any] = ..., + _source_excludes: Optional[Any] = ..., + _source_includes: Optional[Any] = ..., + preference: Optional[Any] = ..., + realtime: Optional[Any] = ..., + refresh: Optional[Any] = ..., + routing: Optional[Any] = ..., + stored_fields: Optional[Any] = ..., + version: Optional[Any] = ..., + version_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: ... + def get_script( + self, + id: 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_source( + self, + index: Any, + id: Any, + doc_type: Optional[Any] = ..., + _source: Optional[Any] = ..., + _source_excludes: Optional[Any] = ..., + _source_includes: Optional[Any] = ..., + preference: Optional[Any] = ..., + realtime: Optional[Any] = ..., + refresh: Optional[Any] = ..., + routing: Optional[Any] = ..., + version: Optional[Any] = ..., + version_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: ... + def mget( + self, + body: Any, + index: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + _source: Optional[Any] = ..., + _source_excludes: Optional[Any] = ..., + _source_includes: Optional[Any] = ..., + preference: Optional[Any] = ..., + realtime: Optional[Any] = ..., + refresh: Optional[Any] = ..., + routing: Optional[Any] = ..., + stored_fields: 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 msearch( + self, + body: Any, + index: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + ccs_minimize_roundtrips: Optional[Any] = ..., + max_concurrent_searches: Optional[Any] = ..., + max_concurrent_shard_requests: Optional[Any] = ..., + pre_filter_shard_size: Optional[Any] = ..., + rest_total_hits_as_int: Optional[Any] = ..., + search_type: 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 msearch_template( + self, + body: Any, + index: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + ccs_minimize_roundtrips: Optional[Any] = ..., + max_concurrent_searches: Optional[Any] = ..., + rest_total_hits_as_int: Optional[Any] = ..., + search_type: 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 mtermvectors( + self, + body: Optional[Any] = ..., + index: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + field_statistics: Optional[Any] = ..., + fields: Optional[Any] = ..., + ids: Optional[Any] = ..., + offsets: Optional[Any] = ..., + payloads: Optional[Any] = ..., + positions: Optional[Any] = ..., + preference: Optional[Any] = ..., + realtime: Optional[Any] = ..., + routing: Optional[Any] = ..., + term_statistics: Optional[Any] = ..., + version: Optional[Any] = ..., + version_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: ... + def put_script( + self, + id: Any, + body: Any, + context: 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 rank_eval( + self, + body: Any, + index: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + search_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: ... + def reindex( + self, + body: Any, + max_docs: Optional[Any] = ..., + refresh: Optional[Any] = ..., + requests_per_second: Optional[Any] = ..., + scroll: Optional[Any] = ..., + slices: Optional[Any] = ..., + timeout: Optional[Any] = ..., + wait_for_active_shards: 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 reindex_rethrottle( + self, + task_id: Any, + requests_per_second: 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 render_search_template( + self, + body: Optional[Any] = ..., + 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 scripts_painless_execute( + self, + 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 scroll( + self, + body: Optional[Any] = ..., + scroll_id: Optional[Any] = ..., + rest_total_hits_as_int: Optional[Any] = ..., + scroll: 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 search( + self, + body: Optional[Any] = ..., + index: Optional[Any] = ..., + doc_type: 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] = ..., + ccs_minimize_roundtrips: 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] = ..., + lenient: Optional[Any] = ..., + max_concurrent_shard_requests: Optional[Any] = ..., + pre_filter_shard_size: Optional[Any] = ..., + preference: Optional[Any] = ..., + q: Optional[Any] = ..., + request_cache: Optional[Any] = ..., + rest_total_hits_as_int: Optional[Any] = ..., + routing: Optional[Any] = ..., + scroll: 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] = ..., + pretty: Optional[bool] = ..., + human: Optional[bool] = ..., + error_trace: Optional[bool] = ..., + format: Optional[str] = ..., + filter_path: Optional[Union[str, Collection[str]]] = ..., + request_timeout: Optional[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 search_shards( + self, + index: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + local: Optional[Any] = ..., + preference: Optional[Any] = ..., + routing: 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 search_template( + self, + body: Any, + index: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + ccs_minimize_roundtrips: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + explain: Optional[Any] = ..., + ignore_throttled: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + preference: Optional[Any] = ..., + profile: Optional[Any] = ..., + rest_total_hits_as_int: Optional[Any] = ..., + routing: Optional[Any] = ..., + scroll: Optional[Any] = ..., + search_type: 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 termvectors( + self, + index: Any, + body: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + id: Optional[Any] = ..., + field_statistics: Optional[Any] = ..., + fields: Optional[Any] = ..., + offsets: Optional[Any] = ..., + payloads: Optional[Any] = ..., + positions: Optional[Any] = ..., + preference: Optional[Any] = ..., + realtime: Optional[Any] = ..., + routing: Optional[Any] = ..., + term_statistics: Optional[Any] = ..., + version: Optional[Any] = ..., + version_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: ... + def update( + self, + index: Any, + id: Any, + body: Any, + doc_type: Optional[Any] = ..., + _source: Optional[Any] = ..., + _source_excludes: Optional[Any] = ..., + _source_includes: Optional[Any] = ..., + if_primary_term: Optional[Any] = ..., + if_seq_no: Optional[Any] = ..., + lang: Optional[Any] = ..., + refresh: Optional[Any] = ..., + require_alias: Optional[Any] = ..., + retry_on_conflict: Optional[Any] = ..., + routing: Optional[Any] = ..., + timeout: Optional[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 update_by_query( + self, + index: Any, + body: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + _source: Optional[Any] = ..., + _source_excludes: Optional[Any] = ..., + _source_includes: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + analyze_wildcard: Optional[Any] = ..., + analyzer: Optional[Any] = ..., + conflicts: Optional[Any] = ..., + default_operator: Optional[Any] = ..., + df: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + from_: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + lenient: Optional[Any] = ..., + max_docs: Optional[Any] = ..., + pipeline: Optional[Any] = ..., + preference: Optional[Any] = ..., + q: Optional[Any] = ..., + refresh: Optional[Any] = ..., + request_cache: Optional[Any] = ..., + requests_per_second: Optional[Any] = ..., + routing: Optional[Any] = ..., + scroll: Optional[Any] = ..., + scroll_size: Optional[Any] = ..., + search_timeout: Optional[Any] = ..., + search_type: Optional[Any] = ..., + size: Optional[Any] = ..., + slices: Optional[Any] = ..., + sort: Optional[Any] = ..., + stats: Optional[Any] = ..., + terminate_after: Optional[Any] = ..., + timeout: Optional[Any] = ..., + version: Optional[Any] = ..., + version_type: Optional[Any] = ..., + wait_for_active_shards: 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_by_query_rethrottle( + self, + task_id: Any, + requests_per_second: 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_script_context( + 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_script_languages( + 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 close_point_in_time( + self, + 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 open_point_in_time( + self, + index: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + keep_alive: Optional[Any] = ..., + preference: Optional[Any] = ..., + routing: 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: ... diff --git a/elasticsearch/client/async_search.pyi b/elasticsearch/client/async_search.pyi new file mode 100644 index 00000000..a8378a67 --- /dev/null +++ b/elasticsearch/client/async_search.pyi @@ -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: ... diff --git a/elasticsearch/client/autoscaling.pyi b/elasticsearch/client/autoscaling.pyi new file mode 100644 index 00000000..5c448217 --- /dev/null +++ b/elasticsearch/client/autoscaling.pyi @@ -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: ... diff --git a/elasticsearch/client/cat.py b/elasticsearch/client/cat.py index 5c3a313a..be424be5 100644 --- a/elasticsearch/client/cat.py +++ b/elasticsearch/client/cat.py @@ -596,7 +596,9 @@ class CatClient(NamespacedClient): 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): """ Gets configuration and usage information about datafeeds. @@ -606,6 +608,9 @@ class CatClient(NamespacedClient): :arg allow_no_datafeeds: Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no 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, yaml :arg h: Comma-separated list of column names to display @@ -623,7 +628,17 @@ class CatClient(NamespacedClient): 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): """ 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 matches no jobs. (This includes `_all` string or when no jobs have been 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 choices: b, k, kb, m, mb, g, gb, t, tb, p, pb :arg format: a short version of the Accept header, e.g. json, diff --git a/elasticsearch/client/cat.pyi b/elasticsearch/client/cat.pyi new file mode 100644 index 00000000..c77b9ae6 --- /dev/null +++ b/elasticsearch/client/cat.pyi @@ -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: ... diff --git a/elasticsearch/client/ccr.pyi b/elasticsearch/client/ccr.pyi new file mode 100644 index 00000000..179b857a --- /dev/null +++ b/elasticsearch/client/ccr.pyi @@ -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: ... diff --git a/elasticsearch/client/cluster.pyi b/elasticsearch/client/cluster.pyi new file mode 100644 index 00000000..12d0aeed --- /dev/null +++ b/elasticsearch/client/cluster.pyi @@ -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: ... diff --git a/elasticsearch/client/dangling_indices.pyi b/elasticsearch/client/dangling_indices.pyi new file mode 100644 index 00000000..3db12748 --- /dev/null +++ b/elasticsearch/client/dangling_indices.pyi @@ -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: ... diff --git a/elasticsearch/client/data_frame.pyi b/elasticsearch/client/data_frame.pyi new file mode 100644 index 00000000..13e3ce3c --- /dev/null +++ b/elasticsearch/client/data_frame.pyi @@ -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: ... diff --git a/elasticsearch/client/deprecation.pyi b/elasticsearch/client/deprecation.pyi new file mode 100644 index 00000000..f4f9761e --- /dev/null +++ b/elasticsearch/client/deprecation.pyi @@ -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: ... diff --git a/elasticsearch/client/enrich.pyi b/elasticsearch/client/enrich.pyi new file mode 100644 index 00000000..977c814d --- /dev/null +++ b/elasticsearch/client/enrich.pyi @@ -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: ... diff --git a/elasticsearch/client/eql.pyi b/elasticsearch/client/eql.pyi new file mode 100644 index 00000000..9247d5f9 --- /dev/null +++ b/elasticsearch/client/eql.pyi @@ -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: ... diff --git a/elasticsearch/client/graph.pyi b/elasticsearch/client/graph.pyi new file mode 100644 index 00000000..c3b864dc --- /dev/null +++ b/elasticsearch/client/graph.pyi @@ -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: ... diff --git a/elasticsearch/client/ilm.pyi b/elasticsearch/client/ilm.pyi new file mode 100644 index 00000000..5eca0382 --- /dev/null +++ b/elasticsearch/client/ilm.pyi @@ -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: ... diff --git a/elasticsearch/client/indices.py b/elasticsearch/client/indices.py index 22f68616..3a8d8284 100644 --- a/elasticsearch/client/indices.py +++ b/elasticsearch/client/indices.py @@ -1288,23 +1288,18 @@ class IndicesClient(NamespacedClient): ) @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 ``_ :arg name: The name of the data stream - :arg body: The data stream definition """ if name in SKIP_IN_PATH: raise ValueError("Empty value passed for a required argument 'name'.") return self.transport.perform_request( - "PUT", - _make_path("_data_stream", name), - params=params, - headers=headers, - body=body, + "PUT", _make_path("_data_stream", name), params=params, headers=headers ) @query_params() @@ -1478,7 +1473,7 @@ class IndicesClient(NamespacedClient): def resolve_index(self, name, params=None, headers=None): """ Returns information about any matching indices, aliases, and data streams - ``_ + ``_ :arg name: A comma-separated list of names or wildcard expressions @@ -1503,7 +1498,7 @@ class IndicesClient(NamespacedClient): def add_block(self, index, block, params=None, headers=None): """ Adds a block to an index. - ``_ + ``_ :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 diff --git a/elasticsearch/client/indices.pyi b/elasticsearch/client/indices.pyi new file mode 100644 index 00000000..65a534e1 --- /dev/null +++ b/elasticsearch/client/indices.pyi @@ -0,0 +1,1011 @@ +# 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 IndicesClient(NamespacedClient): + def analyze( + self, + body: Optional[Any] = ..., + 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: ... + def refresh( + 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 flush( + self, + index: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + force: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + wait_if_ongoing: 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( + self, + index: Any, + body: Optional[Any] = ..., + include_type_name: Optional[Any] = ..., + master_timeout: Optional[Any] = ..., + timeout: Optional[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 clone( + self, + index: Any, + target: Any, + body: Optional[Any] = ..., + master_timeout: Optional[Any] = ..., + timeout: Optional[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 get( + self, + index: Any, + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + flat_settings: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + include_defaults: Optional[Any] = ..., + include_type_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 open( + self, + index: Any, + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + master_timeout: Optional[Any] = ..., + timeout: Optional[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 close( + self, + index: Any, + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + master_timeout: Optional[Any] = ..., + timeout: Optional[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 delete( + self, + index: Any, + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: 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( + self, + index: Any, + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + flat_settings: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + include_defaults: 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]] = ..., + ) -> bool: ... + def exists_type( + self, + index: Any, + doc_type: Any, + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: 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]] = ..., + ) -> bool: ... + def put_mapping( + self, + body: Any, + index: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + include_type_name: Optional[Any] = ..., + master_timeout: Optional[Any] = ..., + timeout: Optional[Any] = ..., + write_index_only: 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_mapping( + self, + index: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + include_type_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 get_field_mapping( + self, + fields: Any, + index: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + include_defaults: Optional[Any] = ..., + include_type_name: 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 put_alias( + self, + index: Any, + name: Any, + body: 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_alias( + self, + name: Any, + index: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: 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]] = ..., + ) -> bool: ... + def get_alias( + self, + index: Optional[Any] = ..., + name: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: 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 update_aliases( + self, + 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_alias( + self, + index: Any, + 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 put_template( + self, + name: Any, + body: Any, + create: Optional[Any] = ..., + include_type_name: Optional[Any] = ..., + master_timeout: Optional[Any] = ..., + order: 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_template( + self, + name: Any, + flat_settings: 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]] = ..., + ) -> bool: ... + def get_template( + self, + name: Optional[Any] = ..., + flat_settings: Optional[Any] = ..., + include_type_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 delete_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_settings( + self, + index: Optional[Any] = ..., + name: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + flat_settings: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + include_defaults: 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_settings( + self, + body: Any, + index: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + flat_settings: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + master_timeout: Optional[Any] = ..., + preserve_existing: 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, + index: Optional[Any] = ..., + metric: Optional[Any] = ..., + completion_fields: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + fielddata_fields: Optional[Any] = ..., + fields: Optional[Any] = ..., + forbid_closed_indices: Optional[Any] = ..., + groups: Optional[Any] = ..., + include_segment_file_sizes: Optional[Any] = ..., + include_unloaded_segments: Optional[Any] = ..., + level: 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 segments( + self, + index: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: 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 validate_query( + self, + body: Optional[Any] = ..., + index: Optional[Any] = ..., + doc_type: Optional[Any] = ..., + all_shards: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + analyze_wildcard: Optional[Any] = ..., + analyzer: Optional[Any] = ..., + default_operator: Optional[Any] = ..., + df: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + explain: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + lenient: Optional[Any] = ..., + q: Optional[Any] = ..., + rewrite: 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_cache( + self, + index: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + fielddata: Optional[Any] = ..., + fields: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + query: Optional[Any] = ..., + request: 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 recovery( + self, + index: Optional[Any] = ..., + active_only: Optional[Any] = ..., + detailed: 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 upgrade( + self, + index: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + only_ancient_segments: 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_upgrade( + 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 flush_synced( + 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 shard_stores( + self, + index: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + 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 forcemerge( + self, + index: Optional[Any] = ..., + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + flush: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + max_num_segments: Optional[Any] = ..., + only_expunge_deletes: 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 shrink( + self, + index: Any, + target: Any, + body: Optional[Any] = ..., + copy_settings: Optional[Any] = ..., + master_timeout: Optional[Any] = ..., + timeout: Optional[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 split( + self, + index: Any, + target: Any, + body: Optional[Any] = ..., + copy_settings: Optional[Any] = ..., + master_timeout: Optional[Any] = ..., + timeout: Optional[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 rollover( + self, + alias: Any, + body: Optional[Any] = ..., + new_index: Optional[Any] = ..., + dry_run: Optional[Any] = ..., + include_type_name: Optional[Any] = ..., + master_timeout: Optional[Any] = ..., + timeout: Optional[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 freeze( + self, + index: Any, + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + master_timeout: Optional[Any] = ..., + timeout: Optional[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 unfreeze( + self, + index: Any, + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: Optional[Any] = ..., + master_timeout: Optional[Any] = ..., + timeout: Optional[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 reload_search_analyzers( + self, + index: 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 create_data_stream( + 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 delete_data_stream( + 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 delete_index_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 exists_index_template( + self, + name: Any, + flat_settings: 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]] = ..., + ) -> bool: ... + def get_index_template( + self, + name: Optional[Any] = ..., + flat_settings: 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_index_template( + self, + name: Any, + body: Any, + cause: Optional[Any] = ..., + create: 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 simulate_index_template( + self, + name: Any, + body: Optional[Any] = ..., + cause: Optional[Any] = ..., + create: 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 get_data_stream( + 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 simulate_template( + self, + body: Optional[Any] = ..., + name: Optional[Any] = ..., + cause: Optional[Any] = ..., + create: 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 resolve_index( + self, + name: Any, + expand_wildcards: 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 add_block( + self, + index: Any, + block: Any, + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_unavailable: 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 data_streams_stats( + 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: ... diff --git a/elasticsearch/client/ingest.pyi b/elasticsearch/client/ingest.pyi new file mode 100644 index 00000000..f3e273cd --- /dev/null +++ b/elasticsearch/client/ingest.pyi @@ -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: ... diff --git a/elasticsearch/client/license.pyi b/elasticsearch/client/license.pyi new file mode 100644 index 00000000..8e437c08 --- /dev/null +++ b/elasticsearch/client/license.pyi @@ -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: ... diff --git a/elasticsearch/client/migration.pyi b/elasticsearch/client/migration.pyi new file mode 100644 index 00000000..309fcc0d --- /dev/null +++ b/elasticsearch/client/migration.pyi @@ -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: ... diff --git a/elasticsearch/client/ml.py b/elasticsearch/client/ml.py index 9933c10d..45d88f1c 100644 --- a/elasticsearch/client/ml.py +++ b/elasticsearch/client/ml.py @@ -19,7 +19,7 @@ from .utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH, _bu 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): """ 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 matches no jobs. (This includes `_all` string or when no jobs have been 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 timeout: Controls the time to wait until a job has closed. Default to 30 minutes @@ -490,7 +493,7 @@ class MlClient(NamespacedClient): 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): """ Retrieves usage information for datafeeds. @@ -500,6 +503,9 @@ class MlClient(NamespacedClient): :arg allow_no_datafeeds: Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no 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( "GET", @@ -508,7 +514,7 @@ class MlClient(NamespacedClient): 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): """ Retrieves configuration information for datafeeds. @@ -518,6 +524,9 @@ class MlClient(NamespacedClient): :arg allow_no_datafeeds: Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no 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( "GET", @@ -590,7 +599,7 @@ class MlClient(NamespacedClient): 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): """ 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 matches no jobs. (This includes `_all` string or when no jobs have been 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( "GET", @@ -608,7 +620,7 @@ class MlClient(NamespacedClient): 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): """ 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 matches no jobs. (This includes `_all` string or when no jobs have been 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( "GET", @@ -665,6 +680,7 @@ class MlClient(NamespacedClient): @query_params( "allow_no_jobs", + "allow_no_match", "bucket_span", "end", "exclude_interim", @@ -685,6 +701,9 @@ class MlClient(NamespacedClient): :arg allow_no_jobs: Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been 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 the longest job bucket_span :arg end: Returns overall buckets with timestamps earlier than @@ -1040,16 +1059,20 @@ class MlClient(NamespacedClient): body=body, ) - @query_params("allow_no_datafeeds", "force", "timeout") - def stop_datafeed(self, datafeed_id, params=None, headers=None): + @query_params("allow_no_datafeeds", "allow_no_match", "force", "timeout") + def stop_datafeed(self, datafeed_id, body=None, params=None, headers=None): """ Stops one or more datafeeds. ``_ :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 expression matches no datafeeds. (This includes `_all` string or when no 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 timeout: Controls the time to wait until a datafeed has stopped. Default to 20 seconds @@ -1064,6 +1087,7 @@ class MlClient(NamespacedClient): _make_path("_ml", "datafeeds", datafeed_id, "_stop"), params=params, headers=headers, + body=body, ) @query_params( @@ -1413,6 +1437,7 @@ class MlClient(NamespacedClient): "decompress_definition", "for_export", "from_", + "include", "include_model_definition", "size", "tags", @@ -1432,6 +1457,9 @@ class MlClient(NamespacedClient): :arg for_export: Omits fields that are illegal to set on model PUT :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 be included in the results. These definitions can be large. So be cautious when including them. Defaults to false. diff --git a/elasticsearch/client/ml.pyi b/elasticsearch/client/ml.pyi new file mode 100644 index 00000000..72837c75 --- /dev/null +++ b/elasticsearch/client/ml.pyi @@ -0,0 +1,1033 @@ +# 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 MlClient(NamespacedClient): + def close_job( + self, + job_id: Any, + body: Optional[Any] = ..., + allow_no_jobs: Optional[Any] = ..., + allow_no_match: Optional[Any] = ..., + force: 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_calendar( + self, + calendar_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_calendar_event( + self, + calendar_id: Any, + event_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_calendar_job( + self, + calendar_id: Any, + job_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_datafeed( + self, + datafeed_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 delete_expired_data( + self, + body: Optional[Any] = ..., + job_id: Optional[Any] = ..., + requests_per_second: 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_filter( + self, + filter_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_forecast( + self, + job_id: Any, + forecast_id: Optional[Any] = ..., + allow_no_forecasts: 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_job( + self, + job_id: Any, + force: 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_model_snapshot( + self, + job_id: Any, + snapshot_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 find_file_structure( + self, + body: Any, + charset: Optional[Any] = ..., + column_names: Optional[Any] = ..., + delimiter: Optional[Any] = ..., + explain: Optional[Any] = ..., + format: Optional[Any] = ..., + grok_pattern: Optional[Any] = ..., + has_header_row: Optional[Any] = ..., + line_merge_size_limit: Optional[Any] = ..., + lines_to_sample: Optional[Any] = ..., + quote: Optional[Any] = ..., + should_trim_fields: Optional[Any] = ..., + timeout: Optional[Any] = ..., + timestamp_field: Optional[Any] = ..., + timestamp_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 flush_job( + self, + job_id: Any, + body: Optional[Any] = ..., + advance_time: Optional[Any] = ..., + calc_interim: Optional[Any] = ..., + end: Optional[Any] = ..., + skip_time: Optional[Any] = ..., + start: 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 forecast( + self, + job_id: Any, + duration: Optional[Any] = ..., + expires_in: Optional[Any] = ..., + max_model_memory: 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_buckets( + self, + job_id: Any, + body: Optional[Any] = ..., + timestamp: Optional[Any] = ..., + anomaly_score: Optional[Any] = ..., + desc: Optional[Any] = ..., + end: Optional[Any] = ..., + exclude_interim: Optional[Any] = ..., + expand: Optional[Any] = ..., + from_: Optional[Any] = ..., + size: Optional[Any] = ..., + sort: Optional[Any] = ..., + start: 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_calendar_events( + self, + calendar_id: Any, + end: Optional[Any] = ..., + from_: Optional[Any] = ..., + job_id: Optional[Any] = ..., + size: Optional[Any] = ..., + start: 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_calendars( + self, + body: Optional[Any] = ..., + calendar_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[Mapping[str, Any]] = ..., + headers: Optional[Mapping[str, str]] = ..., + ) -> Any: ... + def get_categories( + self, + job_id: Any, + body: Optional[Any] = ..., + category_id: Optional[Any] = ..., + from_: Optional[Any] = ..., + partition_field_value: 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_datafeed_stats( + self, + datafeed_id: Optional[Any] = ..., + allow_no_datafeeds: Optional[Any] = ..., + allow_no_match: 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_datafeeds( + self, + datafeed_id: Optional[Any] = ..., + allow_no_datafeeds: Optional[Any] = ..., + allow_no_match: 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_filters( + self, + filter_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[Mapping[str, Any]] = ..., + headers: Optional[Mapping[str, str]] = ..., + ) -> Any: ... + def get_influencers( + self, + job_id: Any, + body: Optional[Any] = ..., + desc: Optional[Any] = ..., + end: Optional[Any] = ..., + exclude_interim: Optional[Any] = ..., + from_: Optional[Any] = ..., + influencer_score: Optional[Any] = ..., + size: Optional[Any] = ..., + sort: Optional[Any] = ..., + start: 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_job_stats( + self, + job_id: Optional[Any] = ..., + allow_no_jobs: Optional[Any] = ..., + allow_no_match: 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_jobs( + self, + job_id: Optional[Any] = ..., + allow_no_jobs: Optional[Any] = ..., + allow_no_match: 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_model_snapshots( + self, + job_id: Any, + body: Optional[Any] = ..., + snapshot_id: Optional[Any] = ..., + desc: Optional[Any] = ..., + end: Optional[Any] = ..., + from_: Optional[Any] = ..., + size: Optional[Any] = ..., + sort: Optional[Any] = ..., + start: 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_overall_buckets( + self, + job_id: Any, + body: Optional[Any] = ..., + allow_no_jobs: Optional[Any] = ..., + allow_no_match: Optional[Any] = ..., + bucket_span: Optional[Any] = ..., + end: Optional[Any] = ..., + exclude_interim: Optional[Any] = ..., + overall_score: Optional[Any] = ..., + start: Optional[Any] = ..., + top_n: 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_records( + self, + job_id: Any, + body: Optional[Any] = ..., + desc: Optional[Any] = ..., + end: Optional[Any] = ..., + exclude_interim: Optional[Any] = ..., + from_: Optional[Any] = ..., + record_score: Optional[Any] = ..., + size: Optional[Any] = ..., + sort: Optional[Any] = ..., + start: 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, + pretty: Optional[bool] = ..., + human: Optional[bool] = ..., + error_trace: Optional[bool] = ..., + format: Optional[str] = ..., + filter_path: Optional[Union[str, Collection[str]]] = ..., + request_timeout: Optional[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 open_job( + self, + job_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 post_calendar_events( + self, + calendar_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 post_data( + self, + job_id: Any, + body: Any, + reset_end: Optional[Any] = ..., + reset_start: 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_datafeed( + self, + datafeed_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_calendar( + self, + calendar_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 put_calendar_job( + self, + calendar_id: Any, + job_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_datafeed( + self, + datafeed_id: Any, + body: Any, + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_throttled: 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 put_filter( + self, + filter_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 put_job( + self, + job_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 revert_model_snapshot( + self, + job_id: Any, + snapshot_id: Any, + body: Optional[Any] = ..., + delete_intervening_results: 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 set_upgrade_mode( + self, + enabled: 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 start_datafeed( + self, + datafeed_id: Any, + body: Optional[Any] = ..., + end: Optional[Any] = ..., + start: 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 stop_datafeed( + self, + datafeed_id: Any, + body: Optional[Any] = ..., + allow_no_datafeeds: Optional[Any] = ..., + allow_no_match: Optional[Any] = ..., + force: 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 update_datafeed( + self, + datafeed_id: Any, + body: Any, + allow_no_indices: Optional[Any] = ..., + expand_wildcards: Optional[Any] = ..., + ignore_throttled: 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 update_filter( + self, + filter_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 update_job( + self, + job_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 update_model_snapshot( + self, + job_id: Any, + snapshot_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 validate( + 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 validate_detector( + 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 delete_data_frame_analytics( + self, + id: Any, + force: 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 evaluate_data_frame( + 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_data_frame_analytics( + self, + 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_data_frame_analytics_stats( + self, + id: Optional[Any] = ..., + allow_no_match: Optional[Any] = ..., + from_: Optional[Any] = ..., + size: 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 put_data_frame_analytics( + 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 start_data_frame_analytics( + self, + id: Any, + body: 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 stop_data_frame_analytics( + self, + id: Any, + body: Optional[Any] = ..., + allow_no_match: Optional[Any] = ..., + force: 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_trained_model( + self, + model_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 explain_data_frame_analytics( + self, + body: Optional[Any] = ..., + 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_trained_models( + self, + model_id: Optional[Any] = ..., + allow_no_match: Optional[Any] = ..., + decompress_definition: Optional[Any] = ..., + for_export: Optional[Any] = ..., + from_: Optional[Any] = ..., + include: Optional[Any] = ..., + include_model_definition: Optional[Any] = ..., + size: Optional[Any] = ..., + tags: 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_trained_models_stats( + self, + model_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 put_trained_model( + self, + model_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 estimate_model_memory( + 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 update_data_frame_analytics( + 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: ... diff --git a/elasticsearch/client/monitoring.pyi b/elasticsearch/client/monitoring.pyi new file mode 100644 index 00000000..21770d13 --- /dev/null +++ b/elasticsearch/client/monitoring.pyi @@ -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: ... diff --git a/elasticsearch/client/nodes.pyi b/elasticsearch/client/nodes.pyi new file mode 100644 index 00000000..98fb03b2 --- /dev/null +++ b/elasticsearch/client/nodes.pyi @@ -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: ... diff --git a/elasticsearch/client/remote.pyi b/elasticsearch/client/remote.pyi new file mode 100644 index 00000000..5c8df709 --- /dev/null +++ b/elasticsearch/client/remote.pyi @@ -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: ... diff --git a/elasticsearch/client/rollup.pyi b/elasticsearch/client/rollup.pyi new file mode 100644 index 00000000..5f4bd7e6 --- /dev/null +++ b/elasticsearch/client/rollup.pyi @@ -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: ... diff --git a/elasticsearch/client/searchable_snapshots.py b/elasticsearch/client/searchable_snapshots.py index d294086c..b139a41d 100644 --- a/elasticsearch/client/searchable_snapshots.py +++ b/elasticsearch/client/searchable_snapshots.py @@ -23,7 +23,7 @@ class SearchableSnapshotsClient(NamespacedClient): def clear_cache(self, index=None, params=None, headers=None): """ Clear the cache of searchable snapshots. - ``_ + ``_ :arg index: A comma-separated list of index name to limit the operation @@ -74,8 +74,8 @@ class SearchableSnapshotsClient(NamespacedClient): @query_params() 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. + ``_ :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): """ Retrieve various statistics about searchable snapshots. - ``_ + ``_ :arg index: A comma-separated list of index names """ diff --git a/elasticsearch/client/searchable_snapshots.pyi b/elasticsearch/client/searchable_snapshots.pyi new file mode 100644 index 00000000..a4c1223b --- /dev/null +++ b/elasticsearch/client/searchable_snapshots.pyi @@ -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: ... diff --git a/elasticsearch/client/security.pyi b/elasticsearch/client/security.pyi new file mode 100644 index 00000000..3c6ea01d --- /dev/null +++ b/elasticsearch/client/security.pyi @@ -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: ... diff --git a/elasticsearch/client/slm.pyi b/elasticsearch/client/slm.pyi new file mode 100644 index 00000000..1b441e72 --- /dev/null +++ b/elasticsearch/client/slm.pyi @@ -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: ... diff --git a/elasticsearch/client/snapshot.pyi b/elasticsearch/client/snapshot.pyi new file mode 100644 index 00000000..723cbb44 --- /dev/null +++ b/elasticsearch/client/snapshot.pyi @@ -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: ... diff --git a/elasticsearch/client/sql.pyi b/elasticsearch/client/sql.pyi new file mode 100644 index 00000000..b655ba46 --- /dev/null +++ b/elasticsearch/client/sql.pyi @@ -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: ... diff --git a/elasticsearch/client/ssl.pyi b/elasticsearch/client/ssl.pyi new file mode 100644 index 00000000..038239f2 --- /dev/null +++ b/elasticsearch/client/ssl.pyi @@ -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: ... diff --git a/elasticsearch/client/tasks.pyi b/elasticsearch/client/tasks.pyi new file mode 100644 index 00000000..f542b7a2 --- /dev/null +++ b/elasticsearch/client/tasks.pyi @@ -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: ... diff --git a/elasticsearch/client/transform.pyi b/elasticsearch/client/transform.pyi new file mode 100644 index 00000000..2f5f4d25 --- /dev/null +++ b/elasticsearch/client/transform.pyi @@ -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: ... diff --git a/elasticsearch/client/utils.pyi b/elasticsearch/client/utils.pyi new file mode 100644 index 00000000..a5e99d1b --- /dev/null +++ b/elasticsearch/client/utils.pyi @@ -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: ... diff --git a/elasticsearch/client/watcher.pyi b/elasticsearch/client/watcher.pyi new file mode 100644 index 00000000..da5c72ee --- /dev/null +++ b/elasticsearch/client/watcher.pyi @@ -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: ... diff --git a/elasticsearch/client/xpack.pyi b/elasticsearch/client/xpack.pyi new file mode 100644 index 00000000..91e7b7a1 --- /dev/null +++ b/elasticsearch/client/xpack.pyi @@ -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: ...