From a5a9e0e5b8296fbf90a49dc8ebacd62f75298690 Mon Sep 17 00:00:00 2001 From: Amari West Date: Wed, 11 Oct 2023 17:15:55 -0500 Subject: [PATCH] regenerated code --- .../src/Generated/CallMediaRestClient.cs | 38 +++++++++---------- ...TranscriptionDataRequest.Serialization.cs} | 2 +- ...l.cs => UpdateTranscriptionDataRequest.cs} | 8 ++-- 3 files changed, 24 insertions(+), 24 deletions(-) rename sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/{UpdateTranscriptionRequestInternal.Serialization.cs => UpdateTranscriptionDataRequest.Serialization.cs} (85%) rename sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/{UpdateTranscriptionRequestInternal.cs => UpdateTranscriptionDataRequest.cs} (75%) diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/CallMediaRestClient.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/CallMediaRestClient.cs index 52474a5d420f2..829efa83413e0 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/CallMediaRestClient.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/CallMediaRestClient.cs @@ -120,7 +120,7 @@ internal HttpMessage CreateStartTranscriptionRequest(string callConnectionId, St uri.Reset(_endpoint); uri.AppendPath("/calling/callConnections/", false); uri.AppendPath(callConnectionId, true); - uri.AppendPath(":startTranscription", false); + uri.AppendPath(":StartTranscription", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -194,7 +194,7 @@ internal HttpMessage CreateStopTranscriptionRequest(string callConnectionId, Sto uri.Reset(_endpoint); uri.AppendPath("/calling/callConnections/", false); uri.AppendPath(callConnectionId, true); - uri.AppendPath(":stopTranscription", false); + uri.AppendPath(":StopTranscription", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -615,7 +615,7 @@ public Response SendDtmf(string callConnectionId, SendDtmfRequestInternal sendDt } } - internal HttpMessage CreateUpdateTranscriptionRequest(string callConnectionId, UpdateTranscriptionRequestInternal updateTranscriptionRequest) + internal HttpMessage CreateUpdateTranscriptionDataRequest(string callConnectionId, UpdateTranscriptionDataRequest updateTranscriptionDataRequest) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -624,35 +624,35 @@ internal HttpMessage CreateUpdateTranscriptionRequest(string callConnectionId, U uri.Reset(_endpoint); uri.AppendPath("/calling/callConnections/", false); uri.AppendPath(callConnectionId, true); - uri.AppendPath(":updateTranscription", false); + uri.AppendPath(":updateTranscriptionData", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(updateTranscriptionRequest); + content.JsonWriter.WriteObjectValue(updateTranscriptionDataRequest); request.Content = content; return message; } - /// UpdateTranscription Api. + /// UpdateTranscriptionData Api. /// The call connection id. - /// The updateTranscription request. + /// The updateTranscriptionData request. /// The cancellation token to use. - /// or is null. + /// or is null. /// API to change transcription language. - public async Task UpdateTranscriptionAsync(string callConnectionId, UpdateTranscriptionRequestInternal updateTranscriptionRequest, CancellationToken cancellationToken = default) + public async Task UpdateTranscriptionDataAsync(string callConnectionId, UpdateTranscriptionDataRequest updateTranscriptionDataRequest, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (updateTranscriptionRequest == null) + if (updateTranscriptionDataRequest == null) { - throw new ArgumentNullException(nameof(updateTranscriptionRequest)); + throw new ArgumentNullException(nameof(updateTranscriptionDataRequest)); } - using var message = CreateUpdateTranscriptionRequest(callConnectionId, updateTranscriptionRequest); + using var message = CreateUpdateTranscriptionDataRequest(callConnectionId, updateTranscriptionDataRequest); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -663,24 +663,24 @@ public async Task UpdateTranscriptionAsync(string callConnectionId, Up } } - /// UpdateTranscription Api. + /// UpdateTranscriptionData Api. /// The call connection id. - /// The updateTranscription request. + /// The updateTranscriptionData request. /// The cancellation token to use. - /// or is null. + /// or is null. /// API to change transcription language. - public Response UpdateTranscription(string callConnectionId, UpdateTranscriptionRequestInternal updateTranscriptionRequest, CancellationToken cancellationToken = default) + public Response UpdateTranscriptionData(string callConnectionId, UpdateTranscriptionDataRequest updateTranscriptionDataRequest, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (updateTranscriptionRequest == null) + if (updateTranscriptionDataRequest == null) { - throw new ArgumentNullException(nameof(updateTranscriptionRequest)); + throw new ArgumentNullException(nameof(updateTranscriptionDataRequest)); } - using var message = CreateUpdateTranscriptionRequest(callConnectionId, updateTranscriptionRequest); + using var message = CreateUpdateTranscriptionDataRequest(callConnectionId, updateTranscriptionDataRequest); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UpdateTranscriptionRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UpdateTranscriptionDataRequest.Serialization.cs similarity index 85% rename from sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UpdateTranscriptionRequestInternal.Serialization.cs rename to sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UpdateTranscriptionDataRequest.Serialization.cs index 973bb8756b584..0f76b6afdc77b 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UpdateTranscriptionRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UpdateTranscriptionDataRequest.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.Communication.CallAutomation { - internal partial class UpdateTranscriptionRequestInternal : IUtf8JsonSerializable + public partial class UpdateTranscriptionDataRequest : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UpdateTranscriptionRequestInternal.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UpdateTranscriptionDataRequest.cs similarity index 75% rename from sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UpdateTranscriptionRequestInternal.cs rename to sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UpdateTranscriptionDataRequest.cs index 2a1d3954d6ceb..abc8246a960ba 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UpdateTranscriptionRequestInternal.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UpdateTranscriptionDataRequest.cs @@ -10,13 +10,13 @@ namespace Azure.Communication.CallAutomation { - /// The UpdateTranscriptionRequest. - internal partial class UpdateTranscriptionRequestInternal + /// The UpdateTranscriptionDataRequest. + public partial class UpdateTranscriptionDataRequest { - /// Initializes a new instance of UpdateTranscriptionRequestInternal. + /// Initializes a new instance of UpdateTranscriptionDataRequest. /// Defines new locale for transcription. /// is null. - public UpdateTranscriptionRequestInternal(string locale) + public UpdateTranscriptionDataRequest(string locale) { Argument.AssertNotNull(locale, nameof(locale));