Skip to content

Commit 0d9acaa

Browse files
committed
Added new OCI Cloud regions:
"jnb", "af-johannesburg-1" "wga", "ap-dcc-canberra-1" "sin", "ap-singapore-1" "mrs", "eu-marseille-1" "arn", "eu-stockholm-1" "mct", "me-dcc-muscat-1" "auh", "me-abudhabi-1"
1 parent dd40331 commit 0d9acaa

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

CHANGELOG.md

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

88
### Added
9-
- Added latest Oracle Cloud Infrastructure regions and region codes: LIN, MTZ, VCP, BRS, UKB.
9+
- Added latest Oracle Cloud Infrastructure regions and region codes: LIN, MTZ, VCP, BRS, UKB, JNB, SIN, MRS, ARN, AUH, MCT, WGA.
1010

1111
## 1.2.2 - 2021-06-08
1212

nosqldb/common/region.go

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@ const (
6969
RegionMEDubai1 Region = "me-dubai-1"
7070
// RegionILJerusalem1 represents the region for Israel (Jerusalem).
7171
RegionILJerusalem1 Region = "il-jerusalem-1"
72+
// RegionAFJohannesburg represents the region for Johannesburg
73+
RegionAFJohannesburg Region = "af-johannesburg-1"
74+
// RegionAPSignapore represents the region for singapore
75+
RegionAPSignapore Region = "ap-singapore-1"
76+
// RegionEUMarseille represents the region for Marseille
77+
RegionEUMarseille Region = "eu-marseille-1"
78+
// RegionEUStockholm represents the region for Stockholm
79+
RegionEUStockholm Region = "eu-stockholm-1"
80+
// RegionMEAbudhabi represents the region for Abudhabi
81+
RegionMEAbudhabi Region = "me-abudhabi-1"
7282

7383
// OC2 REGIONS
7484

@@ -99,6 +109,16 @@ const (
99109
RegionAPChiyoda1 Region = "ap-chiyoda-1"
100110
// RegionAPIbaraki1 represents the region for Japan East (Ibaraki).
101111
RegionAPIbaraki1 Region = "ap-ibaraki-1"
112+
113+
// OC9 REGIONS
114+
115+
// RegionMEDCCMuscat represents the dedicated region for muscat
116+
RegionMEDCCMuscat Region = "me-dcc-muscat-1"
117+
118+
// OC10 REGIONS
119+
120+
// RegionAPDCCCanberra represents the dedicated region for canberra
121+
RegionAPDCCCanberra Region = "ap-dcc-canberra-1"
102122
)
103123

104124
var realm = map[string]string{
@@ -107,6 +127,8 @@ var realm = map[string]string{
107127
"oc3": "oraclegovcloud.com",
108128
"oc4": "oraclegovcloud.uk",
109129
"oc8": "oraclecloud8.com",
130+
"oc9": "oraclecloud9.com",
131+
"oc10": "oraclecloud10.com",
110132
}
111133

112134
var regionRealm = map[Region]string{
@@ -135,6 +157,11 @@ var regionRealm = map[Region]string{
135157
RegionSASaopaulo1: "oc1",
136158
RegionSASantiago1: "oc1",
137159
RegionSAVinhedo1: "oc1",
160+
RegionAFJohannesburg: "oc1",
161+
RegionAPSignapore: "oc1",
162+
RegionEUMarseille: "oc1",
163+
RegionMEAbudhabi: "oc1",
164+
RegionEUStockholm: "oc1",
138165

139166
RegionUSLangley1: "oc2",
140167
RegionUSLuke1: "oc2",
@@ -148,6 +175,10 @@ var regionRealm = map[Region]string{
148175

149176
RegionAPChiyoda1: "oc8",
150177
RegionAPIbaraki1: "oc8",
178+
179+
RegionMEDCCMuscat: "oc9",
180+
181+
RegionAPDCCCanberra: "oc10",
151182
}
152183

153184
var shortNameRegion = map[string]Region{
@@ -180,13 +211,20 @@ var shortNameRegion = map[string]Region{
180211
"dxb": RegionMEDubai1,
181212
"mtz": RegionILJerusalem1,
182213
"syd": RegionAPSydney1,
214+
"jnb": RegionAFJohannesburg,
215+
"sin": RegionAPSignapore,
216+
"mrs": RegionEUMarseille,
217+
"auh": RegionMEAbudhabi,
218+
"arn": RegionEUStockholm,
183219
"ltn": RegionUKGovLondon1,
184220
"brs": RegionUKGovCardiff1,
185221
"lfi": RegionUSLangley1,
186222
"luf": RegionUSLuke1,
187223
"ric": RegionUSGovAshburn1,
188224
"pia": RegionUSGovChicago1,
189225
"tus": RegionUSGovPhoenix1,
226+
"mct": RegionMEDCCMuscat,
227+
"wga": RegionAPDCCCanberra,
190228
}
191229

192230
func (region Region) secondLevelDomain() string {

0 commit comments

Comments
 (0)