diff --git a/datastore/cloud-client/snippets.py b/datastore/cloud-client/snippets.py index eff5f48f7bf..5b9b2455c56 100644 --- a/datastore/cloud-client/snippets.py +++ b/datastore/cloud-client/snippets.py @@ -916,7 +916,7 @@ def regional_endpoint(): from google.cloud import datastore from google.api_core.client_options import ClientOptions - ENDPOINT = "https://nam5-datastore.googleapis.com" + ENDPOINT = "https://datastore.africa-south1.rep.googleapis.com" client_options = ClientOptions(api_endpoint=ENDPOINT) client = datastore.Client(client_options=client_options) diff --git a/firestore/cloud-client/snippets.py b/firestore/cloud-client/snippets.py index 09dff308a50..bc3822bfd7a 100644 --- a/firestore/cloud-client/snippets.py +++ b/firestore/cloud-client/snippets.py @@ -1007,7 +1007,7 @@ def create_and_build_bundle(): def regional_endpoint(): # [START firestore_regional_endpoint] - ENDPOINT = "nam5-firestore.googleapis.com" + ENDPOINT = "firestore.africa-south1.rep.googleapis.com" client_options = ClientOptions(api_endpoint=ENDPOINT) db = firestore.Client(client_options=client_options)