Skip to content

Commit 4293117

Browse files
authored
Mute/Unmute participants from a call - CallAutomation (Azure#33328)
* Updated autorest with Mute/Unmute operations * Fixing autorest update * Updating live tests * Added Mute/Unmute sync methods * Added Mute/Unmute async methods * Updating API * Updating Autorest * Implementing Mute/Unmute sync methods * Implemented Mute/Unmute async methods * Updating API * Fixing Repeatibility Headers * Fixing merge * Fixing namespace of some models * Updating comments * Updating API * Removing unused import
1 parent 08d6f95 commit 4293117

File tree

42 files changed

+1757
-85
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1757
-85
lines changed

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

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ public static partial class CallAutomationModelFactory
137137
public static Azure.Communication.CallAutomation.ChoiceResult ChoiceResult(string label = null, string recognizedPhrase = null) { throw null; }
138138
public static Azure.Communication.CallAutomation.CollectTonesResult CollectTonesResult(System.Collections.Generic.IEnumerable<Azure.Communication.CallAutomation.DtmfTone> tones = null) { throw null; }
139139
public static Azure.Communication.CallAutomation.CreateCallResult CreateCallResult(Azure.Communication.CallAutomation.CallConnection callConnection = null, Azure.Communication.CallAutomation.CallConnectionProperties callConnectionProperties = null) { throw null; }
140-
public static Azure.Communication.CallAutomation.ParticipantsUpdated ParticipantsUpdated(string callConnectionId = null, string serverCallId = null, string correlationId = null, System.Collections.Generic.IEnumerable<Azure.Communication.CommunicationIdentifier> participants = null) { throw null; }
140+
public static Azure.Communication.CallAutomation.MuteParticipantsResponse MuteParticipantsResponse(string operationContext = null) { throw null; }
141+
public static Azure.Communication.CallAutomation.ParticipantsUpdated ParticipantsUpdated(string callConnectionId = null, string serverCallId = null, string correlationId = null, System.Collections.Generic.IEnumerable<Azure.Communication.CallAutomation.CallParticipant> participants = null) { throw null; }
141142
public static Azure.Communication.CallAutomation.PlayCanceled PlayCanceled(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null) { throw null; }
142143
public static Azure.Communication.CallAutomation.PlayCompleted PlayCompleted(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null) { throw null; }
143144
public static Azure.Communication.CallAutomation.PlayFailed PlayFailed(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null) { throw null; }
@@ -149,6 +150,7 @@ public static partial class CallAutomationModelFactory
149150
public static Azure.Communication.CallAutomation.RemoveParticipantsResult RemoveParticipantsResult(string operationContext = null) { throw null; }
150151
public static Azure.Communication.CallAutomation.ResultInformation ResultInformation(int? code = default(int?), int? subCode = default(int?), string message = null) { throw null; }
151152
public static Azure.Communication.CallAutomation.TransferCallToParticipantResult TransferCallToParticipantResult(string operationContext = null) { throw null; }
153+
public static Azure.Communication.CallAutomation.UnmuteParticipantsResponse UnmuteParticipantsResponse(string operationContext = null) { throw null; }
152154
}
153155
public partial class CallConnected : Azure.Communication.CallAutomation.CallAutomationEventBase
154156
{
@@ -172,12 +174,28 @@ protected CallConnection() { }
172174
public virtual Azure.Response HangUp(bool forEveryone, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
173175
public virtual System.Threading.Tasks.Task<Azure.Response> HangUpAsync(Azure.Communication.CallAutomation.HangUpOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
174176
public virtual System.Threading.Tasks.Task<Azure.Response> HangUpAsync(bool forEveryone, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
177+
public virtual Azure.Response<Azure.Communication.CallAutomation.MuteParticipantsResponse> MuteAllParticipants(Azure.Communication.CallAutomation.MuteAllParticipantsOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
178+
public virtual Azure.Response<Azure.Communication.CallAutomation.MuteParticipantsResponse> MuteAllParticipants(Azure.Communication.CommunicationIdentifier initiator = null, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
179+
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.MuteParticipantsResponse>> MuteAllParticipantsAsync(Azure.Communication.CallAutomation.MuteAllParticipantsOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
180+
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.MuteParticipantsResponse>> MuteAllParticipantsAsync(Azure.Communication.CommunicationIdentifier initiator = null, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
181+
public virtual Azure.Response<Azure.Communication.CallAutomation.MuteParticipantsResponse> MuteParticipant(Azure.Communication.CallAutomation.MuteParticipantOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
182+
public virtual Azure.Response<Azure.Communication.CallAutomation.MuteParticipantsResponse> MuteParticipant(Azure.Communication.CommunicationIdentifier targetParticipant, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
183+
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.MuteParticipantsResponse>> MuteParticipantAsync(Azure.Communication.CallAutomation.MuteParticipantOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
184+
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.MuteParticipantsResponse>> MuteParticipantAsync(Azure.Communication.CommunicationIdentifier participant, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
175185
public virtual Azure.Response<Azure.Communication.CallAutomation.RemoveParticipantsResult> RemoveParticipants(Azure.Communication.CallAutomation.RemoveParticipantsOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
176186
public virtual Azure.Response<Azure.Communication.CallAutomation.RemoveParticipantsResult> RemoveParticipants(System.Collections.Generic.IEnumerable<Azure.Communication.CommunicationIdentifier> participantsToRemove, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
177187
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.RemoveParticipantsResult>> RemoveParticipantsAsync(Azure.Communication.CallAutomation.RemoveParticipantsOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
178188
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.RemoveParticipantsResult>> RemoveParticipantsAsync(System.Collections.Generic.IEnumerable<Azure.Communication.CommunicationIdentifier> participantsToRemove, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
179189
public virtual Azure.Response<Azure.Communication.CallAutomation.TransferCallToParticipantResult> TransferCallToParticipant(Azure.Communication.CallAutomation.TransferToParticipantOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
180190
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.TransferCallToParticipantResult>> TransferCallToParticipantAsync(Azure.Communication.CallAutomation.TransferToParticipantOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
191+
public virtual Azure.Response<Azure.Communication.CallAutomation.UnmuteParticipantsResponse> UnmuteAllParticipants(Azure.Communication.CallAutomation.UnmuteAllParticipantsOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
192+
public virtual Azure.Response<Azure.Communication.CallAutomation.UnmuteParticipantsResponse> UnmuteAllParticipants(string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
193+
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.UnmuteParticipantsResponse>> UnmuteAllParticipantsAsync(Azure.Communication.CallAutomation.UnmuteAllParticipantsOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
194+
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.UnmuteParticipantsResponse>> UnmuteAllParticipantsAsync(string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
195+
public virtual Azure.Response<Azure.Communication.CallAutomation.UnmuteParticipantsResponse> UnmuteParticipant(Azure.Communication.CallAutomation.UnmuteParticipantOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
196+
public virtual Azure.Response<Azure.Communication.CallAutomation.UnmuteParticipantsResponse> UnmuteParticipant(Azure.Communication.CommunicationIdentifier targetParticipant, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
197+
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.UnmuteParticipantsResponse>> UnmuteParticipantAsync(Azure.Communication.CallAutomation.UnmuteParticipantOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
198+
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.UnmuteParticipantsResponse>> UnmuteParticipantAsync(Azure.Communication.CommunicationIdentifier participant, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
181199
}
182200
public partial class CallConnectionProperties
183201
{
@@ -589,10 +607,29 @@ public static partial class MediaStreamingPackageParser
589607
public static bool operator !=(Azure.Communication.CallAutomation.MediaStreamingTransport left, Azure.Communication.CallAutomation.MediaStreamingTransport right) { throw null; }
590608
public override string ToString() { throw null; }
591609
}
610+
public partial class MuteAllParticipantsOptions
611+
{
612+
public MuteAllParticipantsOptions() { }
613+
public string OperationContext { get { throw null; } set { } }
614+
public Azure.Communication.CallAutomation.RepeatabilityHeaders RepeatabilityHeaders { get { throw null; } set { } }
615+
public Azure.Communication.CommunicationIdentifier RequestInitiator { get { throw null; } set { } }
616+
}
617+
public partial class MuteParticipantOptions
618+
{
619+
public MuteParticipantOptions(Azure.Communication.CommunicationIdentifier targetParticipant) { }
620+
public string OperationContext { get { throw null; } set { } }
621+
public Azure.Communication.CallAutomation.RepeatabilityHeaders RepeatabilityHeaders { get { throw null; } set { } }
622+
public Azure.Communication.CommunicationIdentifier TargetParticipant { get { throw null; } }
623+
}
624+
public partial class MuteParticipantsResponse
625+
{
626+
internal MuteParticipantsResponse() { }
627+
public string OperationContext { get { throw null; } }
628+
}
592629
public partial class ParticipantsUpdated : Azure.Communication.CallAutomation.CallAutomationEventBase
593630
{
594631
internal ParticipantsUpdated() { }
595-
public System.Collections.Generic.IReadOnlyList<Azure.Communication.CommunicationIdentifier> Participants { get { throw null; } }
632+
public System.Collections.Generic.IReadOnlyList<Azure.Communication.CallAutomation.CallParticipant> Participants { get { throw null; } }
596633
public static Azure.Communication.CallAutomation.ParticipantsUpdated Deserialize(string content) { throw null; }
597634
}
598635
public partial class PlayCanceled : Azure.Communication.CallAutomation.CallAutomationEventBase
@@ -916,6 +953,24 @@ public TransferToParticipantOptions(Azure.Communication.CommunicationIdentifier
916953
public Azure.Communication.CommunicationIdentifier TargetParticipant { get { throw null; } }
917954
public string UserToUserInformation { get { throw null; } set { } }
918955
}
956+
public partial class UnmuteAllParticipantsOptions
957+
{
958+
public UnmuteAllParticipantsOptions() { }
959+
public string OperationContext { get { throw null; } set { } }
960+
public Azure.Communication.CallAutomation.RepeatabilityHeaders RepeatabilityHeaders { get { throw null; } set { } }
961+
}
962+
public partial class UnmuteParticipantOptions
963+
{
964+
public UnmuteParticipantOptions(Azure.Communication.CommunicationIdentifier targetParticipant) { }
965+
public string OperationContext { get { throw null; } set { } }
966+
public Azure.Communication.CallAutomation.RepeatabilityHeaders RepeatabilityHeaders { get { throw null; } set { } }
967+
public Azure.Communication.CommunicationIdentifier TargetParticipant { get { throw null; } }
968+
}
969+
public partial class UnmuteParticipantsResponse
970+
{
971+
internal UnmuteParticipantsResponse() { }
972+
public string OperationContext { get { throw null; } }
973+
}
919974
}
920975
namespace Azure.Communication.CallAutomation.Models
921976
{

0 commit comments

Comments
 (0)