@@ -51,36 +51,44 @@ public class Region {
5151 private static final Map <String , Region > GOV_REGIONS = new HashMap <>();
5252 private static final Map <String , Region > OC4_REGIONS = new HashMap <>();
5353 private static final Map <String , Region > OC8_REGIONS = new HashMap <>();
54+ private static final Map <String , Region > OC9_REGIONS = new HashMap <>();
55+ private static final Map <String , Region > OC10_REGIONS = new HashMap <>();
5456
5557 /* OC1 */
56- public static final Region AP_SEOUL_1 = new Region ("ap-seoul -1" );
57- public static final Region AP_TOKYO_1 = new Region ( "ap-tokyo-1" );
58- public static final Region AP_MUMBAI_1 = new Region ("ap-mumbai -1" );
59- public static final Region AP_SYDNEY_1 = new Region ("ap-sydney -1" );
58+ public static final Region AF_JOHANNESBURG_1 = new Region ("af-johannesburg -1" );
59+
60+ public static final Region AP_CHUNCHEON_1 = new Region ("ap-chuncheon -1" );
61+ public static final Region AP_HYDERABAD_1 = new Region ("ap-hyderabad -1" );
6062 public static final Region AP_MELBOURNE_1 = new Region ("ap-melbourne-1" );
63+ public static final Region AP_MUMBAI_1 = new Region ("ap-mumbai-1" );
6164 public static final Region AP_OSAKA_1 = new Region ("ap-osaka-1" );
62- public static final Region AP_HYDERABAD_1 = new Region ("ap-hyderabad-1" );
63- public static final Region AP_CHUNCHEON_1 = new Region ("ap-chuncheon-1" );
65+ public static final Region AP_SINGAPORE_1 = new Region ("ap-singapore-1" );
66+ public static final Region AP_SEOUL_1 = new Region ("ap-seoul-1" );
67+ public static final Region AP_SYDNEY_1 = new Region ("ap-sydney-1" );
68+ public static final Region AP_TOKYO_1 = new Region ("ap-tokyo-1" );
6469
65- public static final Region UK_LONDON_1 = new Region ("uk-london-1" );
6670 public static final Region UK_CARDIFF_1 = new Region ("uk-cardiff-1" );
71+ public static final Region UK_LONDON_1 = new Region ("uk-london-1" );
6772
68- public static final Region EU_FRANKFURT_1 = new Region ("eu-frankfurt-1" );
69- public static final Region EU_ZURICH_1 = new Region ("eu-zurich-1" );
7073 public static final Region EU_AMSTERDAM_1 = new Region ("eu-amsterdam-1" );
74+ public static final Region EU_FRANKFURT_1 = new Region ("eu-frankfurt-1" );
75+ public static final Region EU_MARSEILLE_1 = new Region ("eu-marseille-1" );
7176 public static final Region EU_MILAN_1 = new Region ("eu-milan-1" );
77+ public static final Region EU_STOCKHOLM_1 = new Region ("eu-stockholm-1" );
78+ public static final Region EU_ZURICH_1 = new Region ("eu-zurich-1" );
7279
73- public static final Region ME_JEDDAH_1 = new Region ("me-jeddah -1" );
80+ public static final Region ME_ABUDHABI_1 = new Region ("me-abudhabi -1" );
7481 public static final Region ME_DUBAI_1 = new Region ("me-dubai-1" );
82+ public static final Region ME_JEDDAH_1 = new Region ("me-jeddah-1" );
7583
7684 public static final Region IL_JERUSALEM_1 = new Region ("il-jerusalem-1" );
7785
7886 public static final Region US_ASHBURN_1 = new Region ("us-ashburn-1" );
7987 public static final Region US_PHOENIX_1 = new Region ("us-phoenix-1" );
8088 public static final Region US_SANJOSE_1 = new Region ("us-sanjose-1" );
8189
82- public static final Region CA_TORONTO_1 = new Region ("ca-toronto-1" );
8390 public static final Region CA_MONTREAL_1 = new Region ("ca-montreal-1" );
91+ public static final Region CA_TORONTO_1 = new Region ("ca-toronto-1" );
8492
8593 public static final Region SA_SAOPAULO_1 = new Region ("sa-saopaulo-1" );
8694 public static final Region SA_SANTIAGO_1 = new Region ("sa-santiago-1" );
@@ -103,29 +111,39 @@ public class Region {
103111 public static final Region AP_CHIYODA_1 = new Region ("ap-chiyoda-1" );
104112 public static final Region AP_IBARAKI_1 = new Region ("ap-ibaraki-1" );
105113
114+ /* OC9 */
115+ public static final Region ME_DCC_MUSCAT_1 = new Region ("me-dcc-muscat-1" );
116+
117+ /* OC10 */
118+ public static final Region AP_DCC_CANBERRA_1 = new Region ("ap-dcc-canberra-1" );
119+
106120 static {
107121 /* OC1 */
108122 /* APAC */
109- OC1_REGIONS .put (AP_SEOUL_1 .getRegionId (), AP_SEOUL_1 );
110- OC1_REGIONS .put (AP_TOKYO_1 .getRegionId (), AP_TOKYO_1 );
111- OC1_REGIONS .put (AP_MUMBAI_1 .getRegionId (), AP_MUMBAI_1 );
112- OC1_REGIONS .put (AP_SYDNEY_1 .getRegionId (), AP_SYDNEY_1 );
123+ OC1_REGIONS .put (AP_CHUNCHEON_1 .getRegionId (), AP_CHUNCHEON_1 );
124+ OC1_REGIONS .put (AP_HYDERABAD_1 .getRegionId (), AP_HYDERABAD_1 );
113125 OC1_REGIONS .put (AP_MELBOURNE_1 .getRegionId (), AP_MELBOURNE_1 );
126+ OC1_REGIONS .put (AP_MUMBAI_1 .getRegionId (), AP_MUMBAI_1 );
114127 OC1_REGIONS .put (AP_OSAKA_1 .getRegionId (), AP_OSAKA_1 );
115- OC1_REGIONS .put (AP_HYDERABAD_1 .getRegionId (), AP_HYDERABAD_1 );
116- OC1_REGIONS .put (AP_CHUNCHEON_1 .getRegionId (), AP_CHUNCHEON_1 );
128+ OC1_REGIONS .put (AP_SINGAPORE_1 .getRegionId (), AP_SINGAPORE_1 );
129+ OC1_REGIONS .put (AP_SEOUL_1 .getRegionId (), AP_SEOUL_1 );
130+ OC1_REGIONS .put (AP_SYDNEY_1 .getRegionId (), AP_SYDNEY_1 );
131+ OC1_REGIONS .put (AP_TOKYO_1 .getRegionId (), AP_TOKYO_1 );
117132
118133 /* EMEA */
119- OC1_REGIONS .put (UK_LONDON_1 .getRegionId (), UK_LONDON_1 );
120134 OC1_REGIONS .put (UK_CARDIFF_1 .getRegionId (), UK_CARDIFF_1 );
135+ OC1_REGIONS .put (UK_LONDON_1 .getRegionId (), UK_LONDON_1 );
121136
122- OC1_REGIONS .put (EU_FRANKFURT_1 .getRegionId (), EU_FRANKFURT_1 );
123- OC1_REGIONS .put (EU_ZURICH_1 .getRegionId (), EU_ZURICH_1 );
124137 OC1_REGIONS .put (EU_AMSTERDAM_1 .getRegionId (), EU_AMSTERDAM_1 );
138+ OC1_REGIONS .put (EU_FRANKFURT_1 .getRegionId (), EU_FRANKFURT_1 );
139+ OC1_REGIONS .put (EU_MARSEILLE_1 .getRegionId (), EU_MARSEILLE_1 );
125140 OC1_REGIONS .put (EU_MILAN_1 .getRegionId (), EU_MILAN_1 );
141+ OC1_REGIONS .put (EU_STOCKHOLM_1 .getRegionId (), EU_STOCKHOLM_1 );
142+ OC1_REGIONS .put (EU_ZURICH_1 .getRegionId (), EU_ZURICH_1 );
126143
127- OC1_REGIONS .put (ME_JEDDAH_1 .getRegionId (), ME_JEDDAH_1 );
144+ OC1_REGIONS .put (ME_ABUDHABI_1 .getRegionId (), ME_ABUDHABI_1 );
128145 OC1_REGIONS .put (ME_DUBAI_1 .getRegionId (), ME_DUBAI_1 );
146+ OC1_REGIONS .put (ME_JEDDAH_1 .getRegionId (), ME_JEDDAH_1 );
129147
130148 OC1_REGIONS .put (IL_JERUSALEM_1 .getRegionId (), IL_JERUSALEM_1 );
131149
@@ -139,8 +157,8 @@ public class Region {
139157 OC1_REGIONS .put (US_PHOENIX_1 .getRegionId (), US_PHOENIX_1 );
140158 OC1_REGIONS .put (US_SANJOSE_1 .getRegionId (), US_SANJOSE_1 );
141159
142- OC1_REGIONS .put (CA_TORONTO_1 .getRegionId (), CA_TORONTO_1 );
143160 OC1_REGIONS .put (CA_MONTREAL_1 .getRegionId (), CA_MONTREAL_1 );
161+ OC1_REGIONS .put (CA_TORONTO_1 .getRegionId (), CA_TORONTO_1 );
144162
145163 /* OC2 */
146164 GOV_REGIONS .put (US_LANGLEY_1 .getRegionId (), US_LANGLEY_1 );
@@ -158,6 +176,12 @@ public class Region {
158176 /* OC8 */
159177 OC8_REGIONS .put (AP_CHIYODA_1 .getRegionId (), AP_CHIYODA_1 );
160178 OC8_REGIONS .put (AP_IBARAKI_1 .getRegionId (), AP_IBARAKI_1 );
179+
180+ /* OC9 */
181+ OC9_REGIONS .put (ME_DCC_MUSCAT_1 .getRegionId (), ME_DCC_MUSCAT_1 );
182+
183+ /* OC10 */
184+ OC10_REGIONS .put (AP_DCC_CANBERRA_1 .getRegionId (), AP_DCC_CANBERRA_1 );
161185 }
162186
163187 private final static MessageFormat OC1_EP_BASE = new MessageFormat (
@@ -168,6 +192,10 @@ public class Region {
168192 "https://nosql.{0}.oci.oraclegovcloud.uk" );
169193 private final static MessageFormat OC8_EP_BASE = new MessageFormat (
170194 "https://nosql.{0}.oci.oraclecloud8.com" );
195+ private final static MessageFormat OC9_EP_BASE = new MessageFormat (
196+ "https://nosql.{0}.oci.oraclecloud9.com" );
197+ private final static MessageFormat OC10_EP_BASE = new MessageFormat (
198+ "https://nosql.{0}.oci.oraclecloud10.com" );
171199
172200 private String regionId ;
173201
@@ -192,6 +220,12 @@ public String endpoint() {
192220 if (isOC8Region (regionId )) {
193221 return OC8_EP_BASE .format (new Object [] { regionId });
194222 }
223+ if (isOC9Region (regionId )) {
224+ return OC9_EP_BASE .format (new Object [] { regionId });
225+ }
226+ if (isOC10Region (regionId )) {
227+ return OC10_EP_BASE .format (new Object [] { regionId });
228+ }
195229 throw new IllegalArgumentException (
196230 "Unable to find endpoint for unknwon region" + regionId );
197231 }
@@ -219,6 +253,12 @@ public static Region fromRegionId(String regionId) {
219253 if (region == null ) {
220254 region = OC8_REGIONS .get (regionId );
221255 }
256+ if (region == null ) {
257+ region = OC9_REGIONS .get (regionId );
258+ }
259+ if (region == null ) {
260+ region = OC10_REGIONS .get (regionId );
261+ }
222262
223263 return region ;
224264 }
@@ -272,6 +312,26 @@ public static boolean isOC8Region(String regionId) {
272312 return (OC8_REGIONS .get (regionId ) != null );
273313 }
274314
315+ /**
316+ * @hidden
317+ * Internal use only
318+ * @param regionId the region id
319+ * @return the value
320+ */
321+ public static boolean isOC9Region (String regionId ) {
322+ return (OC9_REGIONS .get (regionId ) != null );
323+ }
324+
325+ /**
326+ * @hidden
327+ * Internal use only
328+ * @param regionId the region id
329+ * @return the value
330+ */
331+ public static boolean isOC10Region (String regionId ) {
332+ return (OC10_REGIONS .get (regionId ) != null );
333+ }
334+
275335 /**
276336 * @hidden
277337 * Internal use only
@@ -308,6 +368,24 @@ public static Collection<Region> getOC8Regions() {
308368 return OC8_REGIONS .values ();
309369 }
310370
371+ /**
372+ * @hidden
373+ * Internal use only
374+ * @return the regions
375+ */
376+ public static Collection <Region > getOC9Regions () {
377+ return OC9_REGIONS .values ();
378+ }
379+
380+ /**
381+ * @hidden
382+ * Internal use only
383+ * @return the regions
384+ */
385+ public static Collection <Region > getOC10Regions () {
386+ return OC10_REGIONS .values ();
387+ }
388+
311389 /**
312390 * @hidden
313391 * Internal use only
0 commit comments