Skip to content

Commit 7fb84f3

Browse files
[Communication] - Follow standards for identity client options version (Azure#18400)
1 parent 2b8903b commit 7fb84f3

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

sdk/communication/Azure.Communication.Identity/api/Azure.Communication.Identity.netstandard2.0.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ public CommunicationIdentityClient(System.Uri endpoint, Azure.Core.TokenCredenti
2020
}
2121
public partial class CommunicationIdentityClientOptions : Azure.Core.ClientOptions
2222
{
23-
public CommunicationIdentityClientOptions(Azure.Communication.Identity.CommunicationIdentityClientOptions.ServiceVersion version = Azure.Communication.Identity.CommunicationIdentityClientOptions.ServiceVersion.V1) { }
23+
public CommunicationIdentityClientOptions(Azure.Communication.Identity.CommunicationIdentityClientOptions.ServiceVersion version = Azure.Communication.Identity.CommunicationIdentityClientOptions.ServiceVersion.V2021_03_07) { }
2424
public enum ServiceVersion
2525
{
26-
V1 = 1,
26+
V2021_03_07 = 1,
2727
}
2828
}
2929
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]

sdk/communication/Azure.Communication.Identity/src/CommunicationIdentityClientOptions.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ namespace Azure.Communication.Identity
1212
public class CommunicationIdentityClientOptions : ClientOptions
1313
{
1414
/// <summary>
15-
/// The latest version of the token service.
15+
/// The latest version of the identity service.
1616
/// </summary>
17-
internal const ServiceVersion LatestVersion = ServiceVersion.V1;
17+
internal const ServiceVersion LatestVersion = ServiceVersion.V2021_03_07;
1818

1919
internal string ApiVersion { get; }
2020

@@ -25,7 +25,7 @@ public CommunicationIdentityClientOptions(ServiceVersion version = LatestVersion
2525
{
2626
ApiVersion = version switch
2727
{
28-
ServiceVersion.V1 => "2021-03-07",
28+
ServiceVersion.V2021_03_07 => "2021-03-07",
2929
_ => throw new ArgumentOutOfRangeException(nameof(version)),
3030
};
3131
}
@@ -36,9 +36,11 @@ public CommunicationIdentityClientOptions(ServiceVersion version = LatestVersion
3636
public enum ServiceVersion
3737
{
3838
/// <summary>
39-
/// The V1 of the token service.
39+
/// The V2021_03_07 of the identity service.
4040
/// </summary>
41-
V1 = 1
41+
#pragma warning disable CA1707 // Identifiers should not contain underscores
42+
V2021_03_07 = 1,
43+
#pragma warning restore CA1707 // Identifiers should not contain underscores
4244
}
4345
}
4446
}

0 commit comments

Comments
 (0)