Skip to content

Commit 5e14c59

Browse files
authored
fix: Add all supported uCAIP GA regions (#350)
1 parent 6f6c2dd commit 5e14c59

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

google/cloud/aiplatform/constants.py

+16-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,22 @@
1616
#
1717

1818
DEFAULT_REGION = "us-central1"
19-
SUPPORTED_REGIONS = ("us-central1", "europe-west4", "asia-east1")
19+
SUPPORTED_REGIONS = {
20+
"asia-east1",
21+
"asia-northeast1",
22+
"asia-northeast3",
23+
"asia-southeast1",
24+
"australia-southeast1",
25+
"europe-west1",
26+
"europe-west2",
27+
"europe-west4",
28+
"northamerica-northeast1",
29+
"us-central1",
30+
"us-east1",
31+
"us-east4",
32+
"us-west1",
33+
}
34+
2035
API_BASE_PATH = "aiplatform.googleapis.com"
2136

2237
# Batch Prediction

tests/unit/aiplatform/test_initializer.py

+5
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ def test_create_client_user_agent(self):
141141
("us-central1", None, "us-central1-aiplatform.googleapis.com"),
142142
("us-central1", "europe-west4", "europe-west4-aiplatform.googleapis.com",),
143143
("asia-east1", None, "asia-east1-aiplatform.googleapis.com"),
144+
(
145+
"asia-southeast1",
146+
"australia-southeast1",
147+
"australia-southeast1-aiplatform.googleapis.com",
148+
),
144149
],
145150
)
146151
def test_get_client_options(

0 commit comments

Comments
 (0)