Skip to content

Commit

Permalink
fix(client): add plugin client typing to the opensearch client
Browse files Browse the repository at this point in the history
Signed-off-by: florian <[email protected]>
  • Loading branch information
florianvazelle committed Jul 19, 2023
1 parent 4dba35d commit 00b0e34
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions opensearchpy/_async/client/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ from __future__ import unicode_literals
import logging
from typing import Any, Collection, MutableMapping, Optional, Tuple, Type, Union

from ..plugins.alerting import AlertingClient
from ..plugins.index_management import IndexManagementClient
from ..plugins.security import SecurityClient
from ..transport import AsyncTransport
from .cat import CatClient
from .cluster import ClusterClient
Expand All @@ -56,6 +59,11 @@ class AsyncOpenSearch(object):
remote: RemoteClient
snapshot: SnapshotClient
tasks: TasksClient

alerting: AlertingClient
security: SecurityClient
index_management: IndexManagementClient

def __init__(
self,
hosts: Any = ...,
Expand Down
8 changes: 8 additions & 0 deletions opensearchpy/client/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ from __future__ import unicode_literals
import logging
from typing import Any, Collection, MutableMapping, Optional, Tuple, Type, Union

from ..plugins.alerting import AlertingClient
from ..plugins.index_management import IndexManagementClient
from ..plugins.security import SecurityClient
from ..transport import Transport
from .cat import CatClient
from .cluster import ClusterClient
Expand All @@ -56,6 +59,11 @@ class OpenSearch(object):
remote: RemoteClient
snapshot: SnapshotClient
tasks: TasksClient

alerting: AlertingClient
security: SecurityClient
index_management: IndexManagementClient

def __init__(
self, hosts: Any = ..., transport_class: Type[Transport] = ..., **kwargs: Any
) -> None: ...
Expand Down

0 comments on commit 00b0e34

Please sign in to comment.