Skip to content

Commit 3c0cad4

Browse files
committed
Modified swagger, so adding new autogenerated code
1 parent be966b6 commit 3c0cad4

26 files changed

+299
-349
lines changed

sdk/communication/Azure.Communication.NetworkTraversal/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The networking client can be authenticated using a connection string acquired fr
2525

2626
```C# Snippet:CreateCommunicationRelayClient
2727
// Get a connection string to our Azure Communication resource.
28-
var connectionString = "<connection_string>";
28+
//@@var connectionString = "<connection_string>";
2929
var client = new CommunicationRelayClient(connectionString);
3030
```
3131

@@ -34,13 +34,16 @@ Or alternatively using the endpoint and access key acquired from an Azure Commun
3434
```C# Snippet:CreateCommunicationRelayFromAccessKey
3535
var endpoint = new Uri("https://my-resource.communication.azure.com");
3636
var accessKey = "<access_key>";
37+
/*@@*/ endpoint = TestEnvironment.LiveTestDynamicEndpoint;
38+
/*@@*/ accessKey = TestEnvironment.LiveTestDynamicAccessKey;
3739
var client = new CommunicationRelayClient(endpoint, new AzureKeyCredential(accessKey));
3840
```
3941

4042
Clients also have the option to authenticate using a valid Active Directory token.
4143

4244
```C# Snippet:CreateCommunicationRelayFromToken
4345
var endpoint = new Uri("https://my-resource.communication.azure.com");
46+
/*@@*/ endpoint = TestEnvironment.LiveTestDynamicEndpoint;
4447
TokenCredential tokenCredential = new DefaultAzureCredential();
4548
var client = new CommunicationRelayClient(endpoint, tokenCredential);
4649
```
@@ -80,6 +83,7 @@ foreach (CommunicationIceServer iceServer in iceServers)
8083
}
8184
Console.WriteLine($"ICE Server Username: {iceServer.Username}");
8285
Console.WriteLine($"ICE Server Credential: {iceServer.Credential}");
86+
Console.WriteLine($"Route type: {iceServer.RouteType}");
8387
}
8488
```
8589

sdk/communication/Azure.Communication.NetworkTraversal/src/CommunicationRelayClient.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ protected CommunicationRelayClient()
9292

9393
/// <summary>Gets a Relay Configuration for a <see cref="CommunicationUserIdentifier"/>.</summary>
9494
/// <param name="communicationUser">The <see cref="CommunicationUserIdentifier"/> for whom to issue a token.</param>
95-
/// <param name="routeType"> The specified <see cref="CommunicationRelayConfigurationRequestRouteType"/> for the relay request </param>
95+
/// <param name="routeType"> The specified <see cref="RouteType"/> for the relay request </param>
9696
/// <param name="cancellationToken">The cancellation token to use.</param>
9797
/// <exception cref="RequestFailedException">The server returned an error.</exception>
98-
public virtual Response<CommunicationRelayConfiguration> GetRelayConfiguration(CommunicationUserIdentifier communicationUser = null, CommunicationRelayConfigurationRequestRouteType? routeType = null, CancellationToken cancellationToken = default)
98+
public virtual Response<CommunicationRelayConfiguration> GetRelayConfiguration(CommunicationUserIdentifier communicationUser = null, RouteType? routeType = null, CancellationToken cancellationToken = default)
9999
{
100100
using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CommunicationRelayClient)}.{nameof(GetRelayConfiguration)}");
101101
scope.Start();
@@ -112,9 +112,9 @@ public virtual Response<CommunicationRelayConfiguration> GetRelayConfiguration(C
112112

113113
/// <summary>Asynchronously gets a Relay Configuration for a <see cref="CommunicationUserIdentifier"/>.</summary>
114114
/// <param name="communicationUser">The <see cref="CommunicationUserIdentifier"/> for whom to issue a token.</param>
115-
/// <param name="routeType"> The specified <see cref="CommunicationRelayConfigurationRequestRouteType"/> for the relay request </param>
115+
/// <param name="routeType"> The specified <see cref="RouteType"/> for the relay request </param>
116116
/// <param name="cancellationToken">The cancellation token to use.</param>
117-
public virtual async Task<Response<CommunicationRelayConfiguration>> GetRelayConfigurationAsync(CommunicationUserIdentifier communicationUser = null, CommunicationRelayConfigurationRequestRouteType? routeType = null, CancellationToken cancellationToken = default)
117+
public virtual async Task<Response<CommunicationRelayConfiguration>> GetRelayConfigurationAsync(CommunicationUserIdentifier communicationUser = null, RouteType? routeType = null, CancellationToken cancellationToken = default)
118118
{
119119
using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CommunicationRelayClient)}.{nameof(GetRelayConfiguration)}");
120120
scope.Start();

sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/CommunicationNetworkTraversalRestClient.cs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationIceServer.Serialization.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationIceServer.cs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationIceServerRouteType.cs

Lines changed: 0 additions & 51 deletions
This file was deleted.

sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationRelayConfigurationRequest.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationRelayConfigurationRequestRouteType.cs

Lines changed: 0 additions & 51 deletions
This file was deleted.

sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/RouteType.cs

Lines changed: 51 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/NetworkTraversalModelFactory.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)