File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
sdk/core/azure-core-management/src
main/java/com/azure/core/management
test/java/com/azure/core/management Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff 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 */
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments