Skip to content

Commit

Permalink
feat: surface SchemaServiceClient in google.cloud.pubsub (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
plamut committed Jan 29, 2021
1 parent b112f4f commit 8751bcc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions google/cloud/pubsub/__init__.py
Expand Up @@ -19,11 +19,13 @@

from google.cloud.pubsub_v1 import PublisherClient
from google.cloud.pubsub_v1 import SubscriberClient
from google.cloud.pubsub_v1 import SchemaServiceClient
from google.cloud.pubsub_v1 import types


__all__ = (
"types",
"PublisherClient",
"SubscriberClient",
"SchemaServiceClient",
)
7 changes: 6 additions & 1 deletion google/cloud/pubsub_v1/__init__.py
Expand Up @@ -17,6 +17,7 @@
from google.cloud.pubsub_v1 import types
from google.cloud.pubsub_v1 import publisher
from google.cloud.pubsub_v1 import subscriber
from google.pubsub_v1.services import schema_service


class PublisherClient(publisher.Client):
Expand All @@ -27,4 +28,8 @@ class SubscriberClient(subscriber.Client):
__doc__ = subscriber.Client.__doc__


__all__ = ("types", "PublisherClient", "SubscriberClient")
class SchemaServiceClient(schema_service.client.SchemaServiceClient):
__doc__ = schema_service.client.SchemaServiceClient.__doc__


__all__ = ("types", "PublisherClient", "SubscriberClient", "SchemaServiceClient")

0 comments on commit 8751bcc

Please sign in to comment.