Skip to content

Commit 8bb17de

Browse files
authored
Added alpha4 changes. (#47387)
1 parent b6e60d7 commit 8bb17de

19 files changed

+508
-79
lines changed

eng/scripts/Export-API.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ $servicesProj = Resolve-Path "$PSScriptRoot/../service.proj"
1616

1717
$debugLogging = $env:SYSTEM_DEBUG -eq "true"
1818
$logsFolder = $env:BUILD_ARTIFACTSTAGINGDIRECTORY
19-
$diagnosticArguments = ($debugLogging -and $logsFolder) ? "/binarylogger:$logsFolder/exportapi.binlog" : ""
19+
$diagnosticArguments = ""
20+
if ($debugLogging -and $logsFolder) {
21+
$diagnosticArguments = "/binarylog"
22+
} else {
23+
$diagnosticArguments = ""
24+
}
25+
2026

2127
dotnet build /t:ExportApi /p:RunApiCompat=false /p:InheritDocEnabled=false /p:GeneratePackageOnBuild=false /p:Configuration=Release /p:IncludeSamples=false /p:IncludePerf=false /p:IncludeStress=false /p:IncludeTests=false /p:Scope="$ServiceDirectory" /p:SDKType=$SDKType /restore $servicesProj $diagnosticArguments
2228

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

Lines changed: 238 additions & 58 deletions
Large diffs are not rendered by default.

sdk/communication/Azure.Communication.CallAutomation/src/CallMedia.cs

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,7 @@ public virtual Response StartTranscription(StartTranscriptionOptions options = d
12701270
{
12711271
var request = options == default
12721272
? new StartTranscriptionRequestInternal()
1273-
: new StartTranscriptionRequestInternal() { Locale = options.Locale, OperationContext = options.OperationContext };
1273+
: new StartTranscriptionRequestInternal() { Locale = options.Locale, OperationContext = options.OperationContext, OperationCallbackUri=options.OperationCallbackUri, SpeechRecognitionModelEndpointId=options.SpeechRecognitionModelEndpointId };
12741274

12751275
return CallMediaRestClient.StartTranscription(CallConnectionId, request, cancellationToken);
12761276
}
@@ -1295,7 +1295,7 @@ public virtual async Task<Response> StartTranscriptionAsync(StartTranscriptionOp
12951295
{
12961296
var request = options == default
12971297
? new StartTranscriptionRequestInternal()
1298-
: new StartTranscriptionRequestInternal() { Locale = options.Locale, OperationContext = options.OperationContext };
1298+
: new StartTranscriptionRequestInternal() { Locale = options.Locale, OperationContext = options.OperationContext, OperationCallbackUri = options.OperationCallbackUri, SpeechRecognitionModelEndpointId = options.SpeechRecognitionModelEndpointId };
12991299

13001300
return await CallMediaRestClient.StartTranscriptionAsync(CallConnectionId, request, cancellationToken).ConfigureAwait(false);
13011301
}
@@ -1320,7 +1320,7 @@ public virtual Response StopTranscription(StopTranscriptionOptions options = def
13201320
{
13211321
var request = options == default
13221322
? new StopTranscriptionRequestInternal()
1323-
: new StopTranscriptionRequestInternal() { OperationContext = options.OperationContext };
1323+
: new StopTranscriptionRequestInternal() { OperationContext = options.OperationContext, OperationCallbackUri = options.OperationCallbackUri };
13241324

13251325
return CallMediaRestClient.StopTranscription(CallConnectionId, request, cancellationToken);
13261326
}
@@ -1345,7 +1345,7 @@ public virtual async Task<Response> StopTranscriptionAsync(StopTranscriptionOpti
13451345
{
13461346
var request = options == default
13471347
? new StopTranscriptionRequestInternal()
1348-
: new StopTranscriptionRequestInternal() { OperationContext = options.OperationContext };
1348+
: new StopTranscriptionRequestInternal() { OperationContext = options.OperationContext, OperationCallbackUri = options.OperationCallbackUri };
13491349

13501350
return await CallMediaRestClient.StopTranscriptionAsync(CallConnectionId, request, cancellationToken).ConfigureAwait(false);
13511351
}
@@ -1390,11 +1390,7 @@ public virtual Response UpdateTranscription(UpdateTranscriptionOptions options =
13901390
scope.Start();
13911391
try
13921392
{
1393-
UpdateTranscriptionRequestInternal request = new(options.Locale)
1394-
{
1395-
// OperationContext = options.OperationContext,
1396-
// SpeechRecognitionModelEndpointId = options.SpeechRecognitionModelEndpointId
1397-
};
1393+
UpdateTranscriptionRequestInternal request = new(options.Locale, options.SpeechRecognitionModelEndpointId, options.OperationContext, options.OperationCallbackUri);
13981394

13991395
return CallMediaRestClient.UpdateTranscription(CallConnectionId, request, cancellationToken);
14001396
}
@@ -1439,11 +1435,7 @@ public virtual async Task<Response> UpdateTranscriptionAsync(UpdateTranscription
14391435
scope.Start();
14401436
try
14411437
{
1442-
UpdateTranscriptionRequestInternal request = new(options.Locale)
1443-
{
1444-
// OperationContext = options.OperationContext,
1445-
// SpeechRecognitionModelEndpointId = options.SpeechRecognitionModelEndpointId
1446-
};
1438+
UpdateTranscriptionRequestInternal request = new(options.Locale, options.SpeechRecognitionModelEndpointId, options.OperationContext, options.OperationCallbackUri);
14471439

14481440
return await CallMediaRestClient.UpdateTranscriptionAsync(CallConnectionId, request, cancellationToken).ConfigureAwait(false);
14491441
}
@@ -1518,7 +1510,7 @@ public virtual Response StopMediaStreaming(StopMediaStreamingOptions options = d
15181510
{
15191511
var request = options == default
15201512
? new StopMediaStreamingRequestInternal()
1521-
: new StopMediaStreamingRequestInternal() { OperationCallbackUri = options.OperationCallbackUri?.AbsoluteUri }; // OperationContext = options.OperationContext
1513+
: new StopMediaStreamingRequestInternal() { OperationCallbackUri = options.OperationCallbackUri?.AbsoluteUri, OperationContext = options.OperationContext };
15221514

15231515
return CallMediaRestClient.StopMediaStreaming(CallConnectionId, request, cancellationToken);
15241516
}

sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ConnectFailed.Serialization.cs

Lines changed: 68 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.CallAutomation/src/Generated/Models/ConnectFailed.cs

Lines changed: 33 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.CallAutomation/src/Generated/Models/PlayStarted.cs

Lines changed: 44 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.CallAutomation/src/Generated/Models/StartTranscriptionRequestInternal.Serialization.cs

Lines changed: 10 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.CallAutomation/src/Generated/Models/StartTranscriptionRequestInternal.cs

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

sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StopMediaStreamingRequestInternal.Serialization.cs

Lines changed: 5 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.CallAutomation/src/Generated/Models/StopMediaStreamingRequestInternal.cs

Lines changed: 5 additions & 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)