Skip to content

Commit 5f22035

Browse files
committed
Added support for new dedicated regions: MXP, DUS, DTM, ORK, SNN
1 parent 4511b0a commit 5f22035

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
77

88
### Added
99
- New GetBinary() convenience function
10-
- Latest Oracle Cloud Infrastructure regions and region codes: TIW, BYG, ORD
10+
- Latest Oracle Cloud Infrastructure regions and region codes: TIW, ORD, BGY, MXP, DUS, DTM, ORK, SNN
1111

1212
### Fixed
1313
- Fix for ARM64 compatibility issue #8

nosqldb/common/region.go

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,18 @@ const (
135135

136136
// OC14 REGIONS
137137

138-
// RegionEUDCCMilan represents the dedicated region for Milan
139-
RegionEUDCCMilan Region = "eu-dcc-milan-1"
138+
// RegionEUDCCDublin1 represents the dedicated region for Dublin1
139+
RegionEUDCCDublin1 Region = "eu-dcc-dublin-1"
140+
// RegionEUDCCDublin2 represents the dedicated region for Dublin2
141+
RegionEUDCCDublin2 Region = "eu-dcc-dublin-2"
142+
// RegionEUDCCMilan1 represents the dedicated region for Milan1
143+
RegionEUDCCMilan1 Region = "eu-dcc-milan-1"
144+
// RegionEUDCCMilan2 represents the dedicated region for Milan2
145+
RegionEUDCCMilan2 Region = "eu-dcc-milan-2"
146+
// RegionEUDCCRating1 represents the dedicated region for Rating1
147+
RegionEUDCCRating1 Region = "eu-dcc-rating-1"
148+
// RegionEUDCCRating2 represents the dedicated region for Rating2
149+
RegionEUDCCRating2 Region = "eu-dcc-rating-2"
140150
)
141151

142152
var realm = map[string]string{
@@ -206,7 +216,12 @@ var regionRealm = map[Region]string{
206216

207217
RegionAPDCCCanberra: "oc10",
208218

209-
RegionEUDCCMilan: "oc14",
219+
RegionEUDCCDublin1: "oc14",
220+
RegionEUDCCDublin2: "oc14",
221+
RegionEUDCCMilan1: "oc14",
222+
RegionEUDCCMilan2: "oc14",
223+
RegionEUDCCRating1: "oc14",
224+
RegionEUDCCRating2: "oc14",
210225
}
211226

212227
var shortNameRegion = map[string]Region{
@@ -258,7 +273,12 @@ var shortNameRegion = map[string]Region{
258273
"tus": RegionUSGovPhoenix1,
259274
"mct": RegionMEDCCMuscat,
260275
"wga": RegionAPDCCCanberra,
261-
"bgy": RegionEUDCCMilan,
276+
"ork": RegionEUDCCDublin1,
277+
"snn": RegionEUDCCDublin2,
278+
"bgy": RegionEUDCCMilan1,
279+
"mxp": RegionEUDCCMilan2,
280+
"dus": RegionEUDCCRating1,
281+
"dtm": RegionEUDCCRating2,
262282
}
263283

264284
func (region Region) secondLevelDomain() string {

0 commit comments

Comments
 (0)