Skip to content

Commit 15a5774

Browse files
Add support for Austria East, Chile Central, and Malaysia West regions
1 parent b4be9cf commit 15a5774

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

sdk/core/azure-core-management/src/main/java/com/azure/core/management/Region.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ public final class Region {
7777
* Mexico Central (Mexico)
7878
*/
7979
public static final Region MEXICO_CENTRAL = new Region("mexicocentral", "Mexico Central");
80+
/**
81+
* Chile Central (South America)
82+
*/
83+
public static final Region CHILE_CENTRAL = new Region("chilecentral", "Chile Central");
8084
/*
8185
* Azure Cloud - Europe
8286
*/
@@ -144,6 +148,10 @@ public final class Region {
144148
* Poland Central (Europe)
145149
*/
146150
public static final Region POLAND_CENTRAL = new Region("polandcentral", "Poland Central");
151+
/**
152+
* Austria East (Europe)
153+
*/
154+
public static final Region AUSTRIA_EAST = new Region("austriaeast", "Austria East");
147155
/*
148156
* Azure Cloud - Asia
149157
*/
@@ -207,6 +215,10 @@ public final class Region {
207215
* New Zealand North (Asia Pacific)
208216
*/
209217
public static final Region NEW_ZEALAND_NORTH = new Region("newzealandnorth", "New Zealand North");
218+
/**
219+
* Malaysia West (Asia Pacific)
220+
*/
221+
public static final Region MALAYSIA_WEST = new Region("malaysiawest", "Malaysia West");
210222
/*
211223
* Azure Cloud - Middle East and Africa
212224
*/

sdk/core/azure-core-management/src/test/java/com/azure/core/management/RegionTests.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,15 @@ public void testFromLabel() {
6666
public void testNegative() {
6767
Assertions.assertThrows(NullPointerException.class, () -> Region.create(null, "desc"));
6868
}
69+
70+
@Test
71+
public void testNewRegions() {
72+
// Test Austria East region
73+
Assertions.assertNotNull(Region.AUSTRIA_EAST);
74+
Assertions.assertEquals("austriaeast", Region.AUSTRIA_EAST.name());
75+
Assertions.assertEquals("Austria East", Region.AUSTRIA_EAST.label());
76+
77+
Region austriaEastFromName = Region.fromName("austriaeast");
78+
Assertions.assertEquals(Region.AUSTRIA_EAST, austriaEastFromName);
79+
}
6980
}

0 commit comments

Comments
 (0)