From 4dd1e361534efe294512a5f69907ddc65e2e9a5e Mon Sep 17 00:00:00 2001 From: Aristide Niyungeko <2230766+aristide-n@users.noreply.github.com> Date: Wed, 15 Oct 2025 20:16:16 -0700 Subject: [PATCH] Replace the Datastore and Firestore locational endpoints URL examples with regional endpoints URLs --- datastore/cloud-client/snippets.py | 2 +- firestore/cloud-client/snippets.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)