diff --git a/pubsub/google/cloud/pubsub_v1/publisher/client.py b/pubsub/google/cloud/pubsub_v1/publisher/client.py index b837de24c6f0..006bf509d24b 100644 --- a/pubsub/google/cloud/pubsub_v1/publisher/client.py +++ b/pubsub/google/cloud/pubsub_v1/publisher/client.py @@ -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 diff --git a/pubsub/google/cloud/pubsub_v1/subscriber/client.py b/pubsub/google/cloud/pubsub_v1/subscriber/client.py index f2e8faa4fcf5..7dbb425caf66 100644 --- a/pubsub/google/cloud/pubsub_v1/subscriber/client.py +++ b/pubsub/google/cloud/pubsub_v1/subscriber/client.py @@ -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):