|
7 | 7 | namespace Azure.Data.AppConfiguration |
8 | 8 | { |
9 | 9 | /// <summary> Cloud audiences available for AppConfiguration. </summary> |
10 | | - public readonly struct ConfigurationAudience : IEquatable<ConfigurationAudience> |
| 10 | + public readonly struct AppConfigurationAudience : IEquatable<AppConfigurationAudience> |
11 | 11 | { |
12 | 12 | private readonly string _value; |
13 | 13 | private const string AzureChinaValue = "https://appconfig.azure.cn"; |
14 | 14 | private const string AzureGovernmentValue = "https://appconfig.azure.us"; |
15 | 15 | private const string AzurePublicCloudValue = "https://appconfig.azure.com"; |
16 | 16 |
|
17 | 17 | /// <summary> |
18 | | - /// Initializes a new instance of the <see cref="ConfigurationAudience"/> object. |
| 18 | + /// Initializes a new instance of the <see cref="AppConfigurationAudience"/> object. |
19 | 19 | /// </summary> |
20 | 20 | /// <param name="value">The Microsoft Entra audience to use when forming authorization scopes. |
21 | 21 | /// For the App Configuration service, this value corresponds to a URL that identifies the Azure cloud where the resource is located.</param> |
22 | 22 | /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> |
23 | 23 | /// <remarks>Please use one of the constant members over creating a custom value unless you have special needs for doing so.</remarks> |
24 | | - public ConfigurationAudience(string value) |
| 24 | + public AppConfigurationAudience(string value) |
25 | 25 | { |
26 | 26 | Argument.AssertNotNullOrEmpty(value, nameof(value)); |
27 | 27 | _value = value; |
28 | 28 | } |
29 | 29 |
|
30 | 30 | /// <summary> Azure China. </summary> |
31 | | - public static ConfigurationAudience AzureChina { get; } = new ConfigurationAudience(AzureChinaValue); |
| 31 | + public static AppConfigurationAudience AzureChina { get; } = new AppConfigurationAudience(AzureChinaValue); |
32 | 32 |
|
33 | 33 | /// <summary> Azure Government. </summary> |
34 | | - public static ConfigurationAudience AzureGovernment { get; } = new ConfigurationAudience(AzureGovernmentValue); |
| 34 | + public static AppConfigurationAudience AzureGovernment { get; } = new AppConfigurationAudience(AzureGovernmentValue); |
35 | 35 |
|
36 | 36 | /// <summary> Azure Public Cloud. </summary> |
37 | | - public static ConfigurationAudience AzurePublicCloud { get; } = new ConfigurationAudience(AzurePublicCloudValue); |
| 37 | + public static AppConfigurationAudience AzurePublicCloud { get; } = new AppConfigurationAudience(AzurePublicCloudValue); |
38 | 38 |
|
39 | | - /// <summary> Determines if two <see cref="ConfigurationAudience"/> values are the same. </summary> |
40 | | - public static bool operator ==(ConfigurationAudience left, ConfigurationAudience right) => left.Equals(right); |
41 | | - /// <summary> Determines if two <see cref="ConfigurationAudience"/> values are not the same. </summary> |
42 | | - public static bool operator !=(ConfigurationAudience left, ConfigurationAudience right) => !left.Equals(right); |
43 | | - /// <summary> Converts a string to a <see cref="ConfigurationAudience"/>. </summary> |
44 | | - public static implicit operator ConfigurationAudience(string value) => new ConfigurationAudience(value); |
| 39 | + /// <summary> Determines if two <see cref="AppConfigurationAudience"/> values are the same. </summary> |
| 40 | + public static bool operator ==(AppConfigurationAudience left, AppConfigurationAudience right) => left.Equals(right); |
| 41 | + /// <summary> Determines if two <see cref="AppConfigurationAudience"/> values are not the same. </summary> |
| 42 | + public static bool operator !=(AppConfigurationAudience left, AppConfigurationAudience right) => !left.Equals(right); |
| 43 | + /// <summary> Converts a string to a <see cref="AppConfigurationAudience"/>. </summary> |
| 44 | + public static implicit operator AppConfigurationAudience(string value) => new AppConfigurationAudience(value); |
45 | 45 |
|
46 | 46 | /// <inheritdoc /> |
47 | 47 | [EditorBrowsable(EditorBrowsableState.Never)] |
48 | | - public override bool Equals(object obj) => obj is ConfigurationAudience other && Equals(other); |
| 48 | + public override bool Equals(object obj) => obj is AppConfigurationAudience other && Equals(other); |
49 | 49 | /// <inheritdoc /> |
50 | | - public bool Equals(ConfigurationAudience other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); |
| 50 | + public bool Equals(AppConfigurationAudience other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); |
51 | 51 |
|
52 | 52 | /// <inheritdoc /> |
53 | 53 | [EditorBrowsable(EditorBrowsableState.Never)] |
|
0 commit comments