Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions sdk/core/azure-core-management/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

### Features Added

- Added new Azure regions:
- `Region.AUSTRIA_EAST`
- `Region.CHILE_CENTRAL`
- `Region.MALAYSIA_WEST`

### Breaking Changes

### Bugs Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ public final class Region {
* Mexico Central (Mexico)
*/
public static final Region MEXICO_CENTRAL = new Region("mexicocentral", "Mexico Central");
/**
* Chile Central (South America)
*/
public static final Region CHILE_CENTRAL = new Region("chilecentral", "Chile Central");
/*
* Azure Cloud - Europe
*/
Expand Down Expand Up @@ -144,6 +148,10 @@ public final class Region {
* Poland Central (Europe)
*/
public static final Region POLAND_CENTRAL = new Region("polandcentral", "Poland Central");
/**
* Austria East (Europe)
*/
public static final Region AUSTRIA_EAST = new Region("austriaeast", "Austria East");
/*
* Azure Cloud - Asia
*/
Expand Down Expand Up @@ -207,6 +215,10 @@ public final class Region {
* New Zealand North (Asia Pacific)
*/
public static final Region NEW_ZEALAND_NORTH = new Region("newzealandnorth", "New Zealand North");
/**
* Malaysia West (Asia Pacific)
*/
public static final Region MALAYSIA_WEST = new Region("malaysiawest", "Malaysia West");
/*
* Azure Cloud - Middle East and Africa
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,15 @@ public void testFromLabel() {
public void testNegative() {
Assertions.assertThrows(NullPointerException.class, () -> Region.create(null, "desc"));
}

@Test
public void testNewRegions() {
// Test Austria East region
Assertions.assertNotNull(Region.AUSTRIA_EAST);
Assertions.assertEquals("austriaeast", Region.AUSTRIA_EAST.name());
Assertions.assertEquals("Austria East", Region.AUSTRIA_EAST.label());

Region austriaEastFromName = Region.fromName("austriaeast");
Assertions.assertEquals(Region.AUSTRIA_EAST, austriaEastFromName);
}
}