Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pubsub/google/cloud/pubsub_v1/publisher/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ class Client(object):
Before being passed along to the GAPIC constructor, a channel may
be added if ``credentials`` are passed explicitly or if the
Pub / Sub emulator is detected as running.
Regional endpoints can be set via `client_options` that takes a
single key-value pair that defines the endpoint, i.e.
`client_options={"api_endpoint": REGIONAL_ENDPOINT}`
"""

_batch_class = thread.Batch
Expand Down
3 changes: 3 additions & 0 deletions pubsub/google/cloud/pubsub_v1/subscriber/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ class Client(object):
:class:`~.gapic.pubsub.v1.subscriber_client.SubscriberClient`.
Generally, you should not need to set additional keyword
arguments.
Regional endpoints can be set via `client_options` that takes a
single key-value pair that defines the endpoint, i.e.
`client_options={"api_endpoint": REGIONAL_ENDPOINT}`.
"""

def __init__(self, **kwargs):
Expand Down