Skip to content

Commit 3b46f79

Browse files
authored
Added new region codes: BIG, AGA, VAP, NAP, AVZ (#18)
1 parent 9841154 commit 3b46f79

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

CHANGELOG.md

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

88
### Added
9-
- Latest Oracle Cloud Infrastructure regions and region codes: MTY, STR, BEG, VLL, YUM
9+
- Latest Oracle Cloud Infrastructure regions and region codes: MTY, STR, BEG, VLL, YUM,
10+
VAP, BOG, AGA, NAP, AVZ
1011
- Added new signature provider methods to allow for delegation (OBO) tokens to be used
1112
with Instance Principals:
1213
* NewSignatureProviderWithInstancePrincipalDelegation

nosqldb/common/region.go

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ const (
2323
RegionIAD Region = "us-ashburn-1"
2424
// RegionPHX represents the region for US West (Phoenix).
2525
RegionPHX Region = "us-phoenix-1"
26+
// RegionUSSaltLake2 represents the region for US MidWest (Salt Lake).
27+
RegionUSSaltLake2 Region = "us-saltlake-2"
2628
// RegionUSSanJose1 represents the region for US West (San Jose).
2729
RegionUSSanJose1 Region = "us-sanjose-1"
2830
// RegionUSChicago1 represents the region for US Central (Chicago).
@@ -63,10 +65,14 @@ const (
6365
RegionAPSydney1 Region = "ap-sydney-1"
6466
// RegionAPMelbourne1 represents the region for Australia Southeast (Melbourne).
6567
RegionAPMelbourne1 Region = "ap-melbourne-1"
68+
// RegionSABogota1 represents the region for Colombia
69+
RegionSABogota1 Region = "sa-bogota-1"
6670
// RegionSASaopaulo1 represents the region for Brazil East (Sao Paulo).
6771
RegionSASaopaulo1 Region = "sa-saopaulo-1"
6872
// RegionSASantiago1 represents the region for Chile (Santiago).
6973
RegionSASantiago1 Region = "sa-santiago-1"
74+
// RegionSAValparaiso1 represents the region for Chile (Valparaiso).
75+
RegionSAValparaiso1 Region = "sa-valparaiso-1"
7076
// RegionSAVinhedo1 represents the region for Brazil (Vinhedo).
7177
RegionSAVinhedo1 Region = "sa-vinhedo-1"
7278
// RegionMEJeddah1 represents the region for Saudi Arabia West (Jeddah).
@@ -175,6 +181,16 @@ const (
175181

176182
// RegionEUJovanovac1 represents the region for Jovanovac 1 (Serbia)
177183
RegionEUJovanovac1 Region = "eu-jovanovac-1"
184+
185+
// OC22 REGIONS
186+
187+
// RegionEUJovanovac1 represents the dedicated region for Rome
188+
RegionEUDCCRome1 Region = "eu-dcc-rome-1"
189+
190+
// OC24 REGIONS
191+
192+
// RegionEUDCCZurich1 represents the dedicated region for Zurich
193+
RegionEUDCCZurich1 Region = "eu-dcc-zurich-1"
178194
)
179195

180196
var realm = map[string]string{
@@ -191,13 +207,16 @@ var realm = map[string]string{
191207
"oc17": "oraclecloud17.com",
192208
"oc19": "oraclecloud.eu",
193209
"oc20": "oraclecloud20.com",
210+
"oc22": "oraclecloud22.com",
211+
"oc24": "oraclecloud24.com",
194212
}
195213

196214
var regionRealm = map[Region]string{
197215
RegionPHX: "oc1",
198216
RegionIAD: "oc1",
199217
RegionFRA: "oc1",
200218
RegionLHR: "oc1",
219+
RegionUSSaltLake2: "oc1",
201220
RegionUSSanJose1: "oc1",
202221
RegionUSChicago1: "oc1",
203222
RegionUKCardiff1: "oc1",
@@ -221,9 +240,11 @@ var regionRealm = map[Region]string{
221240
RegionEUMadrid1: "oc1",
222241
RegionEUMilan1: "oc1",
223242
RegionEUParis1: "oc1",
243+
RegionSABogota1: "oc1",
224244
RegionSASaopaulo1: "oc1",
225245
RegionSASantiago1: "oc1",
226246
RegionSAVinhedo1: "oc1",
247+
RegionSAValparaiso1: "oc1",
227248
RegionAFJohannesburg: "oc1",
228249
RegionAPSignapore: "oc1",
229250
RegionEUMarseille: "oc1",
@@ -266,11 +287,16 @@ var regionRealm = map[Region]string{
266287
RegionEUMadrid2: "oc19",
267288

268289
RegionEUJovanovac1: "oc20",
290+
291+
RegionEUDCCRome1: "oc22",
292+
293+
RegionEUDCCZurich1: "oc24",
269294
}
270295

271296
var shortNameRegion = map[string]Region{
272297
"phx": RegionPHX,
273298
"iad": RegionIAD,
299+
"aga": RegionUSSaltLake2,
274300
"sjc": RegionUSSanJose1,
275301
"ord": RegionUSChicago1,
276302
"fra": RegionFRA,
@@ -284,8 +310,10 @@ var shortNameRegion = map[string]Region{
284310
"mel": RegionAPMelbourne1,
285311
"bom": RegionAPMumbai1,
286312
"hyd": RegionAPHyderabad1,
313+
"bog": RegionSABogota1,
287314
"gru": RegionSASaopaulo1,
288315
"scl": RegionSASantiago1,
316+
"vap": RegionSAValparaiso1,
289317
"vcp": RegionSAVinhedo1,
290318
"icn": RegionAPSeoul1,
291319
"yny": RegionAPChuncheon1,
@@ -331,6 +359,8 @@ var shortNameRegion = map[string]Region{
331359
"str": RegionEUFrankfurt2,
332360
"vll": RegionEUMadrid2,
333361
"beg": RegionEUJovanovac1,
362+
"nap": RegionEUDCCRome1,
363+
"avz": RegionEUDCCZurich1,
334364
}
335365

336366
func (region Region) secondLevelDomain() string {

0 commit comments

Comments
 (0)