Skip to content

Commit 9364fc8

Browse files
committed
Update region data on GCS and Backblaze
1 parent 9a0859a commit 9364fc8

File tree

4 files changed

+94
-24
lines changed

4 files changed

+94
-24
lines changed

Src/SimpleS3.Extensions.BackBlazeB2/BackBlazeB2Region.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
public enum BackBlazeB2Region
44
{
55
Unknown = 0,
6+
UsWest000,
67
UsWest001,
7-
UsWest002
8+
UsWest002,
9+
EuCentral003,
10+
UsWest004,
11+
UsEast005
812
}

Src/SimpleS3.Extensions.BackBlazeB2/BackblazeB2RegionData.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ public class BackblazeB2RegionData : IRegionData
88

99
public IEnumerable<IRegionInfo> GetRegions()
1010
{
11+
yield return new RegionInfo(BackBlazeB2Region.UsWest000, "us-west-000", "US West 0");
1112
yield return new RegionInfo(BackBlazeB2Region.UsWest001, "us-west-001", "US West 1");
1213
yield return new RegionInfo(BackBlazeB2Region.UsWest002, "us-west-002", "US West 2");
14+
yield return new RegionInfo(BackBlazeB2Region.EuCentral003, "eu-central-003", "EU Central 3");
15+
yield return new RegionInfo(BackBlazeB2Region.UsWest004, "us-west-004", "US West 4");
16+
yield return new RegionInfo(BackBlazeB2Region.UsEast005, "us-east-005", "US East 5");
1317
}
1418
}

Src/SimpleS3.Extensions.GoogleCloudStorage/GoogleCloudStorageRegion.cs

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ public enum GoogleCloudStorageRegion
2020
/// <summary>North America (Northern Virginia)</summary>
2121
UsEast4,
2222

23+
/// <summary>North America (Columbus)</summary>
24+
UsEast5,
25+
26+
/// <summary>North America (Dallas)</summary>
27+
UsSouth1,
28+
2329
/// <summary>North America (Oregon)</summary>
2430
UsWest1,
2531

@@ -41,6 +47,9 @@ public enum GoogleCloudStorageRegion
4147
/// <summary>Europe (Finland)</summary>
4248
EuropeNorth1,
4349

50+
/// <summary>Europe (Madrid)</summary>
51+
EuropeSouthWest1,
52+
4453
/// <summary>Europe (Belgium)</summary>
4554
EuropeWest1,
4655

@@ -56,6 +65,18 @@ public enum GoogleCloudStorageRegion
5665
/// <summary>Europe (Zürich)</summary>
5766
EuropeWest6,
5867

68+
/// <summary>Europe (Milan)</summary>
69+
EuropeWest8,
70+
71+
/// <summary>Europe (Paris)</summary>
72+
EuropeWest9,
73+
74+
/// <summary>Europe (Berlin)</summary>
75+
EuropeWest10,
76+
77+
/// <summary>Europe (Turin)</summary>
78+
EuropeWest12,
79+
5980
/// <summary>Asia (Taiwan)</summary>
6081
AsiaEast1,
6182

@@ -87,5 +108,17 @@ public enum GoogleCloudStorageRegion
87108
AustraliaSouthEast1,
88109

89110
/// <summary>Australia (Melbourne)</summary>
90-
AustraliaSouthEast2
111+
AustraliaSouthEast2,
112+
113+
/// <summary>Middle East (Doha)</summary>
114+
MiddleEastCentral1,
115+
116+
/// <summary>Middle East (Dammam, Saudi Arabia)</summary>
117+
MiddleEastCentral2,
118+
119+
/// <summary>Middle East (Tel Aviv)</summary>
120+
MiddleEastWest1,
121+
122+
/// <summary>Africa (Johannesburg)</summary>
123+
AfricaSouth1
91124
}

Src/SimpleS3.Extensions.GoogleCloudStorage/GoogleCloudStorageRegionData.cs

Lines changed: 51 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,62 @@ public class GoogleCloudStorageRegionData : IRegionData
88

99
public IEnumerable<IRegionInfo> GetRegions()
1010
{
11+
//North America
1112
yield return new RegionInfo(GoogleCloudStorageRegion.CanadaNorthEast1, "NORTHAMERICA-NORTHEAST1", "North America (Montréal)");
1213
yield return new RegionInfo(GoogleCloudStorageRegion.CanadaNorthEast2, "NORTHAMERICA-NORTHEAST2", "North America (Toronto)");
1314
yield return new RegionInfo(GoogleCloudStorageRegion.UsCentral1, "US-CENTRAL1", "North America (Iowa)");
14-
yield return new RegionInfo(GoogleCloudStorageRegion.UsEast1, "US-EAST1", "East US (South Carolina)");
15-
yield return new RegionInfo(GoogleCloudStorageRegion.UsEast4, "US-EAST4", "East US (Northern Virginia)");
16-
yield return new RegionInfo(GoogleCloudStorageRegion.UsWest1, "US-WEST1", "West US (Oregon)");
17-
yield return new RegionInfo(GoogleCloudStorageRegion.UsWest2, "US-WEST2", "West US (Los Angeles)");
18-
yield return new RegionInfo(GoogleCloudStorageRegion.UsWest3, "US-WEST3", "West US (Salt Lake City)");
19-
yield return new RegionInfo(GoogleCloudStorageRegion.UsWest4, "US-WEST4", "West US (Las Vegas)");
15+
yield return new RegionInfo(GoogleCloudStorageRegion.UsEast1, "US-EAST1", "North America (South Carolina)");
16+
yield return new RegionInfo(GoogleCloudStorageRegion.UsEast4, "US-EAST4", "North America (Northern Virginia)");
17+
yield return new RegionInfo(GoogleCloudStorageRegion.UsEast5, "US-WEST1", "North America (Columbus)");
18+
yield return new RegionInfo(GoogleCloudStorageRegion.UsSouth1, "US-SOUTH1", "North America (Dallas)");
19+
yield return new RegionInfo(GoogleCloudStorageRegion.UsWest1, "US-WEST1", "North America (Oregon)");
20+
yield return new RegionInfo(GoogleCloudStorageRegion.UsWest2, "US-WEST2", "North America (Los Angeles)");
21+
yield return new RegionInfo(GoogleCloudStorageRegion.UsWest3, "US-WEST3", "North America (Salt Lake City)");
22+
yield return new RegionInfo(GoogleCloudStorageRegion.UsWest4, "US-WEST4", "North America (Las Vegas)");
23+
24+
//South America
2025
yield return new RegionInfo(GoogleCloudStorageRegion.SouthAmericaEast1, "SOUTHAMERICA-EAST1", "South America (São Paulo)");
21-
yield return new RegionInfo(GoogleCloudStorageRegion.EuropeCentral2, "EUROPE-CENTRAL2", "Central Europe (Warsaw)");
22-
yield return new RegionInfo(GoogleCloudStorageRegion.EuropeNorth1, "EUROPE-NORTH1", "North Europe (Finland)");
23-
yield return new RegionInfo(GoogleCloudStorageRegion.EuropeWest1, "EUROPE-WEST1", "West Europe (Belgium)");
24-
yield return new RegionInfo(GoogleCloudStorageRegion.EuropeWest2, "EUROPE-WEST2", "West Europe (London)");
25-
yield return new RegionInfo(GoogleCloudStorageRegion.EuropeWest3, "EUROPE-WEST3", "West Europe (Frankfurt)");
26-
yield return new RegionInfo(GoogleCloudStorageRegion.EuropeWest4, "EUROPE-WEST4", "West Europe (Netherlands)");
27-
yield return new RegionInfo(GoogleCloudStorageRegion.EuropeWest6, "EUROPE-WEST6", "West Europe (Zürich)");
28-
yield return new RegionInfo(GoogleCloudStorageRegion.AsiaEast1, "ASIA-EAST1", "East Asia (Taiwan)");
29-
yield return new RegionInfo(GoogleCloudStorageRegion.AsiaEast2, "ASIA-EAST2", "East Asia (Hong Kong)");
30-
yield return new RegionInfo(GoogleCloudStorageRegion.AsiaNorthEast1, "ASIA-NORTHEAST1", "Northeast Asia (Tokyo)");
31-
yield return new RegionInfo(GoogleCloudStorageRegion.AsiaNorthEast2, "ASIA-NORTHEAST2", "Northeast Asia (Osaka)");
32-
yield return new RegionInfo(GoogleCloudStorageRegion.AsiaNorthEast3, "ASIA-NORTHEAST3", "Northeast Asia (Seoul)");
33-
yield return new RegionInfo(GoogleCloudStorageRegion.AsiaSouth1, "ASIA-SOUTH1", "South Asia (Mumbai)");
34-
yield return new RegionInfo(GoogleCloudStorageRegion.AsiaSouth2, "ASIA-SOUTH2", "South Asia (Delhi)");
35-
yield return new RegionInfo(GoogleCloudStorageRegion.AsiaSouthEast1, "ASIA-SOUTHEAST1", "Southeast Asia (Singapore)");
36-
yield return new RegionInfo(GoogleCloudStorageRegion.AsiaSouthEast2, "ASIA-SOUTHEAST2", "Southeast Asia (Jakarta)");
26+
yield return new RegionInfo(GoogleCloudStorageRegion.SouthAmericaEast1, "SOUTHAMERICA-WEST1", "South America (Santiago)");
27+
28+
//Europe
29+
yield return new RegionInfo(GoogleCloudStorageRegion.EuropeCentral2, "EUROPE-CENTRAL2", "Europe (Warsaw)");
30+
yield return new RegionInfo(GoogleCloudStorageRegion.EuropeNorth1, "EUROPE-NORTH1", "Europe (Finland)");
31+
yield return new RegionInfo(GoogleCloudStorageRegion.EuropeSouthWest1, "EUROPE-SOUTHWEST1", "Europe (Madrid)");
32+
yield return new RegionInfo(GoogleCloudStorageRegion.EuropeWest1, "EUROPE-WEST1", "Europe (Belgium)");
33+
yield return new RegionInfo(GoogleCloudStorageRegion.EuropeWest2, "EUROPE-WEST2", "Europe (London)");
34+
yield return new RegionInfo(GoogleCloudStorageRegion.EuropeWest3, "EUROPE-WEST3", "Europe (Frankfurt)");
35+
yield return new RegionInfo(GoogleCloudStorageRegion.EuropeWest4, "EUROPE-WEST4", "Europe (Netherlands)");
36+
yield return new RegionInfo(GoogleCloudStorageRegion.EuropeWest6, "EUROPE-WEST6", "Europe (Zürich)");
37+
yield return new RegionInfo(GoogleCloudStorageRegion.EuropeWest8, "EUROPE-WEST8", "Europe (Milan)");
38+
yield return new RegionInfo(GoogleCloudStorageRegion.EuropeWest9, "EUROPE-WEST9", "Europe (Paris)");
39+
yield return new RegionInfo(GoogleCloudStorageRegion.EuropeWest10, "EUROPE-WEST10", "Europe (Berlin)");
40+
yield return new RegionInfo(GoogleCloudStorageRegion.EuropeWest12, "EUROPE-WEST12", "Europe (Turin)");
41+
42+
//Asia
43+
yield return new RegionInfo(GoogleCloudStorageRegion.AsiaEast1, "ASIA-EAST1", "Asia (Taiwan)");
44+
yield return new RegionInfo(GoogleCloudStorageRegion.AsiaEast2, "ASIA-EAST2", "Asia (Hong Kong)");
45+
yield return new RegionInfo(GoogleCloudStorageRegion.AsiaNorthEast1, "ASIA-NORTHEAST1", "Asia (Tokyo)");
46+
yield return new RegionInfo(GoogleCloudStorageRegion.AsiaNorthEast2, "ASIA-NORTHEAST2", "Asia (Osaka)");
47+
yield return new RegionInfo(GoogleCloudStorageRegion.AsiaNorthEast3, "ASIA-NORTHEAST3", "Asia (Seoul)");
48+
yield return new RegionInfo(GoogleCloudStorageRegion.AsiaSouthEast1, "ASIA-SOUTHEAST1", "Asia (Singapore)");
49+
50+
//India
51+
yield return new RegionInfo(GoogleCloudStorageRegion.AsiaSouth1, "ASIA-SOUTH1", "Asia (Mumbai)");
52+
yield return new RegionInfo(GoogleCloudStorageRegion.AsiaSouth2, "ASIA-SOUTH2", "Asia (Delhi)");
53+
54+
//Indonesia
55+
yield return new RegionInfo(GoogleCloudStorageRegion.AsiaSouthEast2, "ASIA-SOUTHEAST2", "Asia (Jakarta)");
56+
57+
//Middle East
58+
yield return new RegionInfo(GoogleCloudStorageRegion.MiddleEastCentral1, "ME-CENTRAL1", "Middle East (Doha)");
59+
yield return new RegionInfo(GoogleCloudStorageRegion.MiddleEastCentral2, "ME-CENTRAL2", "Middle East (Dammam, Saudi Arabia)");
60+
yield return new RegionInfo(GoogleCloudStorageRegion.MiddleEastWest1, "ME-WEST1", "Middle East (Tel Aviv)");
61+
62+
//Australia
3763
yield return new RegionInfo(GoogleCloudStorageRegion.AustraliaSouthEast1, "AUSTRALIA-SOUTHEAST1", "Australia (Sydney)");
3864
yield return new RegionInfo(GoogleCloudStorageRegion.AustraliaSouthEast2, "AUSTRALIA-SOUTHEAST2", "Australia (Melbourne)");
65+
66+
//Africa
67+
yield return new RegionInfo(GoogleCloudStorageRegion.AfricaSouth1, "AFRICA-SOUTH1", "Africa (Johannesburg)");
3968
}
4069
}

0 commit comments

Comments
 (0)