From c7a133ebb2e0486fe5d53584148b27d71e12ec3f Mon Sep 17 00:00:00 2001 From: jialuo Date: Wed, 30 Oct 2024 17:38:20 +0000 Subject: [PATCH] refactor: sort the region and location in constants.py --- bigframes/constants.py | 61 ++++++++++++++++++++---------------------- 1 file changed, 29 insertions(+), 32 deletions(-) diff --git a/bigframes/constants.py b/bigframes/constants.py index f344c6ecee..dbc24401a7 100644 --- a/bigframes/constants.py +++ b/bigframes/constants.py @@ -24,55 +24,52 @@ # https://cloud.google.com/bigquery/docs/locations BIGQUERY_REGIONS = frozenset( { - "us-east5", - "us-south1", - "us-central1", - "us-west4", - "us-west2", - "northamerica-northeast1", - "us-east4", - "us-west1", - "us-west3", - "southamerica-east1", - "southamerica-west1", - "us-east1", - "northamerica-northeast2", - "asia-south2", + "africa-south1", + "asia-east1", "asia-east2", - "asia-southeast2", - "australia-southeast2", - "asia-south1", + "asia-northeast1", "asia-northeast2", "asia-northeast3", + "asia-south1", + "asia-south2", "asia-southeast1", + "asia-southeast2", "australia-southeast1", - "asia-east1", - "asia-northeast1", + "australia-southeast2", + "europe-central2", + "europe-north1", + "europe-southwest1", "europe-west1", "europe-west10", - "europe-north1", - "europe-west3", + "europe-west12", "europe-west2", - "europe-southwest1", - "europe-west8", + "europe-west3", "europe-west4", - "europe-west9", - "europe-west12", - "europe-central2", "europe-west6", - "me-central2", + "europe-west8", + "europe-west9", "me-central1", - "me-west1", "me-central2", - "me-central1", "me-west1", - "africa-south1", + "northamerica-northeast1", + "northamerica-northeast2", + "southamerica-east1", + "southamerica-west1", + "us-central1", + "us-east1", + "us-east4", + "us-east5", + "us-south1", + "us-west1", + "us-west2", + "us-west3", + "us-west4", } ) BIGQUERY_MULTIREGIONS = frozenset( { - "US", "EU", + "US", } ) ALL_BIGQUERY_LOCATIONS = frozenset(BIGQUERY_REGIONS.union(BIGQUERY_MULTIREGIONS)) @@ -81,8 +78,8 @@ REP_ENABLED_BIGQUERY_LOCATIONS = frozenset( { "europe-west3", - "europe-west9", "europe-west8", + "europe-west9", "me-central2", "us-central1", "us-central2",