Skip to content

Commit 7148a45

Browse files
committed
Added latest Oracle Cloud Infrastructure regions and region codes: LIN, MTZ, VCP, BRS, UKB.
1 parent 7a5bc3b commit 7148a45

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
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+
## Unpublished
7+
8+
### Added
9+
- Added latest Oracle Cloud Infrastructure regions and region codes: LIN, MTZ, VCP, BRS, UKB.
10+
611
## 1.2.2 - 2021-06-08
712

813
### Added

nosqldb/common/region.go

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ const (
3535
RegionUKCardiff1 Region = "uk-cardiff-1"
3636
// RegionEUAmsterdam1 represents the region for Netherlands Northwest (Amsterdam).
3737
RegionEUAmsterdam1 Region = "eu-amsterdam-1"
38+
// RegionEUMilan1 represents the region for Italy (Milan).
39+
RegionEUMilan1 Region = "eu-milan-1"
3840
// RegionFRA represents the region for Germany Central (Frankfurt).
3941
RegionFRA Region = "eu-frankfurt-1"
4042
// RegionEUZurich1 represents the region for Switzerland North (Zurich).
@@ -59,10 +61,14 @@ const (
5961
RegionSASaopaulo1 Region = "sa-saopaulo-1"
6062
// RegionSASantiago1 represents the region for Chile (Santiago).
6163
RegionSASantiago1 Region = "sa-santiago-1"
64+
// RegionSAVinhedo1 represents the region for Chile (Vinhedo).
65+
RegionSAVinhedo1 Region = "sa-vinhedo-1"
6266
// RegionMEJeddah1 represents the region for Saudi Arabia West (Jeddah).
6367
RegionMEJeddah1 Region = "me-jeddah-1"
6468
// RegionMEDubai1 represents the region for Saudi Arabia East (Dubai).
6569
RegionMEDubai1 Region = "me-dubai-1"
70+
// RegionILJerusalem1 represents the region for Israel (Jerusalem).
71+
RegionILJerusalem1 Region = "il-jerusalem-1"
6672

6773
// OC2 REGIONS
6874

@@ -84,11 +90,15 @@ const (
8490

8591
// RegionUKGovLondon1 represents the government region for London.
8692
RegionUKGovLondon1 Region = "uk-gov-london-1"
93+
// RegionUKGovCardiff1 represents the government region for Cardiff.
94+
RegionUKGovCardiff1 Region = "uk-gov-cardiff-1"
8795

8896
// OC8 REGIONS
8997

9098
// RegionAPChiyoda1 represents the region for Japan East (Chiyoda).
9199
RegionAPChiyoda1 Region = "ap-chiyoda-1"
100+
// RegionAPIbaraki1 represents the region for Japan East (Ibaraki).
101+
RegionAPIbaraki1 Region = "ap-ibaraki-1"
92102
)
93103

94104
var realm = map[string]string{
@@ -118,10 +128,13 @@ var regionRealm = map[Region]string{
118128
RegionAPMelbourne1: "oc1",
119129
RegionMEJeddah1: "oc1",
120130
RegionMEDubai1: "oc1",
131+
RegionILJerusalem1: "oc1",
121132
RegionEUZurich1: "oc1",
122133
RegionEUAmsterdam1: "oc1",
134+
RegionEUMilan1: "oc1",
123135
RegionSASaopaulo1: "oc1",
124136
RegionSASantiago1: "oc1",
137+
RegionSAVinhedo1: "oc1",
125138

126139
RegionUSLangley1: "oc2",
127140
RegionUSLuke1: "oc2",
@@ -130,9 +143,11 @@ var regionRealm = map[Region]string{
130143
RegionUSGovChicago1: "oc3",
131144
RegionUSGovPhoenix1: "oc3",
132145

133-
RegionUKGovLondon1: "oc4",
146+
RegionUKGovLondon1: "oc4",
147+
RegionUKGovCardiff1: "oc4",
134148

135149
RegionAPChiyoda1: "oc8",
150+
RegionAPIbaraki1: "oc8",
136151
}
137152

138153
var shortNameRegion = map[string]Region{
@@ -143,23 +158,30 @@ var shortNameRegion = map[string]Region{
143158
"lhr": RegionLHR,
144159
"cwl": RegionUKCardiff1,
145160
"ams": RegionEUAmsterdam1,
161+
"lin": RegionEUMilan1,
146162
"zrh": RegionEUZurich1,
147163
"mel": RegionAPMelbourne1,
148164
"bom": RegionAPMumbai1,
149165
"hyd": RegionAPHyderabad1,
150166
"gru": RegionSASaopaulo1,
151167
"scl": RegionSASantiago1,
168+
"vcp": RegionSAVinhedo1,
152169
"icn": RegionAPSeoul1,
153170
"yny": RegionAPChuncheon1,
154171
"nja": RegionAPChiyoda1,
172+
// Note: ukb is actually Kobe, but OCI uses it for Ibaraki
173+
"ukb": RegionAPIbaraki1,
174+
"ibr": RegionAPIbaraki1,
155175
"nrt": RegionAPTokyo1,
156176
"kix": RegionAPOsaka1,
157177
"yul": RegionCAMontreal1,
158178
"yyz": RegionCAToronto1,
159179
"jed": RegionMEJeddah1,
160180
"dxb": RegionMEDubai1,
181+
"mtz": RegionILJerusalem1,
161182
"syd": RegionAPSydney1,
162183
"ltn": RegionUKGovLondon1,
184+
"brs": RegionUKGovCardiff1,
163185
"lfi": RegionUSLangley1,
164186
"luf": RegionUSLuke1,
165187
"ric": RegionUSGovAshburn1,

0 commit comments

Comments
 (0)