Skip to content

Commit e779c76

Browse files
committed
Added support for new OCI regions: SGU, IFP, GCN
1 parent 2ae1164 commit e779c76

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](http://keepachangelog.com/).
55

6+
## Unreleased
7+
8+
### Added
9+
- Latest Oracle Cloud Infrastructure regions and region codes: SGU, IFP, GCN
10+
611
## 1.3.2 - 2022-10-18
712

813
### Added

nosqldb/common/region.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,18 @@ const (
147147
RegionEUDCCRating1 Region = "eu-dcc-rating-1"
148148
// RegionEUDCCRating2 represents the dedicated region for Rating2
149149
RegionEUDCCRating2 Region = "eu-dcc-rating-2"
150+
151+
// OC16 REGIONS
152+
153+
// RegionUSWestJordan1 represents the region for west jordan (Utah)
154+
RegionUSWestJordan1 Region = "us-westjordan-1"
155+
156+
// OC17 REGIONS
157+
158+
// RegionUSDCCPhoenix1 represents dedicated region 1 for Phoenix
159+
RegionDCCPhoenix1 Region = "us-dcc-phoenix-1"
160+
// RegionUSDCCPhoenix2 represents dedicated region 2 for Phoenix
161+
RegionDCCPhoenix2 Region = "us-dcc-phoenix-2"
150162
)
151163

152164
var realm = map[string]string{
@@ -159,6 +171,8 @@ var realm = map[string]string{
159171
"oc9": "oraclecloud9.com",
160172
"oc10": "oraclecloud10.com",
161173
"oc14": "oraclecloud14.com",
174+
"oc16": "oraclecloud16.com",
175+
"oc17": "oraclecloud17.com",
162176
}
163177

164178
var regionRealm = map[Region]string{
@@ -222,6 +236,11 @@ var regionRealm = map[Region]string{
222236
RegionEUDCCMilan2: "oc14",
223237
RegionEUDCCRating1: "oc14",
224238
RegionEUDCCRating2: "oc14",
239+
240+
RegionUSWestJordan1: "oc16",
241+
242+
RegionDCCPhoenix1: "oc17",
243+
RegionDCCPhoenix2: "oc17",
225244
}
226245

227246
var shortNameRegion = map[string]Region{
@@ -279,6 +298,9 @@ var shortNameRegion = map[string]Region{
279298
"mxp": RegionEUDCCMilan2,
280299
"dus": RegionEUDCCRating1,
281300
"dtm": RegionEUDCCRating2,
301+
"sgu": RegionUSWestJordan1,
302+
"ifp": RegionDCCPhoenix1,
303+
"gcn": RegionDCCPhoenix2,
282304
}
283305

284306
func (region Region) secondLevelDomain() string {

0 commit comments

Comments
 (0)