From 6c84c4a51ce1cd7d5f3b881b25dfda53299c2e94 Mon Sep 17 00:00:00 2001 From: Chronicle Team Date: Tue, 20 Jun 2023 13:47:45 -0700 Subject: [PATCH] Internal change PiperOrigin-RevId: 542037945 --- common/regions.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/common/regions.py b/common/regions.py index b55d332..e869113 100644 --- a/common/regions.py +++ b/common/regions.py @@ -19,6 +19,15 @@ import argparse +REGION_LIST = ( + "us", + "asia-southeast1", + "europe", + "europe-west2", + "australia-southeast1", + "me-west1", +) + def add_argument_region(parser: argparse.ArgumentParser): """Adds a shared command-line argument to all the sample modules.""" @@ -28,13 +37,7 @@ def add_argument_region(parser: argparse.ArgumentParser): type=str, required=False, default="us", - choices=( - "asia-southeast1", - "europe", - "us", - "europe-west2", - "australia-southeast1", - ), + choices=REGION_LIST, help="the region where the customer is located (default: us)", )