Skip to content

Commit 166908f

Browse files
committed
Remove AWS codes
1 parent fdca286 commit 166908f

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

singlestoredb/management/region.py

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -7,44 +7,6 @@
77
from .utils import vars_to_str
88

99

10-
CODES = {
11-
'AWS': {
12-
'US East 1 (N. Virginia)': 'us-east-1',
13-
'US East 2 (Ohio)': 'us-east-2',
14-
'US West 1 (N. California)': 'us-west-1',
15-
'US West 2 (Oregon)': 'us-west-2',
16-
'Africa South 1 (Cape Town)': 'af-south-1',
17-
'Asia Pacific East 1 (Hong Kong)': 'ap-east-1',
18-
'Asia Pacific South 2 (Hyderabad)': 'ap-south-2',
19-
'Asia Pacific Southeast 3 (Jakarta)': 'ap-southeast-3',
20-
'Asia Pacific Southeast 5 (Malaysia)': 'ap-southeast-5',
21-
'Asia Pacific Southeast 4 (Melbourne)': 'ap-southeast-4',
22-
'Asia Pacific South 1 (Mumbai)': 'ap-south-1',
23-
'Asia Pacific Northeast 3 (Osaka)': 'ap-northeast-3',
24-
'Asia Pacific Northeaest 2 (Seoul)': 'ap-northeast-2',
25-
'Asia Pacific Southeast 1 (Singapore)': 'ap-southeast-1',
26-
'Asia Pacific Southeast 2 (Sydney)': 'ap-southeast-2',
27-
'Asia Pacific Northeast 1 (Tokyo)': 'ap-northeast-1',
28-
'Canada Central 1 (Central)': 'ca-central-1',
29-
'Canada West 1 (Calgary)': 'ca-west-1',
30-
'China North 1 (Beijing)': 'cn-north-1',
31-
'China Northwest 1 (Ningxia)': 'cn-northweast-1',
32-
'Europe Central 1 (Frankfurt)': 'eu-central-1',
33-
'Europe West 1 (Ireland)': 'eu-west-1',
34-
'Europe West 2 (London)': 'eu-west-2',
35-
'Europe South 1 (Milan)': 'eu-south-1',
36-
'Europe West 3 (Paris)': 'eu-west-3',
37-
'Europe South 2 (Spain)': 'eu-south-2',
38-
'Europe North 1 (Stockholm)': 'eu-north-1',
39-
'Europe Central 2 (Zurich)': 'eu-central-2',
40-
'Israel Central 1 (Tel Aviv)': 'il-central-1',
41-
'Middle East South 1 (Bahrain)': 'me-south-1',
42-
'Middle East 1 (UAE)': 'me-central-1',
43-
'South America East 1 (Sao Paulo)': 'sa-east-1',
44-
},
45-
}
46-
47-
4810
class Region(object):
4911
"""
5012
Cluster region information.
@@ -103,7 +65,3 @@ def from_dict(cls, obj: Dict[str, str], manager: Manager) -> 'Region':
10365
)
10466
out._manager = manager
10567
return out
106-
107-
@property
108-
def code(self) -> str:
109-
return CODES[self.provider][self.name]

0 commit comments

Comments
 (0)