elastic_enterprise_search/_async/client/_base.py [30:65]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
)
from elastic_transport.client_utils import DEFAULT, DefaultType

from ..._utils import (
    CLIENT_META_SERVICE,
    _quote_query,
    client_node_configs,
    resolve_auth_headers,
)
from ...exceptions import _HTTP_EXCEPTIONS, ApiError

_TYPE_SELF = t.TypeVar("_TYPE_SELF", bound="BaseClient")
_TYPE_HOSTS = t.Union[str, t.Dict[str, t.Any], t.List[str], t.List[t.Dict[str, t.Any]]]


class BaseClient:
    def __init__(
        self,
        hosts: t.Optional[_TYPE_HOSTS] = None,
        *,
        # API
        basic_auth: t.Optional[t.Union[str, t.Tuple[str, str]]] = DEFAULT,
        bearer_auth: t.Optional[str] = DEFAULT,
        # Node
        headers: t.Union[DefaultType, t.Mapping[str, str]] = DEFAULT,
        connections_per_node: t.Union[DefaultType, int] = DEFAULT,
        http_compress: t.Union[DefaultType, bool] = DEFAULT,
        verify_certs: t.Union[DefaultType, bool] = DEFAULT,
        ca_certs: t.Union[DefaultType, str] = DEFAULT,
        client_cert: t.Union[DefaultType, str] = DEFAULT,
        client_key: t.Union[DefaultType, str] = DEFAULT,
        ssl_assert_hostname: t.Union[DefaultType, str] = DEFAULT,
        ssl_assert_fingerprint: t.Union[DefaultType, str] = DEFAULT,
        ssl_version: t.Union[DefaultType, int] = DEFAULT,
        ssl_context: t.Union[DefaultType, t.Any] = DEFAULT,
        ssl_show_warn: t.Union[DefaultType, bool] = DEFAULT,
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



elastic_enterprise_search/_sync/client/_base.py [30:65]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
)
from elastic_transport.client_utils import DEFAULT, DefaultType

from ..._utils import (
    CLIENT_META_SERVICE,
    _quote_query,
    client_node_configs,
    resolve_auth_headers,
)
from ...exceptions import _HTTP_EXCEPTIONS, ApiError

_TYPE_SELF = t.TypeVar("_TYPE_SELF", bound="BaseClient")
_TYPE_HOSTS = t.Union[str, t.Dict[str, t.Any], t.List[str], t.List[t.Dict[str, t.Any]]]


class BaseClient:
    def __init__(
        self,
        hosts: t.Optional[_TYPE_HOSTS] = None,
        *,
        # API
        basic_auth: t.Optional[t.Union[str, t.Tuple[str, str]]] = DEFAULT,
        bearer_auth: t.Optional[str] = DEFAULT,
        # Node
        headers: t.Union[DefaultType, t.Mapping[str, str]] = DEFAULT,
        connections_per_node: t.Union[DefaultType, int] = DEFAULT,
        http_compress: t.Union[DefaultType, bool] = DEFAULT,
        verify_certs: t.Union[DefaultType, bool] = DEFAULT,
        ca_certs: t.Union[DefaultType, str] = DEFAULT,
        client_cert: t.Union[DefaultType, str] = DEFAULT,
        client_key: t.Union[DefaultType, str] = DEFAULT,
        ssl_assert_hostname: t.Union[DefaultType, str] = DEFAULT,
        ssl_assert_fingerprint: t.Union[DefaultType, str] = DEFAULT,
        ssl_version: t.Union[DefaultType, int] = DEFAULT,
        ssl_context: t.Union[DefaultType, t.Any] = DEFAULT,
        ssl_show_warn: t.Union[DefaultType, bool] = DEFAULT,
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



