Skip to content

Commit 0056e28

Browse files
jokarlJohan Karlsson
andauthored
Add missing locations (Azure#34419)
* Added missing locations * Leave at original line * Exported API * Fix casing in expected display name --------- Co-authored-by: Johan Karlsson <[email protected]>
1 parent b91e990 commit 0056e28

File tree

7 files changed

+36
-6
lines changed

7 files changed

+36
-6
lines changed

sdk/core/Azure.Core/api/Azure.Core.net461.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,13 @@ public partial struct AccessToken
327327
public static Azure.Core.AzureLocation NorthEurope { get { throw null; } }
328328
public static Azure.Core.AzureLocation NorwayEast { get { throw null; } }
329329
public static Azure.Core.AzureLocation NorwayWest { get { throw null; } }
330+
public static Azure.Core.AzureLocation QatarCentral { get { throw null; } }
330331
public static Azure.Core.AzureLocation SouthAfricaNorth { get { throw null; } }
331332
public static Azure.Core.AzureLocation SouthAfricaWest { get { throw null; } }
332333
public static Azure.Core.AzureLocation SouthCentralUS { get { throw null; } }
333334
public static Azure.Core.AzureLocation SoutheastAsia { get { throw null; } }
334335
public static Azure.Core.AzureLocation SouthIndia { get { throw null; } }
336+
public static Azure.Core.AzureLocation SwedenCentral { get { throw null; } }
335337
public static Azure.Core.AzureLocation SwitzerlandNorth { get { throw null; } }
336338
public static Azure.Core.AzureLocation SwitzerlandWest { get { throw null; } }
337339
public static Azure.Core.AzureLocation UAECentral { get { throw null; } }
@@ -349,6 +351,7 @@ public partial struct AccessToken
349351
public static Azure.Core.AzureLocation WestIndia { get { throw null; } }
350352
public static Azure.Core.AzureLocation WestUS { get { throw null; } }
351353
public static Azure.Core.AzureLocation WestUS2 { get { throw null; } }
354+
public static Azure.Core.AzureLocation WestUS3 { get { throw null; } }
352355
public bool Equals(Azure.Core.AzureLocation other) { throw null; }
353356
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
354357
public override bool Equals(object? obj) { throw null; }

sdk/core/Azure.Core/api/Azure.Core.net5.0.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,13 @@ public partial struct AccessToken
327327
public static Azure.Core.AzureLocation NorthEurope { get { throw null; } }
328328
public static Azure.Core.AzureLocation NorwayEast { get { throw null; } }
329329
public static Azure.Core.AzureLocation NorwayWest { get { throw null; } }
330+
public static Azure.Core.AzureLocation QatarCentral { get { throw null; } }
330331
public static Azure.Core.AzureLocation SouthAfricaNorth { get { throw null; } }
331332
public static Azure.Core.AzureLocation SouthAfricaWest { get { throw null; } }
332333
public static Azure.Core.AzureLocation SouthCentralUS { get { throw null; } }
333334
public static Azure.Core.AzureLocation SoutheastAsia { get { throw null; } }
334335
public static Azure.Core.AzureLocation SouthIndia { get { throw null; } }
336+
public static Azure.Core.AzureLocation SwedenCentral { get { throw null; } }
335337
public static Azure.Core.AzureLocation SwitzerlandNorth { get { throw null; } }
336338
public static Azure.Core.AzureLocation SwitzerlandWest { get { throw null; } }
337339
public static Azure.Core.AzureLocation UAECentral { get { throw null; } }
@@ -349,6 +351,7 @@ public partial struct AccessToken
349351
public static Azure.Core.AzureLocation WestIndia { get { throw null; } }
350352
public static Azure.Core.AzureLocation WestUS { get { throw null; } }
351353
public static Azure.Core.AzureLocation WestUS2 { get { throw null; } }
354+
public static Azure.Core.AzureLocation WestUS3 { get { throw null; } }
352355
public bool Equals(Azure.Core.AzureLocation other) { throw null; }
353356
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
354357
public override bool Equals(object? obj) { throw null; }

sdk/core/Azure.Core/api/Azure.Core.net6.0.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,13 @@ public partial struct AccessToken
327327
public static Azure.Core.AzureLocation NorthEurope { get { throw null; } }
328328
public static Azure.Core.AzureLocation NorwayEast { get { throw null; } }
329329
public static Azure.Core.AzureLocation NorwayWest { get { throw null; } }
330+
public static Azure.Core.AzureLocation QatarCentral { get { throw null; } }
330331
public static Azure.Core.AzureLocation SouthAfricaNorth { get { throw null; } }
331332
public static Azure.Core.AzureLocation SouthAfricaWest { get { throw null; } }
332333
public static Azure.Core.AzureLocation SouthCentralUS { get { throw null; } }
333334
public static Azure.Core.AzureLocation SoutheastAsia { get { throw null; } }
334335
public static Azure.Core.AzureLocation SouthIndia { get { throw null; } }
336+
public static Azure.Core.AzureLocation SwedenCentral { get { throw null; } }
335337
public static Azure.Core.AzureLocation SwitzerlandNorth { get { throw null; } }
336338
public static Azure.Core.AzureLocation SwitzerlandWest { get { throw null; } }
337339
public static Azure.Core.AzureLocation UAECentral { get { throw null; } }
@@ -349,6 +351,7 @@ public partial struct AccessToken
349351
public static Azure.Core.AzureLocation WestIndia { get { throw null; } }
350352
public static Azure.Core.AzureLocation WestUS { get { throw null; } }
351353
public static Azure.Core.AzureLocation WestUS2 { get { throw null; } }
354+
public static Azure.Core.AzureLocation WestUS3 { get { throw null; } }
352355
public bool Equals(Azure.Core.AzureLocation other) { throw null; }
353356
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
354357
public override bool Equals(object? obj) { throw null; }

sdk/core/Azure.Core/api/Azure.Core.netcoreapp2.1.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,13 @@ public partial struct AccessToken
327327
public static Azure.Core.AzureLocation NorthEurope { get { throw null; } }
328328
public static Azure.Core.AzureLocation NorwayEast { get { throw null; } }
329329
public static Azure.Core.AzureLocation NorwayWest { get { throw null; } }
330+
public static Azure.Core.AzureLocation QatarCentral { get { throw null; } }
330331
public static Azure.Core.AzureLocation SouthAfricaNorth { get { throw null; } }
331332
public static Azure.Core.AzureLocation SouthAfricaWest { get { throw null; } }
332333
public static Azure.Core.AzureLocation SouthCentralUS { get { throw null; } }
333334
public static Azure.Core.AzureLocation SoutheastAsia { get { throw null; } }
334335
public static Azure.Core.AzureLocation SouthIndia { get { throw null; } }
336+
public static Azure.Core.AzureLocation SwedenCentral { get { throw null; } }
335337
public static Azure.Core.AzureLocation SwitzerlandNorth { get { throw null; } }
336338
public static Azure.Core.AzureLocation SwitzerlandWest { get { throw null; } }
337339
public static Azure.Core.AzureLocation UAECentral { get { throw null; } }
@@ -349,6 +351,7 @@ public partial struct AccessToken
349351
public static Azure.Core.AzureLocation WestIndia { get { throw null; } }
350352
public static Azure.Core.AzureLocation WestUS { get { throw null; } }
351353
public static Azure.Core.AzureLocation WestUS2 { get { throw null; } }
354+
public static Azure.Core.AzureLocation WestUS3 { get { throw null; } }
352355
public bool Equals(Azure.Core.AzureLocation other) { throw null; }
353356
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
354357
public override bool Equals(object? obj) { throw null; }

sdk/core/Azure.Core/api/Azure.Core.netstandard2.0.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,13 @@ public partial struct AccessToken
327327
public static Azure.Core.AzureLocation NorthEurope { get { throw null; } }
328328
public static Azure.Core.AzureLocation NorwayEast { get { throw null; } }
329329
public static Azure.Core.AzureLocation NorwayWest { get { throw null; } }
330+
public static Azure.Core.AzureLocation QatarCentral { get { throw null; } }
330331
public static Azure.Core.AzureLocation SouthAfricaNorth { get { throw null; } }
331332
public static Azure.Core.AzureLocation SouthAfricaWest { get { throw null; } }
332333
public static Azure.Core.AzureLocation SouthCentralUS { get { throw null; } }
333334
public static Azure.Core.AzureLocation SoutheastAsia { get { throw null; } }
334335
public static Azure.Core.AzureLocation SouthIndia { get { throw null; } }
336+
public static Azure.Core.AzureLocation SwedenCentral { get { throw null; } }
335337
public static Azure.Core.AzureLocation SwitzerlandNorth { get { throw null; } }
336338
public static Azure.Core.AzureLocation SwitzerlandWest { get { throw null; } }
337339
public static Azure.Core.AzureLocation UAECentral { get { throw null; } }
@@ -349,6 +351,7 @@ public partial struct AccessToken
349351
public static Azure.Core.AzureLocation WestIndia { get { throw null; } }
350352
public static Azure.Core.AzureLocation WestUS { get { throw null; } }
351353
public static Azure.Core.AzureLocation WestUS2 { get { throw null; } }
354+
public static Azure.Core.AzureLocation WestUS3 { get { throw null; } }
352355
public bool Equals(Azure.Core.AzureLocation other) { throw null; }
353356
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
354357
public override bool Equals(object? obj) { throw null; }

sdk/core/Azure.Core/src/AzureLocation.cs

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ namespace Azure.Core
4949
/// </summary>
5050
public static AzureLocation WestUS { get; } = CreateStaticReference("westus", "West US");
5151

52+
/// <summary>
53+
/// Public cloud location for West US 2.
54+
/// </summary>
55+
public static AzureLocation WestUS2 { get; } = CreateStaticReference("westus2", "West US 2");
56+
57+
/// <summary>
58+
/// Public cloud location for West US 3.
59+
/// </summary>
60+
public static AzureLocation WestUS3 { get; } = CreateStaticReference("westus3", "West US 3");
61+
5262
/// <summary>
5363
/// Public cloud location for North Central US.
5464
/// </summary>
@@ -134,11 +144,6 @@ namespace Azure.Core
134144
/// </summary>
135145
public static AzureLocation WestCentralUS { get; } = CreateStaticReference("westcentralus", "West Central US");
136146

137-
/// <summary>
138-
/// Public cloud location for West US 2.
139-
/// </summary>
140-
public static AzureLocation WestUS2 { get; } = CreateStaticReference("westus2", "West US 2");
141-
142147
/// <summary>
143148
/// Public cloud location for Korea Central.
144149
/// </summary>
@@ -189,6 +194,11 @@ namespace Azure.Core
189194
/// </summary>
190195
public static AzureLocation SouthAfricaWest { get; } = CreateStaticReference("southafricawest", "South Africa West");
191196

197+
/// <summary>
198+
/// Public cloud location for Sweden Central.
199+
/// </summary>
200+
public static AzureLocation SwedenCentral { get; } = CreateStaticReference("swedencentral", "Sweden Central");
201+
192202
/// <summary>
193203
/// Public cloud location for Switzerland North.
194204
/// </summary>
@@ -254,6 +264,11 @@ namespace Azure.Core
254264
/// </summary>
255265
public static AzureLocation ChinaEast2 { get; } = CreateStaticReference("chinaeast2", "China East 2");
256266

267+
/// <summary>
268+
/// Public cloud location for Qatar Central.
269+
/// </summary>
270+
public static AzureLocation QatarCentral { get; } = CreateStaticReference("qatarcentral", "Qatar Central");
271+
257272
/// <summary>
258273
/// Public cloud location for US DoD Central.
259274
/// </summary>

sdk/core/Azure.Core/tests/LocationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class LocationTests
1313
[TestCase("WestUS4", "WestUS4", null)]
1414
[TestCase("West US 2", "westus2", "West US 2")]
1515
[TestCase("WEst Us 2", "westus2", "West US 2")]
16-
[TestCase("West Us 3", "westus3", "West Us 3")]
16+
[TestCase("West Us 3", "westus3", "West US 3")]
1717
[TestCase("West-Us 2", "west-us2", "West-Us 2")]
1818
[TestCase(" West Us 2", "westus2", "West US 2")]
1919
[TestCase(" ", "", " ")]

0 commit comments

Comments
 (0)