Skip to content

Commit 31bbd5c

Browse files
bring back the streams namespace
1 parent c5cde43 commit 31bbd5c

File tree

5 files changed

+35
-2
lines changed

5 files changed

+35
-2
lines changed

docs/sphinx/es_api.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ arguments are required for all calls.
5151
api/snapshots
5252
api/snapshottable-features
5353
api/sql
54+
api/streams
5455
api/synonyms
5556
api/tls-ssl
5657
api/tasks

elasticsearch/_async/client/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
from .snapshot import SnapshotClient
7676
from .sql import SqlClient
7777
from .ssl import SslClient
78+
from .streams import StreamsClient
7879
from .synonyms import SynonymsClient
7980
from .tasks import TasksClient
8081
from .text_structure import TextStructureClient
@@ -380,6 +381,7 @@ def __init__(
380381
self.shutdown = ShutdownClient(self)
381382
self.sql = SqlClient(self)
382383
self.ssl = SslClient(self)
384+
self.streams = StreamsClient(self)
383385
self.synonyms = SynonymsClient(self)
384386
self.text_structure = TextStructureClient(self)
385387
self.transform = TransformClient(self)

elasticsearch/_async/client/streams.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,21 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
class C:
18+
import typing as t
19+
20+
from elastic_transport import ObjectApiResponse, TextApiResponse
21+
22+
from ._base import NamespacedClient
23+
from .utils import (
24+
SKIP_IN_PATH,
25+
Stability,
26+
_availability_warning,
27+
_quote,
28+
_rewrite_parameters,
29+
)
30+
31+
32+
class StreamsClient(NamespacedClient):
1933

2034
@_rewrite_parameters()
2135
@_availability_warning(Stability.EXPERIMENTAL)

elasticsearch/_sync/client/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
from .snapshot import SnapshotClient
7676
from .sql import SqlClient
7777
from .ssl import SslClient
78+
from .streams import StreamsClient
7879
from .synonyms import SynonymsClient
7980
from .tasks import TasksClient
8081
from .text_structure import TextStructureClient
@@ -380,6 +381,7 @@ def __init__(
380381
self.shutdown = ShutdownClient(self)
381382
self.sql = SqlClient(self)
382383
self.ssl = SslClient(self)
384+
self.streams = StreamsClient(self)
383385
self.synonyms = SynonymsClient(self)
384386
self.text_structure = TextStructureClient(self)
385387
self.transform = TransformClient(self)

elasticsearch/_sync/client/streams.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,21 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
class C:
18+
import typing as t
19+
20+
from elastic_transport import ObjectApiResponse, TextApiResponse
21+
22+
from ._base import NamespacedClient
23+
from .utils import (
24+
SKIP_IN_PATH,
25+
Stability,
26+
_availability_warning,
27+
_quote,
28+
_rewrite_parameters,
29+
)
30+
31+
32+
class StreamsClient(NamespacedClient):
1933

2034
@_rewrite_parameters()
2135
@_availability_warning(Stability.EXPERIMENTAL)

0 commit comments

Comments
 (0)