getRecordingResultWithResponse(String recordingId, Context context) {
- return getRecordingResultWithResponseAsync(recordingId, context).block();
- }
-
- /**
- * Get recording result. This includes the download URLs for the recording chunks.
- *
- * @param recordingId The recording id.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws CommunicationErrorResponseException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return recording result.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public RecordingResultResponse getRecordingResult(String recordingId) {
- return getRecordingResultWithResponse(recordingId, Context.NONE).getValue();
- }
}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/AudioDataContructorProxy.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/AudioDataContructorProxy.java
index 33d881c1d76f..507377cfa7fb 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/AudioDataContructorProxy.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/AudioDataContructorProxy.java
@@ -5,11 +5,15 @@
import com.azure.communication.callautomation.implementation.converters.AudioDataConverter;
import com.azure.communication.callautomation.models.AudioData;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.logging.ClientLogger;
/**
* Helper class to access private values of {@link AudioData} across package boundaries.
*/
public final class AudioDataContructorProxy {
+ private static final ClientLogger LOGGER = new ClientLogger(AudioDataContructorProxy.class);
+
private static AudioDataContructorProxyAccessor accessor;
private AudioDataContructorProxy() {
@@ -35,7 +39,7 @@ public interface AudioDataContructorProxyAccessor {
* @param data The internal response.
* @return A new instance of {@link AudioData}.
*/
- AudioData create(byte[] data);
+ AudioData create(BinaryData data);
}
/**
@@ -59,7 +63,11 @@ public static AudioData create(AudioDataConverter internalResponse) {
// application accesses AudioData which triggers the accessor to be configured. So, if the accessor
// is null this effectively pokes the class to set up the accessor.
if (accessor == null) {
- new AudioData();
+ try {
+ Class.forName(AudioData.class.getName(), true, AudioDataContructorProxyAccessor.class.getClassLoader());
+ } catch (ClassNotFoundException e) {
+ throw LOGGER.logExceptionAsError(new RuntimeException(e));
+ }
}
assert accessor != null;
@@ -72,12 +80,16 @@ public static AudioData create(AudioDataConverter internalResponse) {
* @param data The audio data.
* @return A new instance of {@link AudioData}.
*/
- public static AudioData create(byte[] data) {
+ public static AudioData create(BinaryData data) {
// This looks odd but is necessary, it is possible to engage the access helper before anywhere else in the
// application accesses AudioData which triggers the accessor to be configured. So, if the accessor
// is null this effectively pokes the class to set up the accessor.
if (accessor == null) {
- new AudioData();
+ try {
+ Class.forName(AudioData.class.getName(), true, AudioDataContructorProxyAccessor.class.getClassLoader());
+ } catch (ClassNotFoundException e) {
+ throw LOGGER.logExceptionAsError(new RuntimeException(e));
+ }
}
assert accessor != null;
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/AudioMetadataContructorProxy.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/AudioMetadataContructorProxy.java
index 3e44104475e1..5386f652c307 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/AudioMetadataContructorProxy.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/AudioMetadataContructorProxy.java
@@ -5,11 +5,13 @@
import com.azure.communication.callautomation.implementation.converters.AudioMetadataConverter;
import com.azure.communication.callautomation.models.AudioMetadata;
+import com.azure.core.util.logging.ClientLogger;
/**
* Helper class to access private values of {@link AudioMetaData} across package boundaries.
*/
public final class AudioMetadataContructorProxy {
+ private static final ClientLogger LOGGER = new ClientLogger(AudioMetadataContructorProxy.class);
private static AudioMetadataContructorProxyAccessor accessor;
private AudioMetadataContructorProxy() {
@@ -51,7 +53,12 @@ public static AudioMetadata create(AudioMetadataConverter internalResponse) {
// application accesses AudioMetadata which triggers the accessor to be configured. So, if the accessor
// is null this effectively pokes the class to set up the accessor.
if (accessor == null) {
- new AudioMetadata();
+ try {
+ Class.forName(AudioMetadata.class.getName(), true,
+ AudioMetadataContructorProxyAccessor.class.getClassLoader());
+ } catch (ClassNotFoundException e) {
+ throw LOGGER.logExceptionAsError(new RuntimeException(e));
+ }
}
assert accessor != null;
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/DialogStateResponseConstructorProxy.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/DialogStateResponseConstructorProxy.java
deleted file mode 100644
index 82bb62ff8d49..000000000000
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/DialogStateResponseConstructorProxy.java
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.communication.callautomation.implementation.accesshelpers;
-
-import com.azure.communication.callautomation.implementation.models.DialogStateResponse;
-import com.azure.communication.callautomation.models.DialogStateResult;
-
-/**
- * Helper class to access private values of {@link DialogStateResult} across package boundaries.
- */
-public final class DialogStateResponseConstructorProxy {
- private static DialogStateResponseConstructorProxy.DialogStateResponseConstructorAccessor accessor;
-
- private DialogStateResponseConstructorProxy() {
- }
-
- /**
- * Type defining the methods to set the non-public properties of a {@link DialogStateResponseConstructorProxy.DialogStateResponseConstructorAccessor}
- * instance.
- */
- public interface DialogStateResponseConstructorAccessor {
- /**
- * Creates a new instance of {@link DialogStateResult} backed by an internal instance of
- * {@link DialogStateResult}.
- *
- * @param internalResponse The internal response.
- * @return A new instance of {@link DialogStateResult}.
- */
- DialogStateResult create(DialogStateResponse internalResponse);
- }
-
- /**
- * The method called from {@link DialogStateResult} to set it's accessor.
- *
- * @param accessor The accessor.
- */
- public static void
- setAccessor(final DialogStateResponseConstructorProxy.DialogStateResponseConstructorAccessor accessor) {
- DialogStateResponseConstructorProxy.accessor = accessor;
- }
-
- /**
- * Creates a new instance of {@link DialogStateResult} backed by an internal instance of
- * {@link DialogStateResult}.
- *
- * @param internalResponse The internal response.
- * @return A new instance of {@link DialogStateResult}.
- */
- public static DialogStateResult create(DialogStateResponse internalResponse) {
- // This looks odd but is necessary, it is possible to engage the access helper before anywhere else in the
- // application accesses BlobDownloadHeaders which triggers the accessor to be configured. So, if the accessor
- // is null this effectively pokes the class to set up the accessor.
- if (accessor == null) {
- new DialogStateResult();
- }
-
- assert accessor != null;
- return accessor.create(internalResponse);
- }
-}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/DtmfDataContructorProxy.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/DtmfDataContructorProxy.java
new file mode 100644
index 000000000000..64932060a695
--- /dev/null
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/DtmfDataContructorProxy.java
@@ -0,0 +1,96 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+package com.azure.communication.callautomation.implementation.accesshelpers;
+
+import com.azure.communication.callautomation.implementation.converters.DtmfDataConverter;
+import com.azure.communication.callautomation.models.DtmfData;
+import com.azure.core.util.logging.ClientLogger;
+
+/**
+ * Helper class to access private values of {@link DtmdfData} across package boundaries.
+ */
+public final class DtmfDataContructorProxy {
+ private static final ClientLogger LOGGER = new ClientLogger(DtmfDataContructorProxy.class);
+ private static DtmfDataContructorProxyAccessor accessor;
+
+ private DtmfDataContructorProxy() {
+ }
+
+ /**
+ * Type defining the methods to set the non-public properties of a {@link DtmfDataContructorProxyAccessor}
+ * instance.
+ */
+ public interface DtmfDataContructorProxyAccessor {
+ /**
+ * Creates a new instance of {@link DtmfData} backed by an internal instance of
+ * {@link DtmfDataConvertor}.
+ *
+ * @param internalResponse The internal response.
+ * @return A new instance of {@link DtmfData}.
+ */
+ DtmfData create(DtmfDataConverter internalResponse);
+
+ /**
+ * Creates a new instance of {@link DtmfData}
+ *
+ * @param data The internal response.
+ * @return A new instance of {@link DtmfData}.
+ */
+ DtmfData create(String data);
+ }
+
+ /**
+ * The method called from {@link DtmfData} to set it's accessor.
+ *
+ * @param accessor The accessor.
+ */
+ public static void setAccessor(final DtmfDataContructorProxyAccessor accessor) {
+ DtmfDataContructorProxy.accessor = accessor;
+ }
+
+ /**
+ * Creates a new instance of {@link DtmfData} backed by an internal instance of
+ * {@link DtmfDataConverter}.
+ *
+ * @param internalResponse The internal response.
+ * @return A new instance of {@link DtmfData}.
+ */
+ public static DtmfData create(DtmfDataConverter internalResponse) {
+ // This looks odd but is necessary, it is possible to engage the access helper before anywhere else in the
+ // application accesses DtmfData which triggers the accessor to be configured. So, if the accessor
+ // is null this effectively pokes the class to set up the accessor.
+ if (accessor == null) {
+ try {
+ Class.forName(DtmfData.class.getName(), true, DtmfDataContructorProxyAccessor.class.getClassLoader());
+ } catch (ClassNotFoundException e) {
+ throw LOGGER.logExceptionAsError(new RuntimeException(e));
+ }
+ }
+
+ assert accessor != null;
+ return accessor.create(internalResponse);
+ }
+
+ /**
+ * Creates a new instance of {@link DtmfData}
+ *
+ * @param data The dtmf data.
+ * @return A new instance of {@link DtmfData}.
+ */
+ public static DtmfData create(String data) {
+ // This looks odd but is necessary, it is possible to engage the access helper before anywhere else in the
+ // application accesses DtmfData which triggers the accessor to be configured. So, if the accessor
+ // is null this effectively pokes the class to set up the accessor.
+ if (accessor == null) {
+ try {
+ Class.forName(DtmfData.class.getName(), true, DtmfDataContructorProxyAccessor.class.getClassLoader());
+ } catch (ClassNotFoundException e) {
+ throw LOGGER.logExceptionAsError(new RuntimeException(e));
+ }
+ }
+
+ assert accessor != null;
+ return accessor.create(data);
+ }
+}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/MediaStreamingSubscriptionConstructorProxy.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/MediaStreamingSubscriptionConstructorProxy.java
index a018a16ce9a7..c3d09b4acc35 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/MediaStreamingSubscriptionConstructorProxy.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/MediaStreamingSubscriptionConstructorProxy.java
@@ -5,11 +5,13 @@
import com.azure.communication.callautomation.implementation.models.MediaStreamingSubscriptionInternal;
import com.azure.communication.callautomation.models.MediaStreamingSubscription;
+import com.azure.core.util.logging.ClientLogger;
/**
* Helper class to access private values of {@link MediaStreamingSubscriptionInternal} across package boundaries.
*/
public final class MediaStreamingSubscriptionConstructorProxy {
+ private static final ClientLogger LOGGER = new ClientLogger(MediaStreamingSubscriptionConstructorProxy.class);
private static MediaStreamingSubscriptionConstructorAccessor accessor;
private MediaStreamingSubscriptionConstructorProxy() {
@@ -51,7 +53,12 @@ public static MediaStreamingSubscription create(MediaStreamingSubscriptionIntern
// application accesses MediaStreamingSubscription which triggers the accessor to be configured. So, if the accessor
// is null this effectively pokes the class to set up the accessor.
if (accessor == null) {
- new MediaStreamingSubscription();
+ try {
+ Class.forName(MediaStreamingSubscription.class.getName(), true,
+ MediaStreamingSubscriptionConstructorAccessor.class.getClassLoader());
+ } catch (ClassNotFoundException e) {
+ throw LOGGER.logExceptionAsError(new RuntimeException(e));
+ }
}
assert accessor != null;
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/RecordingResultResponseConstructorProxy.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/RecordingResultResponseConstructorProxy.java
deleted file mode 100644
index f568e14d15a2..000000000000
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/RecordingResultResponseConstructorProxy.java
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.communication.callautomation.implementation.accesshelpers;
-
-import com.azure.communication.callautomation.implementation.models.RecordingResultResponse;
-import com.azure.communication.callautomation.models.RecordingResult;
-
-/**
- * Helper class to access private values of {@link RecordingResult} across package boundaries.
- */
-public final class RecordingResultResponseConstructorProxy {
- private static RecordingResultResponseConstructorAccessor accessor;
-
- private RecordingResultResponseConstructorProxy() {
- }
-
- /**
- * Type defining the methods to set the non-public properties of a {@link RecordingResultResponseConstructorAccessor}
- * instance.
- */
- public interface RecordingResultResponseConstructorAccessor {
- /**
- * Creates a new instance of {@link RecordingResult} backed by an internal instance of
- * {@link RecordingResultResponse}.
- *
- * @param internalResponse The internal response.
- * @return A new instance of {@link RecordingResult}.
- */
- RecordingResult create(RecordingResultResponse internalResponse);
- }
-
- /**
- * The method called from {@link RecordingResult} to set it's accessor.
- *
- * @param accessor The accessor.
- */
- public static void setAccessor(final RecordingResultResponseConstructorAccessor accessor) {
- RecordingResultResponseConstructorProxy.accessor = accessor;
- }
-
- /**
- * Creates a new instance of {@link RecordingResult} backed by an internal instance of
- * {@link RecordingResultResponse}.
- *
- * @param internalResponse The internal response.
- * @return A new instance of {@link RecordingResult}.
- */
- public static RecordingResult create(RecordingResultResponse internalResponse) {
- if (accessor == null) {
- new RecordingResult();
- }
-
- assert accessor != null;
- return accessor.create(internalResponse);
- }
-}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/TranscriptionDataContructorProxy.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/TranscriptionDataContructorProxy.java
index 75dcc0af02fa..2aa945b2b10b 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/TranscriptionDataContructorProxy.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/TranscriptionDataContructorProxy.java
@@ -5,11 +5,13 @@
import com.azure.communication.callautomation.implementation.converters.TranscriptionDataConverter;
import com.azure.communication.callautomation.models.TranscriptionData;
+import com.azure.core.util.logging.ClientLogger;
/**
* Helper class to access private values of {@link TranscriptionData} across package boundaries.
*/
public final class TranscriptionDataContructorProxy {
+ private static final ClientLogger LOGGER = new ClientLogger(TranscriptionDataContructorProxy.class);
private static TranscriptionDataContructorProxyAccessor accessor;
private TranscriptionDataContructorProxy() {
@@ -51,7 +53,12 @@ public static TranscriptionData create(TranscriptionDataConverter internalRespon
// application accesses AudioData which triggers the accessor to be configured. So, if the accessor
// is null this effectively pokes the class to set up the accessor.
if (accessor == null) {
- new TranscriptionData();
+ try {
+ Class.forName(TranscriptionData.class.getName(), true,
+ TranscriptionDataContructorProxyAccessor.class.getClassLoader());
+ } catch (ClassNotFoundException e) {
+ throw LOGGER.logExceptionAsError(new RuntimeException(e));
+ }
}
assert accessor != null;
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/TranscriptionMetadataContructorProxy.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/TranscriptionMetadataContructorProxy.java
index 94bd5e35ad78..4441b00bf9b7 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/TranscriptionMetadataContructorProxy.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/TranscriptionMetadataContructorProxy.java
@@ -5,11 +5,13 @@
import com.azure.communication.callautomation.implementation.converters.TranscriptionMetadataConverter;
import com.azure.communication.callautomation.models.TranscriptionMetadata;
+import com.azure.core.util.logging.ClientLogger;
/**
* Helper class to access private values of {@link TranscriptionMetadata} across package boundaries.
*/
public final class TranscriptionMetadataContructorProxy {
+ private static final ClientLogger LOGGER = new ClientLogger(TranscriptionMetadataContructorProxy.class);
private static TranscriptionMetadataContructorProxyAccessor accessor;
private TranscriptionMetadataContructorProxy() {
@@ -51,7 +53,12 @@ public static TranscriptionMetadata create(TranscriptionMetadataConverter intern
// application accesses TranscriptionMetadata which triggers the accessor to be configured. So, if the accessor
// is null this effectively pokes the class to set up the accessor.
if (accessor == null) {
- new TranscriptionMetadata();
+ try {
+ Class.forName(TranscriptionMetadata.class.getName(), true,
+ TranscriptionMetadataContructorProxyAccessor.class.getClassLoader());
+ } catch (ClassNotFoundException e) {
+ throw LOGGER.logExceptionAsError(new RuntimeException(e));
+ }
}
assert accessor != null;
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/TranscriptionSubscriptionConstructorProxy.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/TranscriptionSubscriptionConstructorProxy.java
index fe72968a6ad6..0222094755af 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/TranscriptionSubscriptionConstructorProxy.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/TranscriptionSubscriptionConstructorProxy.java
@@ -5,11 +5,13 @@
import com.azure.communication.callautomation.implementation.models.TranscriptionSubscriptionInternal;
import com.azure.communication.callautomation.models.TranscriptionSubscription;
+import com.azure.core.util.logging.ClientLogger;
/**
* Helper class to access private values of {@link TranscriptionSubscriptionInternal} across package boundaries.
*/
public final class TranscriptionSubscriptionConstructorProxy {
+ private static final ClientLogger LOGGER = new ClientLogger(TranscriptionSubscriptionConstructorProxy.class);
private static TranscriptionSubscriptionConstructorAccessor accessor;
private TranscriptionSubscriptionConstructorProxy() {
@@ -51,7 +53,12 @@ public static TranscriptionSubscription create(TranscriptionSubscriptionInternal
// application accesses TranscriptionSubscription which triggers the accessor to be configured. So, if the accessor
// is null this effectively pokes the class to set up the accessor.
if (accessor == null) {
- new TranscriptionSubscription();
+ try {
+ Class.forName(TranscriptionSubscription.class.getName(), true,
+ TranscriptionSubscriptionConstructorAccessor.class.getClassLoader());
+ } catch (ClassNotFoundException e) {
+ throw LOGGER.logExceptionAsError(new RuntimeException(e));
+ }
}
assert accessor != null;
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/UnmuteParticipantsResponseConstructorProxy.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/UnmuteParticipantsResponseConstructorProxy.java
deleted file mode 100644
index 189449be0e0b..000000000000
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/UnmuteParticipantsResponseConstructorProxy.java
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.communication.callautomation.implementation.accesshelpers;
-
-import com.azure.communication.callautomation.implementation.models.UnmuteParticipantsResponseInternal;
-import com.azure.communication.callautomation.models.UnmuteParticipantResult;
-
-/**
- * Helper class to access private values of {@link UnmuteParticipantResult} across package boundaries.
- */
-public final class UnmuteParticipantsResponseConstructorProxy {
- private static UnmuteParticipantsResponseConstructorAccessor accessor;
-
- private UnmuteParticipantsResponseConstructorProxy() {
- }
-
- /**
- * Type defining the methods to set the non-public properties of a {@link UnmuteParticipantsResponseConstructorAccessor}
- * instance.
- */
- public interface UnmuteParticipantsResponseConstructorAccessor {
- /**
- * Creates a new instance of {@link UnmuteParticipantResult} backed by an internal instance of
- * {@link UnmuteParticipantsResponseInternal}.
- *
- * @param internalResponse The internal response.
- * @return A new instance of {@link UnmuteParticipantResult}.
- */
- UnmuteParticipantResult create(UnmuteParticipantsResponseInternal internalResponse);
- }
-
- /**
- * The method called from {@link UnmuteParticipantResult} to set it's accessor.
- *
- * @param accessor The accessor.
- */
- public static void setAccessor(final UnmuteParticipantsResponseConstructorAccessor accessor) {
- UnmuteParticipantsResponseConstructorProxy.accessor = accessor;
- }
-
- /**
- * Creates a new instance of {@link UnmuteParticipantResult} backed by an internal instance of
- * {@link UnmuteParticipantsResponseInternal}.
- *
- * @param internalResponse The internal response.
- * @return A new instance of {@link UnmuteParticipantResult}.
- */
- public static UnmuteParticipantResult create(UnmuteParticipantsResponseInternal internalResponse) {
- // This looks odd but is necessary, it is possible to engage the access helper before anywhere else in the
- // application accesses BlobDownloadHeaders which triggers the accessor to be configured. So, if the accessor
- // is null this effectively pokes the class to set up the accessor.
- if (accessor == null) {
- new UnmuteParticipantResult();
- }
-
- assert accessor != null;
- return accessor.create(internalResponse);
- }
-}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/converters/AudioMetadataConverter.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/converters/AudioMetadataConverter.java
index d2660fa47a60..bf8a773ce4a8 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/converters/AudioMetadataConverter.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/converters/AudioMetadataConverter.java
@@ -3,11 +3,11 @@
package com.azure.communication.callautomation.implementation.converters;
+import java.io.IOException;
+
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
-import java.io.IOException;
-
/** The Audio
* MetadataInternal model. */
public final class AudioMetadataConverter {
@@ -32,11 +32,6 @@ public final class AudioMetadataConverter {
*/
private int channels;
- /*
- * The length.
- */
- private int length;
-
/**
* Get the mediaSubscriptionId property.
*
@@ -73,15 +68,6 @@ public int getChannels() {
return channels;
}
- /**
- * Get the length property.
- *
- * @return the length value.
- */
- public int getLength() {
- return length;
- }
-
/**
* Reads an instance of AudioMetadataConverter from the JsonReader.
*
@@ -107,8 +93,6 @@ public static AudioMetadataConverter fromJson(JsonReader jsonReader) throws IOEx
converter.sampleRate = reader.getInt();
} else if ("channels".equals(fieldName)) {
converter.channels = reader.getInt();
- } else if ("length".equals(fieldName)) {
- converter.length = reader.getInt();
} else {
reader.skipChildren();
}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/converters/DtmfDataConverter.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/converters/DtmfDataConverter.java
new file mode 100644
index 000000000000..f6e219c41bac
--- /dev/null
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/converters/DtmfDataConverter.java
@@ -0,0 +1,87 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+package com.azure.communication.callautomation.implementation.converters;
+
+import java.io.IOException;
+
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+
+/** The DtmfDataInternal model. */
+public final class DtmfDataConverter {
+
+ /*
+ * The dtmf data.
+ */
+ private String data;
+
+ /*
+ * The timestamp of when the media was sourced.
+ */
+ private String timestamp;
+
+ /*
+ * The participantId.
+ */
+ private String participantRawID;
+
+ /**
+ * Get the data property.
+ *
+ * @return the data value.
+ */
+ public String getData() {
+ return data;
+ }
+
+ /**
+ * Get the timestamp property.
+ *
+ * @return the timestamp value.
+ */
+ public String getTimestamp() {
+ return timestamp;
+ }
+
+ /**
+ * Get the participantRawID property.
+ *
+ * @return the participantRawID value.
+ */
+ public String getParticipantRawID() {
+ return participantRawID;
+ }
+
+ /**
+ * Reads an instance of DtmfMetadataConverter from the JsonReader.
+ *
+ * Note: DtmfDataConverter does not have to implement JsonSerializable, model is only used in deserialization
+ * context internally by {@link StreamingDataParser} and not serialized.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of FileSource if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the FileSource.
+ */
+ public static DtmfDataConverter fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ final DtmfDataConverter converter = new DtmfDataConverter();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("data".equals(fieldName)) {
+ converter.data = reader.getString();
+ } else if ("timestamp".equals(fieldName)) {
+ converter.timestamp = reader.getString();
+ } else if ("participantRawID".equals(fieldName)) {
+ converter.participantRawID = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+ return converter;
+ });
+ }
+}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/converters/TranscriptionMetadataConverter.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/converters/TranscriptionMetadataConverter.java
index c72cd3778ab0..0ebf2f139577 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/converters/TranscriptionMetadataConverter.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/converters/TranscriptionMetadataConverter.java
@@ -33,6 +33,11 @@ public final class TranscriptionMetadataConverter {
*/
private String correlationId;
+ /*
+ * The custom speech recognition model endpoint id
+ */
+ private String speechRecognitionModelEndpointId;
+
/**
* Get the transcriptionSubscriptionId property.
*
@@ -69,6 +74,15 @@ public String getCorrelationId() {
return correlationId;
}
+ /**
+ * Get the speechRecognitionModelEndpointId property.
+ *
+ * @return the speechRecognitionModelEndpointId value.
+ */
+ public String getSpeechRecognitionModelEndpointId() {
+ return speechRecognitionModelEndpointId;
+ }
+
/**
* Reads an instance of TranscriptionMetadataConverter from the JsonReader.
*
@@ -94,6 +108,8 @@ public static TranscriptionMetadataConverter fromJson(JsonReader jsonReader) thr
converter.callConnectionId = reader.getString();
} else if ("correlationId".equals(fieldName)) {
converter.correlationId = reader.getString();
+ } else if ("speechRecognitionModelEndpointId".equals(fieldName)) {
+ converter.speechRecognitionModelEndpointId = reader.getString();
} else {
reader.skipChildren();
}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AnswerCallRequestInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AnswerCallRequestInternal.java
index 39ee16313efc..8cf0efeaabe3 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AnswerCallRequestInternal.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AnswerCallRequestInternal.java
@@ -29,12 +29,6 @@ public final class AnswerCallRequestInternal implements JsonSerializable {
/**
- * Pcm16KMono.
+ * Static value pcm16KMono for AudioFormatInternal.
*/
@Generated
- public static final AudioFormatInternal PCM_16K_MONO = fromString("Pcm16KMono");
+ public static final AudioFormatInternal PCM_16K_MONO = fromString("pcm16KMono");
/**
- * Pcm24KMono.
+ * Static value pcm24KMono for AudioFormatInternal.
*/
@Generated
- public static final AudioFormatInternal PCM_24K_MONO = fromString("Pcm24KMono");
+ public static final AudioFormatInternal PCM_24K_MONO = fromString("pcm24KMono");
/**
* Creates a new instance of AudioFormatInternal value.
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AzureOpenAIDialog.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AzureOpenAIDialog.java
index 18bc9041ad45..f61fef8ebff3 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AzureOpenAIDialog.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AzureOpenAIDialog.java
@@ -5,7 +5,6 @@
package com.azure.communication.callautomation.implementation.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -20,13 +19,11 @@ public final class AzureOpenAIDialog extends BaseDialog {
/*
* Determines the type of the dialog.
*/
- @Generated
private DialogInputType kind = DialogInputType.AZURE_OPEN_AI;
/**
* Creates an instance of AzureOpenAIDialog class.
*/
- @Generated
public AzureOpenAIDialog() {
}
@@ -35,7 +32,6 @@ public AzureOpenAIDialog() {
*
* @return the kind value.
*/
- @Generated
@Override
public DialogInputType getKind() {
return this.kind;
@@ -44,7 +40,6 @@ public DialogInputType getKind() {
/**
* {@inheritDoc}
*/
- @Generated
@Override
public AzureOpenAIDialog setContext(Map context) {
super.setContext(context);
@@ -54,7 +49,6 @@ public AzureOpenAIDialog setContext(Map context) {
/**
* {@inheritDoc}
*/
- @Generated
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
@@ -72,7 +66,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
* @throws IllegalStateException If the deserialized JSON object was missing any required properties.
* @throws IOException If an error occurs while reading the AzureOpenAIDialog.
*/
- @Generated
public static AzureOpenAIDialog fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
AzureOpenAIDialog deserializedAzureOpenAIDialog = new AzureOpenAIDialog();
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AzureOpenAIDialogUpdate.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AzureOpenAIDialogUpdate.java
index 54939e01e17c..e5226a889487 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AzureOpenAIDialogUpdate.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AzureOpenAIDialogUpdate.java
@@ -5,7 +5,6 @@
package com.azure.communication.callautomation.implementation.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -20,13 +19,11 @@ public final class AzureOpenAIDialogUpdate extends DialogUpdateBase {
/*
* Determines the type of the dialog.
*/
- @Generated
private DialogInputType kind = DialogInputType.AZURE_OPEN_AI;
/**
* Creates an instance of AzureOpenAIDialogUpdate class.
*/
- @Generated
public AzureOpenAIDialogUpdate() {
}
@@ -35,7 +32,6 @@ public AzureOpenAIDialogUpdate() {
*
* @return the kind value.
*/
- @Generated
@Override
public DialogInputType getKind() {
return this.kind;
@@ -44,7 +40,6 @@ public DialogInputType getKind() {
/**
* {@inheritDoc}
*/
- @Generated
@Override
public AzureOpenAIDialogUpdate setContext(Map context) {
super.setContext(context);
@@ -54,7 +49,6 @@ public AzureOpenAIDialogUpdate setContext(Map context) {
/**
* {@inheritDoc}
*/
- @Generated
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
@@ -71,7 +65,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
* was pointing to JSON null.
* @throws IOException If an error occurs while reading the AzureOpenAIDialogUpdate.
*/
- @Generated
public static AzureOpenAIDialogUpdate fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
AzureOpenAIDialogUpdate deserializedAzureOpenAIDialogUpdate = new AzureOpenAIDialogUpdate();
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/BaseDialog.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/BaseDialog.java
index f46d0c260805..aa1de0abff83 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/BaseDialog.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/BaseDialog.java
@@ -5,7 +5,6 @@
package com.azure.communication.callautomation.implementation.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -21,20 +20,18 @@ public class BaseDialog implements JsonSerializable {
/*
* Determines the type of the dialog.
*/
- @Generated
- private DialogInputType kind = DialogInputType.fromString("BaseDialog");
+ private DialogInputType kind;
/*
* Dialog context.
*/
- @Generated
private Map context;
/**
* Creates an instance of BaseDialog class.
*/
- @Generated
public BaseDialog() {
+ this.kind = DialogInputType.fromString("BaseDialog");
}
/**
@@ -42,7 +39,6 @@ public BaseDialog() {
*
* @return the kind value.
*/
- @Generated
public DialogInputType getKind() {
return this.kind;
}
@@ -52,7 +48,6 @@ public DialogInputType getKind() {
*
* @return the context value.
*/
- @Generated
public Map getContext() {
return this.context;
}
@@ -63,7 +58,6 @@ public Map getContext() {
* @param context the context value to set.
* @return the BaseDialog object itself.
*/
- @Generated
public BaseDialog setContext(Map context) {
this.context = context;
return this;
@@ -72,7 +66,6 @@ public BaseDialog setContext(Map context) {
/**
* {@inheritDoc}
*/
- @Generated
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
@@ -90,7 +83,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
* @throws IllegalStateException If the deserialized JSON object was missing any required properties.
* @throws IOException If an error occurs while reading the BaseDialog.
*/
- @Generated
public static BaseDialog fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
String discriminatorValue = null;
@@ -118,7 +110,6 @@ public static BaseDialog fromJson(JsonReader jsonReader) throws IOException {
});
}
- @Generated
static BaseDialog fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
BaseDialog deserializedBaseDialog = new BaseDialog();
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallConnectionPropertiesInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallConnectionPropertiesInternal.java
index 0b8730aa9b11..da4ef6d9dde3 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallConnectionPropertiesInternal.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallConnectionPropertiesInternal.java
@@ -79,18 +79,6 @@ public final class CallConnectionPropertiesInternal implements JsonSerializable<
@Generated
private CommunicationUserIdentifierModel answeredBy;
- /*
- * SubscriptionId for media streaming
- */
- @Generated
- private String mediaSubscriptionId;
-
- /*
- * SubscriptionId for transcription
- */
- @Generated
- private String dataSubscriptionId;
-
/*
* The state of media streaming subscription for the call
*/
@@ -344,50 +332,6 @@ public CallConnectionPropertiesInternal setAnsweredBy(CommunicationUserIdentifie
return this;
}
- /**
- * Get the mediaSubscriptionId property: SubscriptionId for media streaming.
- *
- * @return the mediaSubscriptionId value.
- */
- @Generated
- public String getMediaSubscriptionId() {
- return this.mediaSubscriptionId;
- }
-
- /**
- * Set the mediaSubscriptionId property: SubscriptionId for media streaming.
- *
- * @param mediaSubscriptionId the mediaSubscriptionId value to set.
- * @return the CallConnectionPropertiesInternal object itself.
- */
- @Generated
- public CallConnectionPropertiesInternal setMediaSubscriptionId(String mediaSubscriptionId) {
- this.mediaSubscriptionId = mediaSubscriptionId;
- return this;
- }
-
- /**
- * Get the dataSubscriptionId property: SubscriptionId for transcription.
- *
- * @return the dataSubscriptionId value.
- */
- @Generated
- public String getDataSubscriptionId() {
- return this.dataSubscriptionId;
- }
-
- /**
- * Set the dataSubscriptionId property: SubscriptionId for transcription.
- *
- * @param dataSubscriptionId the dataSubscriptionId value to set.
- * @return the CallConnectionPropertiesInternal object itself.
- */
- @Generated
- public CallConnectionPropertiesInternal setDataSubscriptionId(String dataSubscriptionId) {
- this.dataSubscriptionId = dataSubscriptionId;
- return this;
- }
-
/**
* Get the mediaStreamingSubscription property: The state of media streaming subscription for the call.
*
@@ -476,8 +420,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeJsonField("source", this.source);
jsonWriter.writeStringField("correlationId", this.correlationId);
jsonWriter.writeJsonField("answeredBy", this.answeredBy);
- jsonWriter.writeStringField("mediaSubscriptionId", this.mediaSubscriptionId);
- jsonWriter.writeStringField("dataSubscriptionId", this.dataSubscriptionId);
jsonWriter.writeJsonField("mediaStreamingSubscription", this.mediaStreamingSubscription);
jsonWriter.writeJsonField("transcriptionSubscription", this.transcriptionSubscription);
jsonWriter.writeJsonField("answeredFor", this.answeredFor);
@@ -526,10 +468,6 @@ public static CallConnectionPropertiesInternal fromJson(JsonReader jsonReader) t
} else if ("answeredBy".equals(fieldName)) {
deserializedCallConnectionPropertiesInternal.answeredBy
= CommunicationUserIdentifierModel.fromJson(reader);
- } else if ("mediaSubscriptionId".equals(fieldName)) {
- deserializedCallConnectionPropertiesInternal.mediaSubscriptionId = reader.getString();
- } else if ("dataSubscriptionId".equals(fieldName)) {
- deserializedCallConnectionPropertiesInternal.dataSubscriptionId = reader.getString();
} else if ("mediaStreamingSubscription".equals(fieldName)) {
deserializedCallConnectionPropertiesInternal.mediaStreamingSubscription
= MediaStreamingSubscriptionInternal.fromJson(reader);
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallIntelligenceOptionsInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallIntelligenceOptionsInternal.java
index 576e4ca84ea2..9523ccda6160 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallIntelligenceOptionsInternal.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallIntelligenceOptionsInternal.java
@@ -23,12 +23,6 @@ public final class CallIntelligenceOptionsInternal implements JsonSerializable values() {
return values(CallSessionEndReason.class);
}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/ChoiceResultInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/ChoiceResultInternal.java
index 07bb942e4c4a..cdc428acfc74 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/ChoiceResultInternal.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/ChoiceResultInternal.java
@@ -31,6 +31,12 @@ public final class ChoiceResultInternal implements JsonSerializable {
/**
* Static value chunkIsBeingRecorded for ChunkEndReason.
*/
- @Generated
public static final ChunkEndReason CHUNK_IS_BEING_RECORDED = fromString("chunkIsBeingRecorded");
/**
* Static value sessionEnded for ChunkEndReason.
*/
- @Generated
public static final ChunkEndReason SESSION_ENDED = fromString("sessionEnded");
/**
* Static value chunkMaximumSizeExceeded for ChunkEndReason.
*/
- @Generated
public static final ChunkEndReason CHUNK_MAXIMUM_SIZE_EXCEEDED = fromString("chunkMaximumSizeExceeded");
/**
* Static value chunkMaximumTimeExceeded for ChunkEndReason.
*/
- @Generated
public static final ChunkEndReason CHUNK_MAXIMUM_TIME_EXCEEDED = fromString("chunkMaximumTimeExceeded");
/**
* Static value chunkUploadFailure for ChunkEndReason.
*/
- @Generated
public static final ChunkEndReason CHUNK_UPLOAD_FAILURE = fromString("chunkUploadFailure");
/**
@@ -47,7 +41,6 @@ public final class ChunkEndReason extends ExpandableStringEnum {
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
- @Generated
@Deprecated
public ChunkEndReason() {
}
@@ -58,7 +51,6 @@ public ChunkEndReason() {
* @param name a name to look for.
* @return the corresponding ChunkEndReason.
*/
- @Generated
public static ChunkEndReason fromString(String name) {
return fromString(name, ChunkEndReason.class);
}
@@ -68,7 +60,6 @@ public static ChunkEndReason fromString(String name) {
*
* @return known ChunkEndReason values.
*/
- @Generated
public static Collection values() {
return values(ChunkEndReason.class);
}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationIdentifierModel.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationIdentifierModel.java
index f974e0adc7be..ade71b4685a3 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationIdentifierModel.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationIdentifierModel.java
@@ -55,12 +55,6 @@ public final class CommunicationIdentifierModel implements JsonSerializable sipHeaders;
- /*
- * Custom calling context TeamsPhoneCallDetails
- */
- @Generated
- private TeamsPhoneCallDetails teamsPhoneCallDetails;
-
/**
* Creates an instance of CustomCallingContext class.
*/
@@ -87,28 +81,6 @@ public CustomCallingContext setSipHeaders(Map sipHeaders) {
return this;
}
- /**
- * Get the teamsPhoneCallDetails property: Custom calling context TeamsPhoneCallDetails.
- *
- * @return the teamsPhoneCallDetails value.
- */
- @Generated
- public TeamsPhoneCallDetails getTeamsPhoneCallDetails() {
- return this.teamsPhoneCallDetails;
- }
-
- /**
- * Set the teamsPhoneCallDetails property: Custom calling context TeamsPhoneCallDetails.
- *
- * @param teamsPhoneCallDetails the teamsPhoneCallDetails value to set.
- * @return the CustomCallingContext object itself.
- */
- @Generated
- public CustomCallingContext setTeamsPhoneCallDetails(TeamsPhoneCallDetails teamsPhoneCallDetails) {
- this.teamsPhoneCallDetails = teamsPhoneCallDetails;
- return this;
- }
-
/**
* {@inheritDoc}
*/
@@ -118,7 +90,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeMapField("voipHeaders", this.voipHeaders, (writer, element) -> writer.writeString(element));
jsonWriter.writeMapField("sipHeaders", this.sipHeaders, (writer, element) -> writer.writeString(element));
- jsonWriter.writeJsonField("teamsPhoneCallDetails", this.teamsPhoneCallDetails);
return jsonWriter.writeEndObject();
}
@@ -144,8 +115,6 @@ public static CustomCallingContext fromJson(JsonReader jsonReader) throws IOExce
} else if ("sipHeaders".equals(fieldName)) {
Map sipHeaders = reader.readMap(reader1 -> reader1.getString());
deserializedCustomCallingContext.sipHeaders = sipHeaders;
- } else if ("teamsPhoneCallDetails".equals(fieldName)) {
- deserializedCustomCallingContext.teamsPhoneCallDetails = TeamsPhoneCallDetails.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DialogInputType.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DialogInputType.java
index 2a1cb498e266..66abdbdb445c 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DialogInputType.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DialogInputType.java
@@ -4,7 +4,6 @@
package com.azure.communication.callautomation.implementation.models;
-import com.azure.core.annotation.Generated;
import com.azure.core.util.ExpandableStringEnum;
import java.util.Collection;
@@ -15,13 +14,11 @@ public final class DialogInputType extends ExpandableStringEnum
/**
* Static value powerVirtualAgents for DialogInputType.
*/
- @Generated
public static final DialogInputType POWER_VIRTUAL_AGENTS = fromString("powerVirtualAgents");
/**
* Static value azureOpenAI for DialogInputType.
*/
- @Generated
public static final DialogInputType AZURE_OPEN_AI = fromString("azureOpenAI");
/**
@@ -29,7 +26,6 @@ public final class DialogInputType extends ExpandableStringEnum
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
- @Generated
@Deprecated
public DialogInputType() {
}
@@ -40,7 +36,6 @@ public DialogInputType() {
* @param name a name to look for.
* @return the corresponding DialogInputType.
*/
- @Generated
public static DialogInputType fromString(String name) {
return fromString(name, DialogInputType.class);
}
@@ -50,7 +45,6 @@ public static DialogInputType fromString(String name) {
*
* @return known DialogInputType values.
*/
- @Generated
public static Collection values() {
return values(DialogInputType.class);
}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DialogStateResponse.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DialogStateResponse.java
index 4800283830af..1cd671cb6c9f 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DialogStateResponse.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DialogStateResponse.java
@@ -5,7 +5,6 @@
package com.azure.communication.callautomation.implementation.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -20,25 +19,21 @@ public final class DialogStateResponse implements JsonSerializable {
DialogStateResponse deserializedDialogStateResponse = new DialogStateResponse();
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DialogUpdateBase.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DialogUpdateBase.java
index 3c49df48abd7..8fc8d21c6161 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DialogUpdateBase.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DialogUpdateBase.java
@@ -5,7 +5,6 @@
package com.azure.communication.callautomation.implementation.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -21,20 +20,18 @@ public class DialogUpdateBase implements JsonSerializable {
/*
* Determines the type of the dialog.
*/
- @Generated
- private DialogInputType kind = DialogInputType.fromString("DialogUpdateBase");
+ private DialogInputType kind;
/*
* Dialog context.
*/
- @Generated
private Map context;
/**
* Creates an instance of DialogUpdateBase class.
*/
- @Generated
public DialogUpdateBase() {
+ this.kind = DialogInputType.fromString("DialogUpdateBase");
}
/**
@@ -42,7 +39,6 @@ public DialogUpdateBase() {
*
* @return the kind value.
*/
- @Generated
public DialogInputType getKind() {
return this.kind;
}
@@ -52,7 +48,6 @@ public DialogInputType getKind() {
*
* @return the context value.
*/
- @Generated
public Map getContext() {
return this.context;
}
@@ -63,7 +58,6 @@ public Map getContext() {
* @param context the context value to set.
* @return the DialogUpdateBase object itself.
*/
- @Generated
public DialogUpdateBase setContext(Map context) {
this.context = context;
return this;
@@ -72,7 +66,6 @@ public DialogUpdateBase setContext(Map context) {
/**
* {@inheritDoc}
*/
- @Generated
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
@@ -89,7 +82,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
* pointing to JSON null.
* @throws IOException If an error occurs while reading the DialogUpdateBase.
*/
- @Generated
public static DialogUpdateBase fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
String discriminatorValue = null;
@@ -115,7 +107,6 @@ public static DialogUpdateBase fromJson(JsonReader jsonReader) throws IOExceptio
});
}
- @Generated
static DialogUpdateBase fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
DialogUpdateBase deserializedDialogUpdateBase = new DialogUpdateBase();
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DialogUpdated.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DialogUpdated.java
index fb60a92a10bc..37fc002244d3 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DialogUpdated.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DialogUpdated.java
@@ -5,7 +5,6 @@
package com.azure.communication.callautomation.implementation.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -20,55 +19,46 @@ public final class DialogUpdated implements JsonSerializable {
/*
* Determines the type of the dialog.
*/
- @Generated
private DialogInputType dialogInputType;
/*
* Dialog ID
*/
- @Generated
private String dialogId;
/*
* IVR context
*/
- @Generated
private Object ivrContext;
/*
* Call connection ID.
*/
- @Generated
private String callConnectionId;
/*
* Server call ID.
*/
- @Generated
private String serverCallId;
/*
* Correlation ID for event to call correlation. Also called ChainId for skype chain ID.
*/
- @Generated
private String correlationId;
/*
* Used by customers when calling mid-call actions to correlate the request to the response event.
*/
- @Generated
private String operationContext;
/*
* Contains the resulting SIP code, sub-code and message.
*/
- @Generated
private ResultInformation resultInformation;
/**
* Creates an instance of DialogUpdated class.
*/
- @Generated
public DialogUpdated() {
}
@@ -77,7 +67,6 @@ public DialogUpdated() {
*
* @return the dialogInputType value.
*/
- @Generated
public DialogInputType getDialogInputType() {
return this.dialogInputType;
}
@@ -88,7 +77,6 @@ public DialogInputType getDialogInputType() {
* @param dialogInputType the dialogInputType value to set.
* @return the DialogUpdated object itself.
*/
- @Generated
public DialogUpdated setDialogInputType(DialogInputType dialogInputType) {
this.dialogInputType = dialogInputType;
return this;
@@ -99,7 +87,6 @@ public DialogUpdated setDialogInputType(DialogInputType dialogInputType) {
*
* @return the dialogId value.
*/
- @Generated
public String getDialogId() {
return this.dialogId;
}
@@ -109,7 +96,6 @@ public String getDialogId() {
*
* @return the ivrContext value.
*/
- @Generated
public Object getIvrContext() {
return this.ivrContext;
}
@@ -119,7 +105,6 @@ public Object getIvrContext() {
*
* @return the callConnectionId value.
*/
- @Generated
public String getCallConnectionId() {
return this.callConnectionId;
}
@@ -130,7 +115,6 @@ public String getCallConnectionId() {
* @param callConnectionId the callConnectionId value to set.
* @return the DialogUpdated object itself.
*/
- @Generated
public DialogUpdated setCallConnectionId(String callConnectionId) {
this.callConnectionId = callConnectionId;
return this;
@@ -141,7 +125,6 @@ public DialogUpdated setCallConnectionId(String callConnectionId) {
*
* @return the serverCallId value.
*/
- @Generated
public String getServerCallId() {
return this.serverCallId;
}
@@ -152,7 +135,6 @@ public String getServerCallId() {
* @param serverCallId the serverCallId value to set.
* @return the DialogUpdated object itself.
*/
- @Generated
public DialogUpdated setServerCallId(String serverCallId) {
this.serverCallId = serverCallId;
return this;
@@ -164,7 +146,6 @@ public DialogUpdated setServerCallId(String serverCallId) {
*
* @return the correlationId value.
*/
- @Generated
public String getCorrelationId() {
return this.correlationId;
}
@@ -176,7 +157,6 @@ public String getCorrelationId() {
* @param correlationId the correlationId value to set.
* @return the DialogUpdated object itself.
*/
- @Generated
public DialogUpdated setCorrelationId(String correlationId) {
this.correlationId = correlationId;
return this;
@@ -188,7 +168,6 @@ public DialogUpdated setCorrelationId(String correlationId) {
*
* @return the operationContext value.
*/
- @Generated
public String getOperationContext() {
return this.operationContext;
}
@@ -200,7 +179,6 @@ public String getOperationContext() {
* @param operationContext the operationContext value to set.
* @return the DialogUpdated object itself.
*/
- @Generated
public DialogUpdated setOperationContext(String operationContext) {
this.operationContext = operationContext;
return this;
@@ -211,7 +189,6 @@ public DialogUpdated setOperationContext(String operationContext) {
*
* @return the resultInformation value.
*/
- @Generated
public ResultInformation getResultInformation() {
return this.resultInformation;
}
@@ -222,7 +199,6 @@ public ResultInformation getResultInformation() {
* @param resultInformation the resultInformation value to set.
* @return the DialogUpdated object itself.
*/
- @Generated
public DialogUpdated setResultInformation(ResultInformation resultInformation) {
this.resultInformation = resultInformation;
return this;
@@ -231,7 +207,6 @@ public DialogUpdated setResultInformation(ResultInformation resultInformation) {
/**
* {@inheritDoc}
*/
- @Generated
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
@@ -253,7 +228,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
* pointing to JSON null.
* @throws IOException If an error occurs while reading the DialogUpdated.
*/
- @Generated
public static DialogUpdated fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
DialogUpdated deserializedDialogUpdated = new DialogUpdated();
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/Error.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/Error.java
index 8ff9d32375c8..7fd4d787da01 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/Error.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/Error.java
@@ -5,7 +5,6 @@
package com.azure.communication.callautomation.implementation.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -20,25 +19,21 @@ public final class Error implements JsonSerializable {
/*
* Error code
*/
- @Generated
private String code;
/*
* Error message
*/
- @Generated
private String message;
/*
* Inner error details
*/
- @Generated
private Error innerError;
/**
* Creates an instance of Error class.
*/
- @Generated
public Error() {
}
@@ -47,7 +42,6 @@ public Error() {
*
* @return the code value.
*/
- @Generated
public String getCode() {
return this.code;
}
@@ -58,7 +52,6 @@ public String getCode() {
* @param code the code value to set.
* @return the Error object itself.
*/
- @Generated
public Error setCode(String code) {
this.code = code;
return this;
@@ -69,7 +62,6 @@ public Error setCode(String code) {
*
* @return the message value.
*/
- @Generated
public String getMessage() {
return this.message;
}
@@ -80,7 +72,6 @@ public String getMessage() {
* @param message the message value to set.
* @return the Error object itself.
*/
- @Generated
public Error setMessage(String message) {
this.message = message;
return this;
@@ -91,7 +82,6 @@ public Error setMessage(String message) {
*
* @return the innerError value.
*/
- @Generated
public Error getInnerError() {
return this.innerError;
}
@@ -102,7 +92,6 @@ public Error getInnerError() {
* @param innerError the innerError value to set.
* @return the Error object itself.
*/
- @Generated
public Error setInnerError(Error innerError) {
this.innerError = innerError;
return this;
@@ -111,7 +100,6 @@ public Error setInnerError(Error innerError) {
/**
* {@inheritDoc}
*/
- @Generated
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
@@ -129,7 +117,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
* JSON null.
* @throws IOException If an error occurs while reading the Error.
*/
- @Generated
public static Error fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
Error deserializedError = new Error();
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/HoldAudioCompleted.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/HoldAudioCompleted.java
index acfadcc67e50..d4a3a740d3ae 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/HoldAudioCompleted.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/HoldAudioCompleted.java
@@ -5,7 +5,6 @@
package com.azure.communication.callautomation.implementation.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -20,37 +19,31 @@ public final class HoldAudioCompleted implements JsonSerializable {
HoldAudioCompleted deserializedHoldAudioCompleted = new HoldAudioCompleted();
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/InterruptAudioAndAnnounceRequest.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/InterruptAudioAndAnnounceRequest.java
index 6300f6637909..74e7e5c8dbe0 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/InterruptAudioAndAnnounceRequest.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/InterruptAudioAndAnnounceRequest.java
@@ -5,7 +5,6 @@
package com.azure.communication.callautomation.implementation.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -21,26 +20,22 @@ public final class InterruptAudioAndAnnounceRequest implements JsonSerializable<
/*
* The source of the audio to be played.
*/
- @Generated
private List playSources;
/*
* The list of call participants play provided audio to.
* Plays to everyone in the call when not provided.
*/
- @Generated
private CommunicationIdentifierModel playTo;
/*
* The value to identify context of the operation.
*/
- @Generated
private String operationContext;
/**
* Creates an instance of InterruptAudioAndAnnounceRequest class.
*/
- @Generated
public InterruptAudioAndAnnounceRequest() {
}
@@ -49,7 +44,6 @@ public InterruptAudioAndAnnounceRequest() {
*
* @return the playSources value.
*/
- @Generated
public List getPlaySources() {
return this.playSources;
}
@@ -60,7 +54,6 @@ public List getPlaySources() {
* @param playSources the playSources value to set.
* @return the InterruptAudioAndAnnounceRequest object itself.
*/
- @Generated
public InterruptAudioAndAnnounceRequest setPlaySources(List playSources) {
this.playSources = playSources;
return this;
@@ -72,7 +65,6 @@ public InterruptAudioAndAnnounceRequest setPlaySources(List
*
* @return the playTo value.
*/
- @Generated
public CommunicationIdentifierModel getPlayTo() {
return this.playTo;
}
@@ -84,7 +76,6 @@ public CommunicationIdentifierModel getPlayTo() {
* @param playTo the playTo value to set.
* @return the InterruptAudioAndAnnounceRequest object itself.
*/
- @Generated
public InterruptAudioAndAnnounceRequest setPlayTo(CommunicationIdentifierModel playTo) {
this.playTo = playTo;
return this;
@@ -95,7 +86,6 @@ public InterruptAudioAndAnnounceRequest setPlayTo(CommunicationIdentifierModel p
*
* @return the operationContext value.
*/
- @Generated
public String getOperationContext() {
return this.operationContext;
}
@@ -106,7 +96,6 @@ public String getOperationContext() {
* @param operationContext the operationContext value to set.
* @return the InterruptAudioAndAnnounceRequest object itself.
*/
- @Generated
public InterruptAudioAndAnnounceRequest setOperationContext(String operationContext) {
this.operationContext = operationContext;
return this;
@@ -115,7 +104,6 @@ public InterruptAudioAndAnnounceRequest setOperationContext(String operationCont
/**
* {@inheritDoc}
*/
- @Generated
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
@@ -134,7 +122,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
* @throws IllegalStateException If the deserialized JSON object was missing any required properties.
* @throws IOException If an error occurs while reading the InterruptAudioAndAnnounceRequest.
*/
- @Generated
public static InterruptAudioAndAnnounceRequest fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
InterruptAudioAndAnnounceRequest deserializedInterruptAudioAndAnnounceRequest
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingAudioChannelTypeInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingAudioChannelTypeInternal.java
index e02a8aa03b0a..9d6fdf3903eb 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingAudioChannelTypeInternal.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingAudioChannelTypeInternal.java
@@ -9,7 +9,7 @@
import java.util.Collection;
/**
- * Audio channel type to stream, eg. unmixed audio, mixed audio.
+ * The audio channel type to stream, e.g., unmixed audio, mixed audio.
*/
public final class MediaStreamingAudioChannelTypeInternal
extends ExpandableStringEnum {
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingContentTypeInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingContentTypeInternal.java
index 64d01b35e06c..372d93c41576 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingContentTypeInternal.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingContentTypeInternal.java
@@ -9,7 +9,7 @@
import java.util.Collection;
/**
- * Content type to stream, eg. audio.
+ * Defines values for MediaStreamingContentTypeInternal.
*/
public final class MediaStreamingContentTypeInternal extends ExpandableStringEnum {
/**
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingOptions.java
deleted file mode 100644
index 4b29342ffa96..000000000000
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingOptions.java
+++ /dev/null
@@ -1,262 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.communication.callautomation.implementation.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-
-/**
- * Configuration of Media streaming.
- */
-@Fluent
-public final class MediaStreamingOptions implements JsonSerializable {
- /*
- * Transport URL for media streaming
- */
- private String transportUrl;
-
- /*
- * The type of transport to be used for media streaming, eg. Websocket
- */
- private MediaStreamingTransportTypeInternal transportType;
-
- /*
- * Content type to stream, eg. audio
- */
- private MediaStreamingContentTypeInternal contentType;
-
- /*
- * Audio channel type to stream, eg. unmixed audio, mixed audio
- */
- private MediaStreamingAudioChannelTypeInternal audioChannelType;
-
- /*
- * Determines if the media streaming should be started immediately after call is answered or not.
- */
- private Boolean startMediaStreaming;
-
- /*
- * A value indicating whether bidirectional streaming is enabled.
- */
- private Boolean enableBidirectional;
-
- /*
- * Specifies the audio format used for encoding, including sample rate and channel type.
- */
- private AudioFormat audioFormat;
-
- /**
- * Creates an instance of MediaStreamingOptions class.
- */
- public MediaStreamingOptions() {
- }
-
- /**
- * Get the transportUrl property: Transport URL for media streaming.
- *
- * @return the transportUrl value.
- */
- public String getTransportUrl() {
- return this.transportUrl;
- }
-
- /**
- * Set the transportUrl property: Transport URL for media streaming.
- *
- * @param transportUrl the transportUrl value to set.
- * @return the MediaStreamingOptions object itself.
- */
- public MediaStreamingOptions setTransportUrl(String transportUrl) {
- this.transportUrl = transportUrl;
- return this;
- }
-
- /**
- * Get the transportType property: The type of transport to be used for media streaming, eg. Websocket.
- *
- * @return the transportType value.
- */
- public MediaStreamingTransportTypeInternal getTransportType() {
- return this.transportType;
- }
-
- /**
- * Set the transportType property: The type of transport to be used for media streaming, eg. Websocket.
- *
- * @param transportType the transportType value to set.
- * @return the MediaStreamingOptions object itself.
- */
- public MediaStreamingOptions setTransportType(MediaStreamingTransportTypeInternal transportType) {
- this.transportType = transportType;
- return this;
- }
-
- /**
- * Get the contentType property: Content type to stream, eg. audio.
- *
- * @return the contentType value.
- */
- public MediaStreamingContentTypeInternal getContentType() {
- return this.contentType;
- }
-
- /**
- * Set the contentType property: Content type to stream, eg. audio.
- *
- * @param contentType the contentType value to set.
- * @return the MediaStreamingOptions object itself.
- */
- public MediaStreamingOptions setContentType(MediaStreamingContentTypeInternal contentType) {
- this.contentType = contentType;
- return this;
- }
-
- /**
- * Get the audioChannelType property: Audio channel type to stream, eg. unmixed audio, mixed audio.
- *
- * @return the audioChannelType value.
- */
- public MediaStreamingAudioChannelTypeInternal getAudioChannelType() {
- return this.audioChannelType;
- }
-
- /**
- * Set the audioChannelType property: Audio channel type to stream, eg. unmixed audio, mixed audio.
- *
- * @param audioChannelType the audioChannelType value to set.
- * @return the MediaStreamingOptions object itself.
- */
- public MediaStreamingOptions setAudioChannelType(MediaStreamingAudioChannelTypeInternal audioChannelType) {
- this.audioChannelType = audioChannelType;
- return this;
- }
-
- /**
- * Get the startMediaStreaming property: Determines if the media streaming should be started immediately after call
- * is answered or not.
- *
- * @return the startMediaStreaming value.
- */
- public Boolean isStartMediaStreaming() {
- return this.startMediaStreaming;
- }
-
- /**
- * Set the startMediaStreaming property: Determines if the media streaming should be started immediately after call
- * is answered or not.
- *
- * @param startMediaStreaming the startMediaStreaming value to set.
- * @return the MediaStreamingOptions object itself.
- */
- public MediaStreamingOptions setStartMediaStreaming(Boolean startMediaStreaming) {
- this.startMediaStreaming = startMediaStreaming;
- return this;
- }
-
- /**
- * Get the enableBidirectional property: A value indicating whether bidirectional streaming is enabled.
- *
- * @return the enableBidirectional value.
- */
- public Boolean isEnableBidirectional() {
- return this.enableBidirectional;
- }
-
- /**
- * Set the enableBidirectional property: A value indicating whether bidirectional streaming is enabled.
- *
- * @param enableBidirectional the enableBidirectional value to set.
- * @return the MediaStreamingOptions object itself.
- */
- public MediaStreamingOptions setEnableBidirectional(Boolean enableBidirectional) {
- this.enableBidirectional = enableBidirectional;
- return this;
- }
-
- /**
- * Get the audioFormat property: Specifies the audio format used for encoding, including sample rate and channel
- * type.
- *
- * @return the audioFormat value.
- */
- public AudioFormat getAudioFormat() {
- return this.audioFormat;
- }
-
- /**
- * Set the audioFormat property: Specifies the audio format used for encoding, including sample rate and channel
- * type.
- *
- * @param audioFormat the audioFormat value to set.
- * @return the MediaStreamingOptions object itself.
- */
- public MediaStreamingOptions setAudioFormat(AudioFormat audioFormat) {
- this.audioFormat = audioFormat;
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("transportUrl", this.transportUrl);
- jsonWriter.writeStringField("transportType", this.transportType == null ? null : this.transportType.toString());
- jsonWriter.writeStringField("contentType", this.contentType == null ? null : this.contentType.toString());
- jsonWriter.writeStringField("audioChannelType",
- this.audioChannelType == null ? null : this.audioChannelType.toString());
- jsonWriter.writeBooleanField("startMediaStreaming", this.startMediaStreaming);
- jsonWriter.writeBooleanField("enableBidirectional", this.enableBidirectional);
- jsonWriter.writeStringField("audioFormat", this.audioFormat == null ? null : this.audioFormat.toString());
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of MediaStreamingOptions from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of MediaStreamingOptions if the JsonReader was pointing to an instance of it, or null if it
- * was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the MediaStreamingOptions.
- */
- public static MediaStreamingOptions fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- MediaStreamingOptions deserializedMediaStreamingOptions = new MediaStreamingOptions();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("transportUrl".equals(fieldName)) {
- deserializedMediaStreamingOptions.transportUrl = reader.getString();
- } else if ("transportType".equals(fieldName)) {
- deserializedMediaStreamingOptions.transportType
- = MediaStreamingTransportTypeInternal.fromString(reader.getString());
- } else if ("contentType".equals(fieldName)) {
- deserializedMediaStreamingOptions.contentType
- = MediaStreamingContentTypeInternal.fromString(reader.getString());
- } else if ("audioChannelType".equals(fieldName)) {
- deserializedMediaStreamingOptions.audioChannelType
- = MediaStreamingAudioChannelTypeInternal.fromString(reader.getString());
- } else if ("startMediaStreaming".equals(fieldName)) {
- deserializedMediaStreamingOptions.startMediaStreaming = reader.getNullable(JsonReader::getBoolean);
- } else if ("enableBidirectional".equals(fieldName)) {
- deserializedMediaStreamingOptions.enableBidirectional = reader.getNullable(JsonReader::getBoolean);
- } else if ("audioFormat".equals(fieldName)) {
- deserializedMediaStreamingOptions.audioFormat = AudioFormat.fromString(reader.getString());
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedMediaStreamingOptions;
- });
- }
-}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingOptionsInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingOptionsInternal.java
index 379c3d878178..1e1677fb935a 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingOptionsInternal.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingOptionsInternal.java
@@ -13,52 +13,24 @@
import java.io.IOException;
/**
- * Configuration of Media streaming.
+ * Options for media streaming.
*/
@Fluent
-public final class MediaStreamingOptionsInternal implements JsonSerializable {
+public class MediaStreamingOptionsInternal implements JsonSerializable {
/*
- * Transport URL for media streaming
+ * Defines the transport type used for streaming. Note that future values may be introduced that are not currently
+ * documented.
*/
@Generated
- private String transportUrl;
+ private StreamingTransportTypeInternal transportType
+ = StreamingTransportTypeInternal.fromString("MediaStreamingOptionsInternal");
/*
- * The type of transport to be used for media streaming, eg. Websocket
- */
- @Generated
- private MediaStreamingTransportTypeInternal transportType;
-
- /*
- * Content type to stream, eg. audio
- */
- @Generated
- private MediaStreamingContentTypeInternal contentType;
-
- /*
- * Audio channel type to stream, eg. unmixed audio, mixed audio
+ * The audio channel type to stream, e.g., unmixed audio, mixed audio.
*/
@Generated
private MediaStreamingAudioChannelTypeInternal audioChannelType;
- /*
- * Determines if the media streaming should be started immediately after call is answered or not.
- */
- @Generated
- private Boolean startMediaStreaming;
-
- /*
- * A value indicating whether bidirectional streaming is enabled.
- */
- @Generated
- private Boolean enableBidirectional;
-
- /*
- * Specifies the audio format used for encoding, including sample rate and channel type.
- */
- @Generated
- private AudioFormatInternal audioFormat;
-
/**
* Creates an instance of MediaStreamingOptionsInternal class.
*/
@@ -67,73 +39,18 @@ public MediaStreamingOptionsInternal() {
}
/**
- * Get the transportUrl property: Transport URL for media streaming.
- *
- * @return the transportUrl value.
- */
- @Generated
- public String getTransportUrl() {
- return this.transportUrl;
- }
-
- /**
- * Set the transportUrl property: Transport URL for media streaming.
- *
- * @param transportUrl the transportUrl value to set.
- * @return the MediaStreamingOptionsInternal object itself.
- */
- @Generated
- public MediaStreamingOptionsInternal setTransportUrl(String transportUrl) {
- this.transportUrl = transportUrl;
- return this;
- }
-
- /**
- * Get the transportType property: The type of transport to be used for media streaming, eg. Websocket.
+ * Get the transportType property: Defines the transport type used for streaming. Note that future values may be
+ * introduced that are not currently documented.
*
* @return the transportType value.
*/
@Generated
- public MediaStreamingTransportTypeInternal getTransportType() {
+ public StreamingTransportTypeInternal getTransportType() {
return this.transportType;
}
/**
- * Set the transportType property: The type of transport to be used for media streaming, eg. Websocket.
- *
- * @param transportType the transportType value to set.
- * @return the MediaStreamingOptionsInternal object itself.
- */
- @Generated
- public MediaStreamingOptionsInternal setTransportType(MediaStreamingTransportTypeInternal transportType) {
- this.transportType = transportType;
- return this;
- }
-
- /**
- * Get the contentType property: Content type to stream, eg. audio.
- *
- * @return the contentType value.
- */
- @Generated
- public MediaStreamingContentTypeInternal getContentType() {
- return this.contentType;
- }
-
- /**
- * Set the contentType property: Content type to stream, eg. audio.
- *
- * @param contentType the contentType value to set.
- * @return the MediaStreamingOptionsInternal object itself.
- */
- @Generated
- public MediaStreamingOptionsInternal setContentType(MediaStreamingContentTypeInternal contentType) {
- this.contentType = contentType;
- return this;
- }
-
- /**
- * Get the audioChannelType property: Audio channel type to stream, eg. unmixed audio, mixed audio.
+ * Get the audioChannelType property: The audio channel type to stream, e.g., unmixed audio, mixed audio.
*
* @return the audioChannelType value.
*/
@@ -143,7 +60,7 @@ public MediaStreamingAudioChannelTypeInternal getAudioChannelType() {
}
/**
- * Set the audioChannelType property: Audio channel type to stream, eg. unmixed audio, mixed audio.
+ * Set the audioChannelType property: The audio channel type to stream, e.g., unmixed audio, mixed audio.
*
* @param audioChannelType the audioChannelType value to set.
* @return the MediaStreamingOptionsInternal object itself.
@@ -154,76 +71,6 @@ public MediaStreamingOptionsInternal setAudioChannelType(MediaStreamingAudioChan
return this;
}
- /**
- * Get the startMediaStreaming property: Determines if the media streaming should be started immediately after call
- * is answered or not.
- *
- * @return the startMediaStreaming value.
- */
- @Generated
- public Boolean isStartMediaStreaming() {
- return this.startMediaStreaming;
- }
-
- /**
- * Set the startMediaStreaming property: Determines if the media streaming should be started immediately after call
- * is answered or not.
- *
- * @param startMediaStreaming the startMediaStreaming value to set.
- * @return the MediaStreamingOptionsInternal object itself.
- */
- @Generated
- public MediaStreamingOptionsInternal setStartMediaStreaming(Boolean startMediaStreaming) {
- this.startMediaStreaming = startMediaStreaming;
- return this;
- }
-
- /**
- * Get the enableBidirectional property: A value indicating whether bidirectional streaming is enabled.
- *
- * @return the enableBidirectional value.
- */
- @Generated
- public Boolean isEnableBidirectional() {
- return this.enableBidirectional;
- }
-
- /**
- * Set the enableBidirectional property: A value indicating whether bidirectional streaming is enabled.
- *
- * @param enableBidirectional the enableBidirectional value to set.
- * @return the MediaStreamingOptionsInternal object itself.
- */
- @Generated
- public MediaStreamingOptionsInternal setEnableBidirectional(Boolean enableBidirectional) {
- this.enableBidirectional = enableBidirectional;
- return this;
- }
-
- /**
- * Get the audioFormat property: Specifies the audio format used for encoding, including sample rate and channel
- * type.
- *
- * @return the audioFormat value.
- */
- @Generated
- public AudioFormatInternal getAudioFormat() {
- return this.audioFormat;
- }
-
- /**
- * Set the audioFormat property: Specifies the audio format used for encoding, including sample rate and channel
- * type.
- *
- * @param audioFormat the audioFormat value to set.
- * @return the MediaStreamingOptionsInternal object itself.
- */
- @Generated
- public MediaStreamingOptionsInternal setAudioFormat(AudioFormatInternal audioFormat) {
- this.audioFormat = audioFormat;
- return this;
- }
-
/**
* {@inheritDoc}
*/
@@ -231,14 +78,9 @@ public MediaStreamingOptionsInternal setAudioFormat(AudioFormatInternal audioFor
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeStringField("transportUrl", this.transportUrl);
- jsonWriter.writeStringField("transportType", this.transportType == null ? null : this.transportType.toString());
- jsonWriter.writeStringField("contentType", this.contentType == null ? null : this.contentType.toString());
jsonWriter.writeStringField("audioChannelType",
this.audioChannelType == null ? null : this.audioChannelType.toString());
- jsonWriter.writeBooleanField("startMediaStreaming", this.startMediaStreaming);
- jsonWriter.writeBooleanField("enableBidirectional", this.enableBidirectional);
- jsonWriter.writeStringField("audioFormat", this.audioFormat == null ? null : this.audioFormat.toString());
+ jsonWriter.writeStringField("transportType", this.transportType == null ? null : this.transportType.toString());
return jsonWriter.writeEndObject();
}
@@ -253,6 +95,32 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
*/
@Generated
public static MediaStreamingOptionsInternal fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ String discriminatorValue = null;
+ try (JsonReader readerToUse = reader.bufferObject()) {
+ readerToUse.nextToken(); // Prepare for reading
+ while (readerToUse.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = readerToUse.getFieldName();
+ readerToUse.nextToken();
+ if ("transportType".equals(fieldName)) {
+ discriminatorValue = readerToUse.getString();
+ break;
+ } else {
+ readerToUse.skipChildren();
+ }
+ }
+ // Use the discriminator value to determine which subtype should be deserialized.
+ if ("websocket".equals(discriminatorValue)) {
+ return WebSocketMediaStreamingOptionsInternal.fromJson(readerToUse.reset());
+ } else {
+ return fromJsonKnownDiscriminator(readerToUse.reset());
+ }
+ }
+ });
+ }
+
+ @Generated
+ static MediaStreamingOptionsInternal fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
MediaStreamingOptionsInternal deserializedMediaStreamingOptionsInternal
= new MediaStreamingOptionsInternal();
@@ -260,26 +128,12 @@ public static MediaStreamingOptionsInternal fromJson(JsonReader jsonReader) thro
String fieldName = reader.getFieldName();
reader.nextToken();
- if ("transportUrl".equals(fieldName)) {
- deserializedMediaStreamingOptionsInternal.transportUrl = reader.getString();
- } else if ("transportType".equals(fieldName)) {
- deserializedMediaStreamingOptionsInternal.transportType
- = MediaStreamingTransportTypeInternal.fromString(reader.getString());
- } else if ("contentType".equals(fieldName)) {
- deserializedMediaStreamingOptionsInternal.contentType
- = MediaStreamingContentTypeInternal.fromString(reader.getString());
- } else if ("audioChannelType".equals(fieldName)) {
+ if ("audioChannelType".equals(fieldName)) {
deserializedMediaStreamingOptionsInternal.audioChannelType
= MediaStreamingAudioChannelTypeInternal.fromString(reader.getString());
- } else if ("startMediaStreaming".equals(fieldName)) {
- deserializedMediaStreamingOptionsInternal.startMediaStreaming
- = reader.getNullable(JsonReader::getBoolean);
- } else if ("enableBidirectional".equals(fieldName)) {
- deserializedMediaStreamingOptionsInternal.enableBidirectional
- = reader.getNullable(JsonReader::getBoolean);
- } else if ("audioFormat".equals(fieldName)) {
- deserializedMediaStreamingOptionsInternal.audioFormat
- = AudioFormatInternal.fromString(reader.getString());
+ } else if ("transportType".equals(fieldName)) {
+ deserializedMediaStreamingOptionsInternal.transportType
+ = StreamingTransportTypeInternal.fromString(reader.getString());
} else {
reader.skipChildren();
}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingTransportTypeInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingTransportTypeInternal.java
index 91d5e8d0ec83..3ed5d2057bdb 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingTransportTypeInternal.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingTransportTypeInternal.java
@@ -4,7 +4,6 @@
package com.azure.communication.callautomation.implementation.models;
-import com.azure.core.annotation.Generated;
import com.azure.core.util.ExpandableStringEnum;
import java.util.Collection;
@@ -16,7 +15,6 @@ public final class MediaStreamingTransportTypeInternal
/**
* Static value websocket for MediaStreamingTransportTypeInternal.
*/
- @Generated
public static final MediaStreamingTransportTypeInternal WEBSOCKET = fromString("websocket");
/**
@@ -24,7 +22,6 @@ public final class MediaStreamingTransportTypeInternal
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
- @Generated
@Deprecated
public MediaStreamingTransportTypeInternal() {
}
@@ -35,7 +32,6 @@ public MediaStreamingTransportTypeInternal() {
* @param name a name to look for.
* @return the corresponding MediaStreamingTransportTypeInternal.
*/
- @Generated
public static MediaStreamingTransportTypeInternal fromString(String name) {
return fromString(name, MediaStreamingTransportTypeInternal.class);
}
@@ -45,7 +41,6 @@ public static MediaStreamingTransportTypeInternal fromString(String name) {
*
* @return known MediaStreamingTransportTypeInternal values.
*/
- @Generated
public static Collection values() {
return values(MediaStreamingTransportTypeInternal.class);
}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MicrosoftTeamsUserIdentifierModel.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MicrosoftTeamsUserIdentifierModel.java
index 98fff65bda2b..983ccd3ebba3 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MicrosoftTeamsUserIdentifierModel.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MicrosoftTeamsUserIdentifierModel.java
@@ -18,7 +18,7 @@
@Fluent
public final class MicrosoftTeamsUserIdentifierModel implements JsonSerializable {
/*
- * The Id of the Microsoft Teams user. If not anonymous, this is the Entra ID object Id of the user.
+ * The Id of the Microsoft Teams user. If not anonymous, this is the AAD object Id of the user.
*/
@Generated
private String userId;
@@ -43,8 +43,8 @@ public MicrosoftTeamsUserIdentifierModel() {
}
/**
- * Get the userId property: The Id of the Microsoft Teams user. If not anonymous, this is the Entra ID object Id of
- * the user.
+ * Get the userId property: The Id of the Microsoft Teams user. If not anonymous, this is the AAD object Id of the
+ * user.
*
* @return the userId value.
*/
@@ -54,8 +54,8 @@ public String getUserId() {
}
/**
- * Set the userId property: The Id of the Microsoft Teams user. If not anonymous, this is the Entra ID object Id of
- * the user.
+ * Set the userId property: The Id of the Microsoft Teams user. If not anonymous, this is the AAD object Id of the
+ * user.
*
* @param userId the userId value to set.
* @return the MicrosoftTeamsUserIdentifierModel object itself.
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MoveParticipantFailed.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MoveParticipantFailed.java
deleted file mode 100644
index 2ea012830424..000000000000
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MoveParticipantFailed.java
+++ /dev/null
@@ -1,282 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.communication.callautomation.implementation.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-
-/**
- * Moving the participant failed event.
- */
-@Fluent
-public final class MoveParticipantFailed implements JsonSerializable {
- /*
- * The CallConnectionId for the call you want to move the participant from
- */
- @Generated
- private String fromCall;
-
- /*
- * Call connection ID.
- */
- @Generated
- private String callConnectionId;
-
- /*
- * Server call ID.
- */
- @Generated
- private String serverCallId;
-
- /*
- * Correlation ID for event to call correlation. Also called ChainId for skype chain ID.
- */
- @Generated
- private String correlationId;
-
- /*
- * Used by customers when calling mid-call actions to correlate the request to the response event.
- */
- @Generated
- private String operationContext;
-
- /*
- * Contains the resulting SIP code, sub-code and message.
- */
- @Generated
- private ResultInformation resultInformation;
-
- /*
- * Participant
- */
- @Generated
- private CommunicationIdentifierModel participant;
-
- /**
- * Creates an instance of MoveParticipantFailed class.
- */
- @Generated
- public MoveParticipantFailed() {
- }
-
- /**
- * Get the fromCall property: The CallConnectionId for the call you want to move the participant from.
- *
- * @return the fromCall value.
- */
- @Generated
- public String getFromCall() {
- return this.fromCall;
- }
-
- /**
- * Set the fromCall property: The CallConnectionId for the call you want to move the participant from.
- *
- * @param fromCall the fromCall value to set.
- * @return the MoveParticipantFailed object itself.
- */
- @Generated
- public MoveParticipantFailed setFromCall(String fromCall) {
- this.fromCall = fromCall;
- return this;
- }
-
- /**
- * Get the callConnectionId property: Call connection ID.
- *
- * @return the callConnectionId value.
- */
- @Generated
- public String getCallConnectionId() {
- return this.callConnectionId;
- }
-
- /**
- * Set the callConnectionId property: Call connection ID.
- *
- * @param callConnectionId the callConnectionId value to set.
- * @return the MoveParticipantFailed object itself.
- */
- @Generated
- public MoveParticipantFailed setCallConnectionId(String callConnectionId) {
- this.callConnectionId = callConnectionId;
- return this;
- }
-
- /**
- * Get the serverCallId property: Server call ID.
- *
- * @return the serverCallId value.
- */
- @Generated
- public String getServerCallId() {
- return this.serverCallId;
- }
-
- /**
- * Set the serverCallId property: Server call ID.
- *
- * @param serverCallId the serverCallId value to set.
- * @return the MoveParticipantFailed object itself.
- */
- @Generated
- public MoveParticipantFailed setServerCallId(String serverCallId) {
- this.serverCallId = serverCallId;
- return this;
- }
-
- /**
- * Get the correlationId property: Correlation ID for event to call correlation. Also called ChainId for skype chain
- * ID.
- *
- * @return the correlationId value.
- */
- @Generated
- public String getCorrelationId() {
- return this.correlationId;
- }
-
- /**
- * Set the correlationId property: Correlation ID for event to call correlation. Also called ChainId for skype chain
- * ID.
- *
- * @param correlationId the correlationId value to set.
- * @return the MoveParticipantFailed object itself.
- */
- @Generated
- public MoveParticipantFailed setCorrelationId(String correlationId) {
- this.correlationId = correlationId;
- return this;
- }
-
- /**
- * Get the operationContext property: Used by customers when calling mid-call actions to correlate the request to
- * the response event.
- *
- * @return the operationContext value.
- */
- @Generated
- public String getOperationContext() {
- return this.operationContext;
- }
-
- /**
- * Set the operationContext property: Used by customers when calling mid-call actions to correlate the request to
- * the response event.
- *
- * @param operationContext the operationContext value to set.
- * @return the MoveParticipantFailed object itself.
- */
- @Generated
- public MoveParticipantFailed setOperationContext(String operationContext) {
- this.operationContext = operationContext;
- return this;
- }
-
- /**
- * Get the resultInformation property: Contains the resulting SIP code, sub-code and message.
- *
- * @return the resultInformation value.
- */
- @Generated
- public ResultInformation getResultInformation() {
- return this.resultInformation;
- }
-
- /**
- * Set the resultInformation property: Contains the resulting SIP code, sub-code and message.
- *
- * @param resultInformation the resultInformation value to set.
- * @return the MoveParticipantFailed object itself.
- */
- @Generated
- public MoveParticipantFailed setResultInformation(ResultInformation resultInformation) {
- this.resultInformation = resultInformation;
- return this;
- }
-
- /**
- * Get the participant property: Participant.
- *
- * @return the participant value.
- */
- @Generated
- public CommunicationIdentifierModel getParticipant() {
- return this.participant;
- }
-
- /**
- * Set the participant property: Participant.
- *
- * @param participant the participant value to set.
- * @return the MoveParticipantFailed object itself.
- */
- @Generated
- public MoveParticipantFailed setParticipant(CommunicationIdentifierModel participant) {
- this.participant = participant;
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Generated
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("fromCall", this.fromCall);
- jsonWriter.writeStringField("callConnectionId", this.callConnectionId);
- jsonWriter.writeStringField("serverCallId", this.serverCallId);
- jsonWriter.writeStringField("correlationId", this.correlationId);
- jsonWriter.writeStringField("operationContext", this.operationContext);
- jsonWriter.writeJsonField("resultInformation", this.resultInformation);
- jsonWriter.writeJsonField("participant", this.participant);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of MoveParticipantFailed from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of MoveParticipantFailed if the JsonReader was pointing to an instance of it, or null if it
- * was pointing to JSON null.
- * @throws IOException If an error occurs while reading the MoveParticipantFailed.
- */
- @Generated
- public static MoveParticipantFailed fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- MoveParticipantFailed deserializedMoveParticipantFailed = new MoveParticipantFailed();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("fromCall".equals(fieldName)) {
- deserializedMoveParticipantFailed.fromCall = reader.getString();
- } else if ("callConnectionId".equals(fieldName)) {
- deserializedMoveParticipantFailed.callConnectionId = reader.getString();
- } else if ("serverCallId".equals(fieldName)) {
- deserializedMoveParticipantFailed.serverCallId = reader.getString();
- } else if ("correlationId".equals(fieldName)) {
- deserializedMoveParticipantFailed.correlationId = reader.getString();
- } else if ("operationContext".equals(fieldName)) {
- deserializedMoveParticipantFailed.operationContext = reader.getString();
- } else if ("resultInformation".equals(fieldName)) {
- deserializedMoveParticipantFailed.resultInformation = ResultInformation.fromJson(reader);
- } else if ("participant".equals(fieldName)) {
- deserializedMoveParticipantFailed.participant = CommunicationIdentifierModel.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedMoveParticipantFailed;
- });
- }
-}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MoveParticipantSucceeded.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MoveParticipantSucceeded.java
deleted file mode 100644
index 785927a2a81d..000000000000
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MoveParticipantSucceeded.java
+++ /dev/null
@@ -1,282 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.communication.callautomation.implementation.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-
-/**
- * Moving the participant successfully event.
- */
-@Fluent
-public final class MoveParticipantSucceeded implements JsonSerializable {
- /*
- * The CallConnectionId for the call you want to move the participant from
- */
- @Generated
- private String fromCall;
-
- /*
- * Call connection ID.
- */
- @Generated
- private String callConnectionId;
-
- /*
- * Server call ID.
- */
- @Generated
- private String serverCallId;
-
- /*
- * Correlation ID for event to call correlation. Also called ChainId for skype chain ID.
- */
- @Generated
- private String correlationId;
-
- /*
- * Used by customers when calling mid-call actions to correlate the request to the response event.
- */
- @Generated
- private String operationContext;
-
- /*
- * Contains the resulting SIP code, sub-code and message.
- */
- @Generated
- private ResultInformation resultInformation;
-
- /*
- * Participant
- */
- @Generated
- private CommunicationIdentifierModel participant;
-
- /**
- * Creates an instance of MoveParticipantSucceeded class.
- */
- @Generated
- public MoveParticipantSucceeded() {
- }
-
- /**
- * Get the fromCall property: The CallConnectionId for the call you want to move the participant from.
- *
- * @return the fromCall value.
- */
- @Generated
- public String getFromCall() {
- return this.fromCall;
- }
-
- /**
- * Set the fromCall property: The CallConnectionId for the call you want to move the participant from.
- *
- * @param fromCall the fromCall value to set.
- * @return the MoveParticipantSucceeded object itself.
- */
- @Generated
- public MoveParticipantSucceeded setFromCall(String fromCall) {
- this.fromCall = fromCall;
- return this;
- }
-
- /**
- * Get the callConnectionId property: Call connection ID.
- *
- * @return the callConnectionId value.
- */
- @Generated
- public String getCallConnectionId() {
- return this.callConnectionId;
- }
-
- /**
- * Set the callConnectionId property: Call connection ID.
- *
- * @param callConnectionId the callConnectionId value to set.
- * @return the MoveParticipantSucceeded object itself.
- */
- @Generated
- public MoveParticipantSucceeded setCallConnectionId(String callConnectionId) {
- this.callConnectionId = callConnectionId;
- return this;
- }
-
- /**
- * Get the serverCallId property: Server call ID.
- *
- * @return the serverCallId value.
- */
- @Generated
- public String getServerCallId() {
- return this.serverCallId;
- }
-
- /**
- * Set the serverCallId property: Server call ID.
- *
- * @param serverCallId the serverCallId value to set.
- * @return the MoveParticipantSucceeded object itself.
- */
- @Generated
- public MoveParticipantSucceeded setServerCallId(String serverCallId) {
- this.serverCallId = serverCallId;
- return this;
- }
-
- /**
- * Get the correlationId property: Correlation ID for event to call correlation. Also called ChainId for skype chain
- * ID.
- *
- * @return the correlationId value.
- */
- @Generated
- public String getCorrelationId() {
- return this.correlationId;
- }
-
- /**
- * Set the correlationId property: Correlation ID for event to call correlation. Also called ChainId for skype chain
- * ID.
- *
- * @param correlationId the correlationId value to set.
- * @return the MoveParticipantSucceeded object itself.
- */
- @Generated
- public MoveParticipantSucceeded setCorrelationId(String correlationId) {
- this.correlationId = correlationId;
- return this;
- }
-
- /**
- * Get the operationContext property: Used by customers when calling mid-call actions to correlate the request to
- * the response event.
- *
- * @return the operationContext value.
- */
- @Generated
- public String getOperationContext() {
- return this.operationContext;
- }
-
- /**
- * Set the operationContext property: Used by customers when calling mid-call actions to correlate the request to
- * the response event.
- *
- * @param operationContext the operationContext value to set.
- * @return the MoveParticipantSucceeded object itself.
- */
- @Generated
- public MoveParticipantSucceeded setOperationContext(String operationContext) {
- this.operationContext = operationContext;
- return this;
- }
-
- /**
- * Get the resultInformation property: Contains the resulting SIP code, sub-code and message.
- *
- * @return the resultInformation value.
- */
- @Generated
- public ResultInformation getResultInformation() {
- return this.resultInformation;
- }
-
- /**
- * Set the resultInformation property: Contains the resulting SIP code, sub-code and message.
- *
- * @param resultInformation the resultInformation value to set.
- * @return the MoveParticipantSucceeded object itself.
- */
- @Generated
- public MoveParticipantSucceeded setResultInformation(ResultInformation resultInformation) {
- this.resultInformation = resultInformation;
- return this;
- }
-
- /**
- * Get the participant property: Participant.
- *
- * @return the participant value.
- */
- @Generated
- public CommunicationIdentifierModel getParticipant() {
- return this.participant;
- }
-
- /**
- * Set the participant property: Participant.
- *
- * @param participant the participant value to set.
- * @return the MoveParticipantSucceeded object itself.
- */
- @Generated
- public MoveParticipantSucceeded setParticipant(CommunicationIdentifierModel participant) {
- this.participant = participant;
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Generated
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("fromCall", this.fromCall);
- jsonWriter.writeStringField("callConnectionId", this.callConnectionId);
- jsonWriter.writeStringField("serverCallId", this.serverCallId);
- jsonWriter.writeStringField("correlationId", this.correlationId);
- jsonWriter.writeStringField("operationContext", this.operationContext);
- jsonWriter.writeJsonField("resultInformation", this.resultInformation);
- jsonWriter.writeJsonField("participant", this.participant);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of MoveParticipantSucceeded from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of MoveParticipantSucceeded if the JsonReader was pointing to an instance of it, or null if
- * it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the MoveParticipantSucceeded.
- */
- @Generated
- public static MoveParticipantSucceeded fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- MoveParticipantSucceeded deserializedMoveParticipantSucceeded = new MoveParticipantSucceeded();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("fromCall".equals(fieldName)) {
- deserializedMoveParticipantSucceeded.fromCall = reader.getString();
- } else if ("callConnectionId".equals(fieldName)) {
- deserializedMoveParticipantSucceeded.callConnectionId = reader.getString();
- } else if ("serverCallId".equals(fieldName)) {
- deserializedMoveParticipantSucceeded.serverCallId = reader.getString();
- } else if ("correlationId".equals(fieldName)) {
- deserializedMoveParticipantSucceeded.correlationId = reader.getString();
- } else if ("operationContext".equals(fieldName)) {
- deserializedMoveParticipantSucceeded.operationContext = reader.getString();
- } else if ("resultInformation".equals(fieldName)) {
- deserializedMoveParticipantSucceeded.resultInformation = ResultInformation.fromJson(reader);
- } else if ("participant".equals(fieldName)) {
- deserializedMoveParticipantSucceeded.participant = CommunicationIdentifierModel.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedMoveParticipantSucceeded;
- });
- }
-}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MoveParticipantsRequest.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MoveParticipantsRequest.java
deleted file mode 100644
index efd5155c9cef..000000000000
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MoveParticipantsRequest.java
+++ /dev/null
@@ -1,197 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.communication.callautomation.implementation.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * The request payload for moving participant to the call.
- */
-@Fluent
-public final class MoveParticipantsRequest implements JsonSerializable {
- /*
- * The participant to Move.
- */
- @Generated
- private List targetParticipants;
-
- /*
- * Used by customers when calling mid-call actions to correlate the request to the response event.
- */
- @Generated
- private String operationContext;
-
- /*
- * Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation.
- * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.
- */
- @Generated
- private String operationCallbackUri;
-
- /*
- * The CallConnectionId for the call you want to move the participant from
- */
- @Generated
- private String fromCall;
-
- /**
- * Creates an instance of MoveParticipantsRequest class.
- */
- @Generated
- public MoveParticipantsRequest() {
- }
-
- /**
- * Get the targetParticipants property: The participant to Move.
- *
- * @return the targetParticipants value.
- */
- @Generated
- public List getTargetParticipants() {
- return this.targetParticipants;
- }
-
- /**
- * Set the targetParticipants property: The participant to Move.
- *
- * @param targetParticipants the targetParticipants value to set.
- * @return the MoveParticipantsRequest object itself.
- */
- @Generated
- public MoveParticipantsRequest setTargetParticipants(List targetParticipants) {
- this.targetParticipants = targetParticipants;
- return this;
- }
-
- /**
- * Get the operationContext property: Used by customers when calling mid-call actions to correlate the request to
- * the response event.
- *
- * @return the operationContext value.
- */
- @Generated
- public String getOperationContext() {
- return this.operationContext;
- }
-
- /**
- * Set the operationContext property: Used by customers when calling mid-call actions to correlate the request to
- * the response event.
- *
- * @param operationContext the operationContext value to set.
- * @return the MoveParticipantsRequest object itself.
- */
- @Generated
- public MoveParticipantsRequest setOperationContext(String operationContext) {
- this.operationContext = operationContext;
- return this;
- }
-
- /**
- * Get the operationCallbackUri property: Set a callback URI that overrides the default callback URI set by
- * CreateCall/AnswerCall for this operation.
- * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.
- *
- * @return the operationCallbackUri value.
- */
- @Generated
- public String getOperationCallbackUri() {
- return this.operationCallbackUri;
- }
-
- /**
- * Set the operationCallbackUri property: Set a callback URI that overrides the default callback URI set by
- * CreateCall/AnswerCall for this operation.
- * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.
- *
- * @param operationCallbackUri the operationCallbackUri value to set.
- * @return the MoveParticipantsRequest object itself.
- */
- @Generated
- public MoveParticipantsRequest setOperationCallbackUri(String operationCallbackUri) {
- this.operationCallbackUri = operationCallbackUri;
- return this;
- }
-
- /**
- * Get the fromCall property: The CallConnectionId for the call you want to move the participant from.
- *
- * @return the fromCall value.
- */
- @Generated
- public String getFromCall() {
- return this.fromCall;
- }
-
- /**
- * Set the fromCall property: The CallConnectionId for the call you want to move the participant from.
- *
- * @param fromCall the fromCall value to set.
- * @return the MoveParticipantsRequest object itself.
- */
- @Generated
- public MoveParticipantsRequest setFromCall(String fromCall) {
- this.fromCall = fromCall;
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Generated
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeArrayField("targetParticipants", this.targetParticipants,
- (writer, element) -> writer.writeJson(element));
- jsonWriter.writeStringField("fromCall", this.fromCall);
- jsonWriter.writeStringField("operationContext", this.operationContext);
- jsonWriter.writeStringField("operationCallbackUri", this.operationCallbackUri);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of MoveParticipantsRequest from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of MoveParticipantsRequest if the JsonReader was pointing to an instance of it, or null if it
- * was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the MoveParticipantsRequest.
- */
- @Generated
- public static MoveParticipantsRequest fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- MoveParticipantsRequest deserializedMoveParticipantsRequest = new MoveParticipantsRequest();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("targetParticipants".equals(fieldName)) {
- List targetParticipants
- = reader.readArray(reader1 -> CommunicationIdentifierModel.fromJson(reader1));
- deserializedMoveParticipantsRequest.targetParticipants = targetParticipants;
- } else if ("fromCall".equals(fieldName)) {
- deserializedMoveParticipantsRequest.fromCall = reader.getString();
- } else if ("operationContext".equals(fieldName)) {
- deserializedMoveParticipantsRequest.operationContext = reader.getString();
- } else if ("operationCallbackUri".equals(fieldName)) {
- deserializedMoveParticipantsRequest.operationCallbackUri = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedMoveParticipantsRequest;
- });
- }
-}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MoveParticipantsResponse.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MoveParticipantsResponse.java
deleted file mode 100644
index bcbb6a315f3f..000000000000
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MoveParticipantsResponse.java
+++ /dev/null
@@ -1,157 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.communication.callautomation.implementation.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * The response payload for moving participants to the call.
- */
-@Fluent
-public final class MoveParticipantsResponse implements JsonSerializable {
- /*
- * List of current participants in the call.
- */
- @Generated
- private List participants;
-
- /*
- * The operation context provided by client.
- */
- @Generated
- private String operationContext;
-
- /*
- * The CallConnectionId for the call you want to move the participant from
- */
- @Generated
- private String fromCall;
-
- /**
- * Creates an instance of MoveParticipantsResponse class.
- */
- @Generated
- public MoveParticipantsResponse() {
- }
-
- /**
- * Get the participants property: List of current participants in the call.
- *
- * @return the participants value.
- */
- @Generated
- public List getParticipants() {
- return this.participants;
- }
-
- /**
- * Set the participants property: List of current participants in the call.
- *
- * @param participants the participants value to set.
- * @return the MoveParticipantsResponse object itself.
- */
- @Generated
- public MoveParticipantsResponse setParticipants(List participants) {
- this.participants = participants;
- return this;
- }
-
- /**
- * Get the operationContext property: The operation context provided by client.
- *
- * @return the operationContext value.
- */
- @Generated
- public String getOperationContext() {
- return this.operationContext;
- }
-
- /**
- * Set the operationContext property: The operation context provided by client.
- *
- * @param operationContext the operationContext value to set.
- * @return the MoveParticipantsResponse object itself.
- */
- @Generated
- public MoveParticipantsResponse setOperationContext(String operationContext) {
- this.operationContext = operationContext;
- return this;
- }
-
- /**
- * Get the fromCall property: The CallConnectionId for the call you want to move the participant from.
- *
- * @return the fromCall value.
- */
- @Generated
- public String getFromCall() {
- return this.fromCall;
- }
-
- /**
- * Set the fromCall property: The CallConnectionId for the call you want to move the participant from.
- *
- * @param fromCall the fromCall value to set.
- * @return the MoveParticipantsResponse object itself.
- */
- @Generated
- public MoveParticipantsResponse setFromCall(String fromCall) {
- this.fromCall = fromCall;
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Generated
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeArrayField("participants", this.participants, (writer, element) -> writer.writeJson(element));
- jsonWriter.writeStringField("operationContext", this.operationContext);
- jsonWriter.writeStringField("fromCall", this.fromCall);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of MoveParticipantsResponse from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of MoveParticipantsResponse if the JsonReader was pointing to an instance of it, or null if
- * it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the MoveParticipantsResponse.
- */
- @Generated
- public static MoveParticipantsResponse fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- MoveParticipantsResponse deserializedMoveParticipantsResponse = new MoveParticipantsResponse();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("participants".equals(fieldName)) {
- List participants
- = reader.readArray(reader1 -> CallParticipantInternal.fromJson(reader1));
- deserializedMoveParticipantsResponse.participants = participants;
- } else if ("operationContext".equals(fieldName)) {
- deserializedMoveParticipantsResponse.operationContext = reader.getString();
- } else if ("fromCall".equals(fieldName)) {
- deserializedMoveParticipantsResponse.fromCall = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedMoveParticipantsResponse;
- });
- }
-}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PhoneNumberIdentifierModel.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PhoneNumberIdentifierModel.java
index 8c6a1427ed7d..c2539c22fadd 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PhoneNumberIdentifierModel.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PhoneNumberIdentifierModel.java
@@ -18,25 +18,11 @@
@Fluent
public final class PhoneNumberIdentifierModel implements JsonSerializable {
/*
- * The phone number, usually in E.164 format.
+ * The phone number in E.164 format.
*/
@Generated
private String value;
- /*
- * True if the phone number is anonymous. By default false if missing. If the phone number is anonymous, the value
- * will be the string 'anonymous'.
- */
- @Generated
- private Boolean isAnonymous;
-
- /*
- * The asserted Id of the phone number. An asserted Id gets generated when the same phone number joins the same call
- * more than once.
- */
- @Generated
- private String assertedId;
-
/**
* Creates an instance of PhoneNumberIdentifierModel class.
*/
@@ -45,7 +31,7 @@ public PhoneNumberIdentifierModel() {
}
/**
- * Get the value property: The phone number, usually in E.164 format.
+ * Get the value property: The phone number in E.164 format.
*
* @return the value value.
*/
@@ -55,7 +41,7 @@ public String getValue() {
}
/**
- * Set the value property: The phone number, usually in E.164 format.
+ * Set the value property: The phone number in E.164 format.
*
* @param value the value value to set.
* @return the PhoneNumberIdentifierModel object itself.
@@ -66,54 +52,6 @@ public PhoneNumberIdentifierModel setValue(String value) {
return this;
}
- /**
- * Get the isAnonymous property: True if the phone number is anonymous. By default false if missing. If the phone
- * number is anonymous, the value will be the string 'anonymous'.
- *
- * @return the isAnonymous value.
- */
- @Generated
- public Boolean isAnonymous() {
- return this.isAnonymous;
- }
-
- /**
- * Set the isAnonymous property: True if the phone number is anonymous. By default false if missing. If the phone
- * number is anonymous, the value will be the string 'anonymous'.
- *
- * @param isAnonymous the isAnonymous value to set.
- * @return the PhoneNumberIdentifierModel object itself.
- */
- @Generated
- public PhoneNumberIdentifierModel setIsAnonymous(Boolean isAnonymous) {
- this.isAnonymous = isAnonymous;
- return this;
- }
-
- /**
- * Get the assertedId property: The asserted Id of the phone number. An asserted Id gets generated when the same
- * phone number joins the same call more than once.
- *
- * @return the assertedId value.
- */
- @Generated
- public String getAssertedId() {
- return this.assertedId;
- }
-
- /**
- * Set the assertedId property: The asserted Id of the phone number. An asserted Id gets generated when the same
- * phone number joins the same call more than once.
- *
- * @param assertedId the assertedId value to set.
- * @return the PhoneNumberIdentifierModel object itself.
- */
- @Generated
- public PhoneNumberIdentifierModel setAssertedId(String assertedId) {
- this.assertedId = assertedId;
- return this;
- }
-
/**
* {@inheritDoc}
*/
@@ -122,8 +60,6 @@ public PhoneNumberIdentifierModel setAssertedId(String assertedId) {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("value", this.value);
- jsonWriter.writeBooleanField("isAnonymous", this.isAnonymous);
- jsonWriter.writeStringField("assertedId", this.assertedId);
return jsonWriter.writeEndObject();
}
@@ -146,10 +82,6 @@ public static PhoneNumberIdentifierModel fromJson(JsonReader jsonReader) throws
if ("value".equals(fieldName)) {
deserializedPhoneNumberIdentifierModel.value = reader.getString();
- } else if ("isAnonymous".equals(fieldName)) {
- deserializedPhoneNumberIdentifierModel.isAnonymous = reader.getNullable(JsonReader::getBoolean);
- } else if ("assertedId".equals(fieldName)) {
- deserializedPhoneNumberIdentifierModel.assertedId = reader.getString();
} else {
reader.skipChildren();
}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PlayOptionsInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PlayOptionsInternal.java
index 8ec7230acfae..6ac127b93f75 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PlayOptionsInternal.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PlayOptionsInternal.java
@@ -23,19 +23,6 @@ public final class PlayOptionsInternal implements JsonSerializable {
@Generated
private List playTo;
+ /*
+ * If set play can barge into other existing queued-up/currently-processing requests.
+ */
+ @Generated
+ private Boolean interruptCallMediaOperation;
+
/*
* Defines options for playing the audio.
*/
@@ -103,6 +109,30 @@ public PlayRequest setPlayTo(List playTo) {
return this;
}
+ /**
+ * Get the interruptCallMediaOperation property: If set play can barge into other existing
+ * queued-up/currently-processing requests.
+ *
+ * @return the interruptCallMediaOperation value.
+ */
+ @Generated
+ public Boolean isInterruptCallMediaOperation() {
+ return this.interruptCallMediaOperation;
+ }
+
+ /**
+ * Set the interruptCallMediaOperation property: If set play can barge into other existing
+ * queued-up/currently-processing requests.
+ *
+ * @param interruptCallMediaOperation the interruptCallMediaOperation value to set.
+ * @return the PlayRequest object itself.
+ */
+ @Generated
+ public PlayRequest setInterruptCallMediaOperation(Boolean interruptCallMediaOperation) {
+ this.interruptCallMediaOperation = interruptCallMediaOperation;
+ return this;
+ }
+
/**
* Get the playOptions property: Defines options for playing the audio.
*
@@ -182,6 +212,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeArrayField("playSources", this.playSources, (writer, element) -> writer.writeJson(element));
jsonWriter.writeArrayField("playTo", this.playTo, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeBooleanField("interruptCallMediaOperation", this.interruptCallMediaOperation);
jsonWriter.writeJsonField("playOptions", this.playOptions);
jsonWriter.writeStringField("operationContext", this.operationContext);
jsonWriter.writeStringField("operationCallbackUri", this.operationCallbackUri);
@@ -213,6 +244,8 @@ public static PlayRequest fromJson(JsonReader jsonReader) throws IOException {
List playTo
= reader.readArray(reader1 -> CommunicationIdentifierModel.fromJson(reader1));
deserializedPlayRequest.playTo = playTo;
+ } else if ("interruptCallMediaOperation".equals(fieldName)) {
+ deserializedPlayRequest.interruptCallMediaOperation = reader.getNullable(JsonReader::getBoolean);
} else if ("playOptions".equals(fieldName)) {
deserializedPlayRequest.playOptions = PlayOptionsInternal.fromJson(reader);
} else if ("operationContext".equals(fieldName)) {
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PostProcessingOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PostProcessingOptions.java
deleted file mode 100644
index 8494df573d20..000000000000
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PostProcessingOptions.java
+++ /dev/null
@@ -1,160 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.communication.callautomation.implementation.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-
-/**
- * The PostProcessingOptions model.
- */
-@Fluent
-public final class PostProcessingOptions implements JsonSerializable {
- /*
- * The identifier of the Cognitive Service resource assigned to the post recording processing.
- * The Cognitive Service resource will be used by the summarization feature.
- */
- @Generated
- private String cognitiveServicesEndpoint;
-
- /*
- * Define options of the transcription for the post recording processing.
- */
- @Generated
- private Transcription transcription;
-
- /*
- * Define options of the summarization for the post recording processing.
- */
- @Generated
- private Summarization summarization;
-
- /**
- * Creates an instance of PostProcessingOptions class.
- */
- @Generated
- public PostProcessingOptions() {
- }
-
- /**
- * Get the cognitiveServicesEndpoint property: The identifier of the Cognitive Service resource assigned to the post
- * recording processing.
- * The Cognitive Service resource will be used by the summarization feature.
- *
- * @return the cognitiveServicesEndpoint value.
- */
- @Generated
- public String getCognitiveServicesEndpoint() {
- return this.cognitiveServicesEndpoint;
- }
-
- /**
- * Set the cognitiveServicesEndpoint property: The identifier of the Cognitive Service resource assigned to the post
- * recording processing.
- * The Cognitive Service resource will be used by the summarization feature.
- *
- * @param cognitiveServicesEndpoint the cognitiveServicesEndpoint value to set.
- * @return the PostProcessingOptions object itself.
- */
- @Generated
- public PostProcessingOptions setCognitiveServicesEndpoint(String cognitiveServicesEndpoint) {
- this.cognitiveServicesEndpoint = cognitiveServicesEndpoint;
- return this;
- }
-
- /**
- * Get the transcription property: Define options of the transcription for the post recording processing.
- *
- * @return the transcription value.
- */
- @Generated
- public Transcription getTranscription() {
- return this.transcription;
- }
-
- /**
- * Set the transcription property: Define options of the transcription for the post recording processing.
- *
- * @param transcription the transcription value to set.
- * @return the PostProcessingOptions object itself.
- */
- @Generated
- public PostProcessingOptions setTranscription(Transcription transcription) {
- this.transcription = transcription;
- return this;
- }
-
- /**
- * Get the summarization property: Define options of the summarization for the post recording processing.
- *
- * @return the summarization value.
- */
- @Generated
- public Summarization getSummarization() {
- return this.summarization;
- }
-
- /**
- * Set the summarization property: Define options of the summarization for the post recording processing.
- *
- * @param summarization the summarization value to set.
- * @return the PostProcessingOptions object itself.
- */
- @Generated
- public PostProcessingOptions setSummarization(Summarization summarization) {
- this.summarization = summarization;
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Generated
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("transcription", this.transcription);
- jsonWriter.writeStringField("cognitiveServicesEndpoint", this.cognitiveServicesEndpoint);
- jsonWriter.writeJsonField("summarization", this.summarization);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of PostProcessingOptions from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of PostProcessingOptions if the JsonReader was pointing to an instance of it, or null if it
- * was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the PostProcessingOptions.
- */
- @Generated
- public static PostProcessingOptions fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- PostProcessingOptions deserializedPostProcessingOptions = new PostProcessingOptions();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("transcription".equals(fieldName)) {
- deserializedPostProcessingOptions.transcription = Transcription.fromJson(reader);
- } else if ("cognitiveServicesEndpoint".equals(fieldName)) {
- deserializedPostProcessingOptions.cognitiveServicesEndpoint = reader.getString();
- } else if ("summarization".equals(fieldName)) {
- deserializedPostProcessingOptions.summarization = Summarization.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedPostProcessingOptions;
- });
- }
-}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PowerVirtualAgentsDialog.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PowerVirtualAgentsDialog.java
index 227d91a2186d..43e7f30dfd13 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PowerVirtualAgentsDialog.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PowerVirtualAgentsDialog.java
@@ -5,7 +5,6 @@
package com.azure.communication.callautomation.implementation.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -20,25 +19,21 @@ public final class PowerVirtualAgentsDialog extends BaseDialog {
/*
* Determines the type of the dialog.
*/
- @Generated
private DialogInputType kind = DialogInputType.POWER_VIRTUAL_AGENTS;
/*
* Bot identifier.
*/
- @Generated
private String botAppId;
/*
* Language.
*/
- @Generated
private String language;
/**
* Creates an instance of PowerVirtualAgentsDialog class.
*/
- @Generated
public PowerVirtualAgentsDialog() {
}
@@ -47,7 +42,6 @@ public PowerVirtualAgentsDialog() {
*
* @return the kind value.
*/
- @Generated
@Override
public DialogInputType getKind() {
return this.kind;
@@ -58,7 +52,6 @@ public DialogInputType getKind() {
*
* @return the botAppId value.
*/
- @Generated
public String getBotAppId() {
return this.botAppId;
}
@@ -69,7 +62,6 @@ public String getBotAppId() {
* @param botAppId the botAppId value to set.
* @return the PowerVirtualAgentsDialog object itself.
*/
- @Generated
public PowerVirtualAgentsDialog setBotAppId(String botAppId) {
this.botAppId = botAppId;
return this;
@@ -80,7 +72,6 @@ public PowerVirtualAgentsDialog setBotAppId(String botAppId) {
*
* @return the language value.
*/
- @Generated
public String getLanguage() {
return this.language;
}
@@ -91,7 +82,6 @@ public String getLanguage() {
* @param language the language value to set.
* @return the PowerVirtualAgentsDialog object itself.
*/
- @Generated
public PowerVirtualAgentsDialog setLanguage(String language) {
this.language = language;
return this;
@@ -100,7 +90,6 @@ public PowerVirtualAgentsDialog setLanguage(String language) {
/**
* {@inheritDoc}
*/
- @Generated
@Override
public PowerVirtualAgentsDialog setContext(Map context) {
super.setContext(context);
@@ -110,7 +99,6 @@ public PowerVirtualAgentsDialog setContext(Map context) {
/**
* {@inheritDoc}
*/
- @Generated
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
@@ -130,7 +118,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
* @throws IllegalStateException If the deserialized JSON object was missing any required properties.
* @throws IOException If an error occurs while reading the PowerVirtualAgentsDialog.
*/
- @Generated
public static PowerVirtualAgentsDialog fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
PowerVirtualAgentsDialog deserializedPowerVirtualAgentsDialog = new PowerVirtualAgentsDialog();
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingChunkStorageInfo.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingChunkStorageInfo.java
index 714de6fb0d28..9d6c3e7c68fd 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingChunkStorageInfo.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingChunkStorageInfo.java
@@ -5,7 +5,6 @@
package com.azure.communication.callautomation.implementation.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -20,43 +19,36 @@ public final class RecordingChunkStorageInfo implements JsonSerializable {
RecordingChunkStorageInfo deserializedRecordingChunkStorageInfo = new RecordingChunkStorageInfo();
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingResultResponse.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingResultResponse.java
index 0ffdcfc561b2..a76635d792f3 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingResultResponse.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingResultResponse.java
@@ -4,9 +4,7 @@
package com.azure.communication.callautomation.implementation.models;
-import com.azure.core.annotation.Generated;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.CoreUtils;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -23,49 +21,41 @@ public final class RecordingResultResponse implements JsonSerializable errors;
/*
* The recordingStartTime property.
*/
- @Generated
private OffsetDateTime recordingStartTime;
/*
* The recordingDurationMs property.
*/
- @Generated
private Long recordingDurationMs;
/*
* The sessionEndReason property.
*/
- @Generated
private CallSessionEndReason sessionEndReason;
/*
* The recordingExpirationTime property.
*/
- @Generated
private OffsetDateTime recordingExpirationTime;
/**
* Creates an instance of RecordingResultResponse class.
*/
- @Generated
public RecordingResultResponse() {
}
@@ -74,7 +64,6 @@ public RecordingResultResponse() {
*
* @return the recordingId value.
*/
- @Generated
public String getRecordingId() {
return this.recordingId;
}
@@ -84,8 +73,7 @@ public String getRecordingId() {
*
* @return the recordingStorageInfo value.
*/
- @Generated
- public RecordingStorageInfoInternal getRecordingStorageInfo() {
+ public RecordingStorageInfo getRecordingStorageInfo() {
return this.recordingStorageInfo;
}
@@ -94,7 +82,6 @@ public RecordingStorageInfoInternal getRecordingStorageInfo() {
*
* @return the errors value.
*/
- @Generated
public List getErrors() {
return this.errors;
}
@@ -104,7 +91,6 @@ public List getErrors() {
*
* @return the recordingStartTime value.
*/
- @Generated
public OffsetDateTime getRecordingStartTime() {
return this.recordingStartTime;
}
@@ -114,7 +100,6 @@ public OffsetDateTime getRecordingStartTime() {
*
* @return the recordingDurationMs value.
*/
- @Generated
public Long getRecordingDurationMs() {
return this.recordingDurationMs;
}
@@ -124,7 +109,6 @@ public Long getRecordingDurationMs() {
*
* @return the sessionEndReason value.
*/
- @Generated
public CallSessionEndReason getSessionEndReason() {
return this.sessionEndReason;
}
@@ -134,7 +118,6 @@ public CallSessionEndReason getSessionEndReason() {
*
* @return the recordingExpirationTime value.
*/
- @Generated
public OffsetDateTime getRecordingExpirationTime() {
return this.recordingExpirationTime;
}
@@ -142,7 +125,6 @@ public OffsetDateTime getRecordingExpirationTime() {
/**
* {@inheritDoc}
*/
- @Generated
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
@@ -157,7 +139,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
* was pointing to JSON null.
* @throws IOException If an error occurs while reading the RecordingResultResponse.
*/
- @Generated
public static RecordingResultResponse fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
RecordingResultResponse deserializedRecordingResultResponse = new RecordingResultResponse();
@@ -168,22 +149,21 @@ public static RecordingResultResponse fromJson(JsonReader jsonReader) throws IOE
if ("recordingId".equals(fieldName)) {
deserializedRecordingResultResponse.recordingId = reader.getString();
} else if ("recordingStorageInfo".equals(fieldName)) {
- deserializedRecordingResultResponse.recordingStorageInfo
- = RecordingStorageInfoInternal.fromJson(reader);
+ deserializedRecordingResultResponse.recordingStorageInfo = RecordingStorageInfo.fromJson(reader);
} else if ("errors".equals(fieldName)) {
List errors = reader.readArray(reader1 -> Error.fromJson(reader1));
deserializedRecordingResultResponse.errors = errors;
} else if ("recordingStartTime".equals(fieldName)) {
- deserializedRecordingResultResponse.recordingStartTime = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ deserializedRecordingResultResponse.recordingStartTime
+ = reader.getNullable(nonNullReader -> OffsetDateTime.parse(nonNullReader.getString()));
} else if ("recordingDurationMs".equals(fieldName)) {
deserializedRecordingResultResponse.recordingDurationMs = reader.getNullable(JsonReader::getLong);
} else if ("sessionEndReason".equals(fieldName)) {
deserializedRecordingResultResponse.sessionEndReason
= CallSessionEndReason.fromString(reader.getString());
} else if ("recordingExpirationTime".equals(fieldName)) {
- deserializedRecordingResultResponse.recordingExpirationTime = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ deserializedRecordingResultResponse.recordingExpirationTime
+ = reader.getNullable(nonNullReader -> OffsetDateTime.parse(nonNullReader.getString()));
} else {
reader.skipChildren();
}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingStorageInfo.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingStorageInfo.java
index 60961bfbada2..581e9e8bfdd4 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingStorageInfo.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingStorageInfo.java
@@ -5,7 +5,6 @@
package com.azure.communication.callautomation.implementation.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -19,17 +18,13 @@
@Fluent
public final class RecordingStorageInfo implements JsonSerializable {
/*
- * Collection of
- * {Microsoft.Skype.Platform.ExecutionAgent.Azure.Communication.Service.ServerCalling.Content.Contracts.
- * ALPHA4_2024_09_01_preview.Models.RecordingChunkStorageInfo}
+ * Collection of {Microsoft.Skype.Platform.ExecutionAgent.Azure.Communication.Service.ServerCalling.Content.Contracts.ALPHA4_2024_09_01_preview.Models.RecordingChunkStorageInfo}
*/
- @Generated
private List recordingChunks;
/**
* Creates an instance of RecordingStorageInfo class.
*/
- @Generated
public RecordingStorageInfo() {
}
@@ -39,7 +34,6 @@ public RecordingStorageInfo() {
*
* @return the recordingChunks value.
*/
- @Generated
public List getRecordingChunks() {
return this.recordingChunks;
}
@@ -51,7 +45,6 @@ public List getRecordingChunks() {
* @param recordingChunks the recordingChunks value to set.
* @return the RecordingStorageInfo object itself.
*/
- @Generated
public RecordingStorageInfo setRecordingChunks(List recordingChunks) {
this.recordingChunks = recordingChunks;
return this;
@@ -60,7 +53,6 @@ public RecordingStorageInfo setRecordingChunks(List r
/**
* {@inheritDoc}
*/
- @Generated
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
@@ -77,7 +69,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
* was pointing to JSON null.
* @throws IOException If an error occurs while reading the RecordingStorageInfo.
*/
- @Generated
public static RecordingStorageInfo fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
RecordingStorageInfo deserializedRecordingStorageInfo = new RecordingStorageInfo();
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingStorageInfoInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingStorageInfoInternal.java
deleted file mode 100644
index ff959d5a66bb..000000000000
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingStorageInfoInternal.java
+++ /dev/null
@@ -1,100 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.communication.callautomation.implementation.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * Container for chunks.
- */
-@Fluent
-public final class RecordingStorageInfoInternal implements JsonSerializable {
- /*
- * Collection of
- * {Microsoft.Skype.Platform.ExecutionAgent.Azure.Communication.Service.ServerCalling.Content.Contracts.
- * ALPHA4_2024_09_01_preview.Models.RecordingChunkStorageInfo}
- */
- @Generated
- private List recordingChunks;
-
- /**
- * Creates an instance of RecordingStorageInfoInternal class.
- */
- @Generated
- public RecordingStorageInfoInternal() {
- }
-
- /**
- * Get the recordingChunks property: Collection of
- * {Microsoft.Skype.Platform.ExecutionAgent.Azure.Communication.Service.ServerCalling.Content.Contracts.ALPHA4_2024_09_01_preview.Models.RecordingChunkStorageInfo}.
- *
- * @return the recordingChunks value.
- */
- @Generated
- public List getRecordingChunks() {
- return this.recordingChunks;
- }
-
- /**
- * Set the recordingChunks property: Collection of
- * {Microsoft.Skype.Platform.ExecutionAgent.Azure.Communication.Service.ServerCalling.Content.Contracts.ALPHA4_2024_09_01_preview.Models.RecordingChunkStorageInfo}.
- *
- * @param recordingChunks the recordingChunks value to set.
- * @return the RecordingStorageInfoInternal object itself.
- */
- @Generated
- public RecordingStorageInfoInternal setRecordingChunks(List recordingChunks) {
- this.recordingChunks = recordingChunks;
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Generated
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeArrayField("recordingChunks", this.recordingChunks,
- (writer, element) -> writer.writeJson(element));
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of RecordingStorageInfoInternal from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of RecordingStorageInfoInternal if the JsonReader was pointing to an instance of it, or null
- * if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the RecordingStorageInfoInternal.
- */
- @Generated
- public static RecordingStorageInfoInternal fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- RecordingStorageInfoInternal deserializedRecordingStorageInfoInternal = new RecordingStorageInfoInternal();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("recordingChunks".equals(fieldName)) {
- List recordingChunks
- = reader.readArray(reader1 -> RecordingChunkStorageInfo.fromJson(reader1));
- deserializedRecordingStorageInfoInternal.recordingChunks = recordingChunks;
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedRecordingStorageInfoInternal;
- });
- }
-}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RedirectCallRequestInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RedirectCallRequestInternal.java
index f4653583ab0a..beb6d115c980 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RedirectCallRequestInternal.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RedirectCallRequestInternal.java
@@ -29,12 +29,6 @@ public final class RedirectCallRequestInternal implements JsonSerializable {
/*
- * The call locator. (Only one of callLocator or callConnectionId to be used)
+ * The call locator.
*/
@Generated
private CallLocatorInternal callLocator;
- /*
- * The call connectionId. (Only one of callLocator or callConnectionId to be used)
- */
- @Generated
- private String callConnectionId;
-
/*
* The uri to send notifications to.
*/
@@ -85,12 +79,6 @@ public final class StartCallRecordingRequestInternal implements JsonSerializable
@Generated
private RecordingStorageInternal externalStorage;
- /*
- * The post processing options for the recording.
- */
- @Generated
- private PostProcessingOptions postProcessingOptions;
-
/**
* Creates an instance of StartCallRecordingRequestInternal class.
*/
@@ -99,7 +87,7 @@ public StartCallRecordingRequestInternal() {
}
/**
- * Get the callLocator property: The call locator. (Only one of callLocator or callConnectionId to be used).
+ * Get the callLocator property: The call locator.
*
* @return the callLocator value.
*/
@@ -109,7 +97,7 @@ public CallLocatorInternal getCallLocator() {
}
/**
- * Set the callLocator property: The call locator. (Only one of callLocator or callConnectionId to be used).
+ * Set the callLocator property: The call locator.
*
* @param callLocator the callLocator value to set.
* @return the StartCallRecordingRequestInternal object itself.
@@ -120,30 +108,6 @@ public StartCallRecordingRequestInternal setCallLocator(CallLocatorInternal call
return this;
}
- /**
- * Get the callConnectionId property: The call connectionId. (Only one of callLocator or callConnectionId to be
- * used).
- *
- * @return the callConnectionId value.
- */
- @Generated
- public String getCallConnectionId() {
- return this.callConnectionId;
- }
-
- /**
- * Set the callConnectionId property: The call connectionId. (Only one of callLocator or callConnectionId to be
- * used).
- *
- * @param callConnectionId the callConnectionId value to set.
- * @return the StartCallRecordingRequestInternal object itself.
- */
- @Generated
- public StartCallRecordingRequestInternal setCallConnectionId(String callConnectionId) {
- this.callConnectionId = callConnectionId;
- return this;
- }
-
/**
* Get the recordingStateCallbackUri property: The uri to send notifications to.
*
@@ -337,28 +301,6 @@ public StartCallRecordingRequestInternal setExternalStorage(RecordingStorageInte
return this;
}
- /**
- * Get the postProcessingOptions property: The post processing options for the recording.
- *
- * @return the postProcessingOptions value.
- */
- @Generated
- public PostProcessingOptions getPostProcessingOptions() {
- return this.postProcessingOptions;
- }
-
- /**
- * Set the postProcessingOptions property: The post processing options for the recording.
- *
- * @param postProcessingOptions the postProcessingOptions value to set.
- * @return the StartCallRecordingRequestInternal object itself.
- */
- @Generated
- public StartCallRecordingRequestInternal setPostProcessingOptions(PostProcessingOptions postProcessingOptions) {
- this.postProcessingOptions = postProcessingOptions;
- return this;
- }
-
/**
* {@inheritDoc}
*/
@@ -367,7 +309,6 @@ public StartCallRecordingRequestInternal setPostProcessingOptions(PostProcessing
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("callLocator", this.callLocator);
- jsonWriter.writeStringField("callConnectionId", this.callConnectionId);
jsonWriter.writeStringField("recordingStateCallbackUri", this.recordingStateCallbackUri);
jsonWriter.writeStringField("recordingContentType",
this.recordingContentType == null ? null : this.recordingContentType.toString());
@@ -381,7 +322,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
(writer, element) -> writer.writeJson(element));
jsonWriter.writeBooleanField("pauseOnStart", this.pauseOnStart);
jsonWriter.writeJsonField("externalStorage", this.externalStorage);
- jsonWriter.writeJsonField("postProcessingOptions", this.postProcessingOptions);
return jsonWriter.writeEndObject();
}
@@ -391,6 +331,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
* @param jsonReader The JsonReader being read.
* @return An instance of StartCallRecordingRequestInternal if the JsonReader was pointing to an instance of it, or
* null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
* @throws IOException If an error occurs while reading the StartCallRecordingRequestInternal.
*/
@Generated
@@ -404,8 +345,6 @@ public static StartCallRecordingRequestInternal fromJson(JsonReader jsonReader)
if ("callLocator".equals(fieldName)) {
deserializedStartCallRecordingRequestInternal.callLocator = CallLocatorInternal.fromJson(reader);
- } else if ("callConnectionId".equals(fieldName)) {
- deserializedStartCallRecordingRequestInternal.callConnectionId = reader.getString();
} else if ("recordingStateCallbackUri".equals(fieldName)) {
deserializedStartCallRecordingRequestInternal.recordingStateCallbackUri = reader.getString();
} else if ("recordingContentType".equals(fieldName)) {
@@ -432,9 +371,6 @@ public static StartCallRecordingRequestInternal fromJson(JsonReader jsonReader)
} else if ("externalStorage".equals(fieldName)) {
deserializedStartCallRecordingRequestInternal.externalStorage
= RecordingStorageInternal.fromJson(reader);
- } else if ("postProcessingOptions".equals(fieldName)) {
- deserializedStartCallRecordingRequestInternal.postProcessingOptions
- = PostProcessingOptions.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartDialogRequestInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartDialogRequestInternal.java
index 3af194db0d60..e1959abf0fbe 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartDialogRequestInternal.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartDialogRequestInternal.java
@@ -5,7 +5,6 @@
package com.azure.communication.callautomation.implementation.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -20,26 +19,22 @@ public final class StartDialogRequestInternal implements JsonSerializable {
StartDialogRequestInternal deserializedStartDialogRequestInternal = new StartDialogRequestInternal();
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartRecordingFailed.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartRecordingFailed.java
index 8eac68dc4e67..fa756feab460 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartRecordingFailed.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartRecordingFailed.java
@@ -5,7 +5,6 @@
package com.azure.communication.callautomation.implementation.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -20,25 +19,21 @@ public final class StartRecordingFailed implements JsonSerializable {
StartRecordingFailed deserializedStartRecordingFailed = new StartRecordingFailed();
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartTranscriptionRequestInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartTranscriptionRequestInternal.java
index 7b9695c7380a..4beb4e1ed01f 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartTranscriptionRequestInternal.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartTranscriptionRequestInternal.java
@@ -18,13 +18,14 @@
@Fluent
public final class StartTranscriptionRequestInternal implements JsonSerializable {
/*
- * Defines Locale for the transcription e,g en-US
+ * Specifies the Locale used for transcription, e.g., en-CA or en-AU.
*/
@Generated
private String locale;
/*
- * Endpoint where the custom model was deployed.
+ * The ID of the deployed custom model in GUID format. The GUID is generated by Azure Speech Studio, e.g.,
+ * a259c255-1cdw-4ed7-a693-dd58563b6f6a.
*/
@Generated
private String speechModelEndpointId;
@@ -50,7 +51,7 @@ public StartTranscriptionRequestInternal() {
}
/**
- * Get the locale property: Defines Locale for the transcription e,g en-US.
+ * Get the locale property: Specifies the Locale used for transcription, e.g., en-CA or en-AU.
*
* @return the locale value.
*/
@@ -60,7 +61,7 @@ public String getLocale() {
}
/**
- * Set the locale property: Defines Locale for the transcription e,g en-US.
+ * Set the locale property: Specifies the Locale used for transcription, e.g., en-CA or en-AU.
*
* @param locale the locale value to set.
* @return the StartTranscriptionRequestInternal object itself.
@@ -72,7 +73,8 @@ public StartTranscriptionRequestInternal setLocale(String locale) {
}
/**
- * Get the speechModelEndpointId property: Endpoint where the custom model was deployed.
+ * Get the speechModelEndpointId property: The ID of the deployed custom model in GUID format. The GUID is generated
+ * by Azure Speech Studio, e.g., a259c255-1cdw-4ed7-a693-dd58563b6f6a.
*
* @return the speechModelEndpointId value.
*/
@@ -82,7 +84,8 @@ public String getSpeechModelEndpointId() {
}
/**
- * Set the speechModelEndpointId property: Endpoint where the custom model was deployed.
+ * Set the speechModelEndpointId property: The ID of the deployed custom model in GUID format. The GUID is generated
+ * by Azure Speech Studio, e.g., a259c255-1cdw-4ed7-a693-dd58563b6f6a.
*
* @param speechModelEndpointId the speechModelEndpointId value to set.
* @return the StartTranscriptionRequestInternal object itself.
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StreamingTransportTypeInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StreamingTransportTypeInternal.java
new file mode 100644
index 000000000000..b3d97a0718a9
--- /dev/null
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StreamingTransportTypeInternal.java
@@ -0,0 +1,52 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.communication.callautomation.implementation.models;
+
+import com.azure.core.annotation.Generated;
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Defines the transport type used for streaming. Note that future values may be introduced that are not currently
+ * documented.
+ */
+public final class StreamingTransportTypeInternal extends ExpandableStringEnum {
+ /**
+ * Static value websocket for StreamingTransportTypeInternal.
+ */
+ @Generated
+ public static final StreamingTransportTypeInternal WEBSOCKET = fromString("websocket");
+
+ /**
+ * Creates a new instance of StreamingTransportTypeInternal value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Generated
+ @Deprecated
+ public StreamingTransportTypeInternal() {
+ }
+
+ /**
+ * Creates or finds a StreamingTransportTypeInternal from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding StreamingTransportTypeInternal.
+ */
+ @Generated
+ public static StreamingTransportTypeInternal fromString(String name) {
+ return fromString(name, StreamingTransportTypeInternal.class);
+ }
+
+ /**
+ * Gets known StreamingTransportTypeInternal values.
+ *
+ * @return known StreamingTransportTypeInternal values.
+ */
+ @Generated
+ public static Collection values() {
+ return values(StreamingTransportTypeInternal.class);
+ }
+}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/Summarization.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/Summarization.java
deleted file mode 100644
index 2df1b5ac39b4..000000000000
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/Summarization.java
+++ /dev/null
@@ -1,95 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.communication.callautomation.implementation.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-
-/**
- * The Summarization model.
- */
-@Fluent
-public final class Summarization implements JsonSerializable {
- /*
- * Determine if the summarization should be enabled for the post recording processing.
- */
- @Generated
- private boolean enableSummarization;
-
- /**
- * Creates an instance of Summarization class.
- */
- @Generated
- public Summarization() {
- }
-
- /**
- * Get the enableSummarization property: Determine if the summarization should be enabled for the post recording
- * processing.
- *
- * @return the enableSummarization value.
- */
- @Generated
- public boolean isEnableSummarization() {
- return this.enableSummarization;
- }
-
- /**
- * Set the enableSummarization property: Determine if the summarization should be enabled for the post recording
- * processing.
- *
- * @param enableSummarization the enableSummarization value to set.
- * @return the Summarization object itself.
- */
- @Generated
- public Summarization setEnableSummarization(boolean enableSummarization) {
- this.enableSummarization = enableSummarization;
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Generated
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeBooleanField("enableSummarization", this.enableSummarization);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of Summarization from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of Summarization if the JsonReader was pointing to an instance of it, or null if it was
- * pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the Summarization.
- */
- @Generated
- public static Summarization fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- Summarization deserializedSummarization = new Summarization();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("enableSummarization".equals(fieldName)) {
- deserializedSummarization.enableSummarization = reader.getBoolean();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedSummarization;
- });
- }
-}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TeamsExtensionUserIdentifierModel.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TeamsExtensionUserIdentifierModel.java
deleted file mode 100644
index 7e39e76a691b..000000000000
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TeamsExtensionUserIdentifierModel.java
+++ /dev/null
@@ -1,190 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.communication.callautomation.implementation.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-
-/**
- * A Microsoft Teams Phone user who is using a Communication Services resource to extend their Teams Phone set up.
- */
-@Fluent
-public final class TeamsExtensionUserIdentifierModel implements JsonSerializable {
- /*
- * The Id of the Microsoft Teams Extension user, i.e. the Entra ID object Id of the user.
- */
- @Generated
- private String userId;
-
- /*
- * The tenant Id of the Microsoft Teams Extension user.
- */
- @Generated
- private String tenantId;
-
- /*
- * The Communication Services resource Id.
- */
- @Generated
- private String resourceId;
-
- /*
- * The cloud that the Microsoft Teams Extension user belongs to. By default 'public' if missing.
- */
- @Generated
- private CommunicationCloudEnvironmentModel cloud;
-
- /**
- * Creates an instance of TeamsExtensionUserIdentifierModel class.
- */
- @Generated
- public TeamsExtensionUserIdentifierModel() {
- }
-
- /**
- * Get the userId property: The Id of the Microsoft Teams Extension user, i.e. the Entra ID object Id of the user.
- *
- * @return the userId value.
- */
- @Generated
- public String getUserId() {
- return this.userId;
- }
-
- /**
- * Set the userId property: The Id of the Microsoft Teams Extension user, i.e. the Entra ID object Id of the user.
- *
- * @param userId the userId value to set.
- * @return the TeamsExtensionUserIdentifierModel object itself.
- */
- @Generated
- public TeamsExtensionUserIdentifierModel setUserId(String userId) {
- this.userId = userId;
- return this;
- }
-
- /**
- * Get the tenantId property: The tenant Id of the Microsoft Teams Extension user.
- *
- * @return the tenantId value.
- */
- @Generated
- public String getTenantId() {
- return this.tenantId;
- }
-
- /**
- * Set the tenantId property: The tenant Id of the Microsoft Teams Extension user.
- *
- * @param tenantId the tenantId value to set.
- * @return the TeamsExtensionUserIdentifierModel object itself.
- */
- @Generated
- public TeamsExtensionUserIdentifierModel setTenantId(String tenantId) {
- this.tenantId = tenantId;
- return this;
- }
-
- /**
- * Get the resourceId property: The Communication Services resource Id.
- *
- * @return the resourceId value.
- */
- @Generated
- public String getResourceId() {
- return this.resourceId;
- }
-
- /**
- * Set the resourceId property: The Communication Services resource Id.
- *
- * @param resourceId the resourceId value to set.
- * @return the TeamsExtensionUserIdentifierModel object itself.
- */
- @Generated
- public TeamsExtensionUserIdentifierModel setResourceId(String resourceId) {
- this.resourceId = resourceId;
- return this;
- }
-
- /**
- * Get the cloud property: The cloud that the Microsoft Teams Extension user belongs to. By default 'public' if
- * missing.
- *
- * @return the cloud value.
- */
- @Generated
- public CommunicationCloudEnvironmentModel getCloud() {
- return this.cloud;
- }
-
- /**
- * Set the cloud property: The cloud that the Microsoft Teams Extension user belongs to. By default 'public' if
- * missing.
- *
- * @param cloud the cloud value to set.
- * @return the TeamsExtensionUserIdentifierModel object itself.
- */
- @Generated
- public TeamsExtensionUserIdentifierModel setCloud(CommunicationCloudEnvironmentModel cloud) {
- this.cloud = cloud;
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Generated
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("userId", this.userId);
- jsonWriter.writeStringField("tenantId", this.tenantId);
- jsonWriter.writeStringField("resourceId", this.resourceId);
- jsonWriter.writeStringField("cloud", this.cloud == null ? null : this.cloud.toString());
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of TeamsExtensionUserIdentifierModel from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of TeamsExtensionUserIdentifierModel if the JsonReader was pointing to an instance of it, or
- * null if it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the TeamsExtensionUserIdentifierModel.
- */
- @Generated
- public static TeamsExtensionUserIdentifierModel fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- TeamsExtensionUserIdentifierModel deserializedTeamsExtensionUserIdentifierModel
- = new TeamsExtensionUserIdentifierModel();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("userId".equals(fieldName)) {
- deserializedTeamsExtensionUserIdentifierModel.userId = reader.getString();
- } else if ("tenantId".equals(fieldName)) {
- deserializedTeamsExtensionUserIdentifierModel.tenantId = reader.getString();
- } else if ("resourceId".equals(fieldName)) {
- deserializedTeamsExtensionUserIdentifierModel.resourceId = reader.getString();
- } else if ("cloud".equals(fieldName)) {
- deserializedTeamsExtensionUserIdentifierModel.cloud
- = CommunicationCloudEnvironmentModel.fromString(reader.getString());
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedTeamsExtensionUserIdentifierModel;
- });
- }
-}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TeamsPhoneCallDetails.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TeamsPhoneCallDetails.java
deleted file mode 100644
index 682483cf1ac9..000000000000
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TeamsPhoneCallDetails.java
+++ /dev/null
@@ -1,352 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.communication.callautomation.implementation.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-
-/**
- * The call details which will be sent to the target.
- */
-@Fluent
-public final class TeamsPhoneCallDetails implements JsonSerializable {
- /*
- * Container for details relating to the original caller of the call
- */
- @Generated
- private TeamsPhoneCallerDetails teamsPhoneCallerDetails;
-
- /*
- * Container for details relating to the entity responsible for the creation of these call details
- */
- @Generated
- private TeamsPhoneSourceDetails teamsPhoneSourceDetails;
-
- /*
- * Id to exclusively identify this call session. IVR will use this for their telemetry/reporting.
- */
- @Generated
- private String sessionId;
-
- /*
- * The intent of the call
- */
- @Generated
- private String intent;
-
- /*
- * A very short description (max 48 chars) of the reason for the call. To be displayed in Teams CallNotification
- */
- @Generated
- private String callTopic;
-
- /*
- * A summary of the call thus far. It will be displayed on a side panel in the Teams UI
- */
- @Generated
- private String callContext;
-
- /*
- * Url for fetching the transcript of the call
- */
- @Generated
- private String transcriptUrl;
-
- /*
- * Sentiment of the call thus far
- */
- @Generated
- private String callSentiment;
-
- /*
- * Recommendations for resolving the issue based on the customer’s intent and interaction history
- */
- @Generated
- private String suggestedActions;
-
- /**
- * Creates an instance of TeamsPhoneCallDetails class.
- */
- @Generated
- public TeamsPhoneCallDetails() {
- }
-
- /**
- * Get the teamsPhoneCallerDetails property: Container for details relating to the original caller of the call.
- *
- * @return the teamsPhoneCallerDetails value.
- */
- @Generated
- public TeamsPhoneCallerDetails getTeamsPhoneCallerDetails() {
- return this.teamsPhoneCallerDetails;
- }
-
- /**
- * Set the teamsPhoneCallerDetails property: Container for details relating to the original caller of the call.
- *
- * @param teamsPhoneCallerDetails the teamsPhoneCallerDetails value to set.
- * @return the TeamsPhoneCallDetails object itself.
- */
- @Generated
- public TeamsPhoneCallDetails setTeamsPhoneCallerDetails(TeamsPhoneCallerDetails teamsPhoneCallerDetails) {
- this.teamsPhoneCallerDetails = teamsPhoneCallerDetails;
- return this;
- }
-
- /**
- * Get the teamsPhoneSourceDetails property: Container for details relating to the entity responsible for the
- * creation of these call details.
- *
- * @return the teamsPhoneSourceDetails value.
- */
- @Generated
- public TeamsPhoneSourceDetails getTeamsPhoneSourceDetails() {
- return this.teamsPhoneSourceDetails;
- }
-
- /**
- * Set the teamsPhoneSourceDetails property: Container for details relating to the entity responsible for the
- * creation of these call details.
- *
- * @param teamsPhoneSourceDetails the teamsPhoneSourceDetails value to set.
- * @return the TeamsPhoneCallDetails object itself.
- */
- @Generated
- public TeamsPhoneCallDetails setTeamsPhoneSourceDetails(TeamsPhoneSourceDetails teamsPhoneSourceDetails) {
- this.teamsPhoneSourceDetails = teamsPhoneSourceDetails;
- return this;
- }
-
- /**
- * Get the sessionId property: Id to exclusively identify this call session. IVR will use this for their
- * telemetry/reporting.
- *
- * @return the sessionId value.
- */
- @Generated
- public String getSessionId() {
- return this.sessionId;
- }
-
- /**
- * Set the sessionId property: Id to exclusively identify this call session. IVR will use this for their
- * telemetry/reporting.
- *
- * @param sessionId the sessionId value to set.
- * @return the TeamsPhoneCallDetails object itself.
- */
- @Generated
- public TeamsPhoneCallDetails setSessionId(String sessionId) {
- this.sessionId = sessionId;
- return this;
- }
-
- /**
- * Get the intent property: The intent of the call.
- *
- * @return the intent value.
- */
- @Generated
- public String getIntent() {
- return this.intent;
- }
-
- /**
- * Set the intent property: The intent of the call.
- *
- * @param intent the intent value to set.
- * @return the TeamsPhoneCallDetails object itself.
- */
- @Generated
- public TeamsPhoneCallDetails setIntent(String intent) {
- this.intent = intent;
- return this;
- }
-
- /**
- * Get the callTopic property: A very short description (max 48 chars) of the reason for the call. To be displayed
- * in Teams CallNotification.
- *
- * @return the callTopic value.
- */
- @Generated
- public String getCallTopic() {
- return this.callTopic;
- }
-
- /**
- * Set the callTopic property: A very short description (max 48 chars) of the reason for the call. To be displayed
- * in Teams CallNotification.
- *
- * @param callTopic the callTopic value to set.
- * @return the TeamsPhoneCallDetails object itself.
- */
- @Generated
- public TeamsPhoneCallDetails setCallTopic(String callTopic) {
- this.callTopic = callTopic;
- return this;
- }
-
- /**
- * Get the callContext property: A summary of the call thus far. It will be displayed on a side panel in the Teams
- * UI.
- *
- * @return the callContext value.
- */
- @Generated
- public String getCallContext() {
- return this.callContext;
- }
-
- /**
- * Set the callContext property: A summary of the call thus far. It will be displayed on a side panel in the Teams
- * UI.
- *
- * @param callContext the callContext value to set.
- * @return the TeamsPhoneCallDetails object itself.
- */
- @Generated
- public TeamsPhoneCallDetails setCallContext(String callContext) {
- this.callContext = callContext;
- return this;
- }
-
- /**
- * Get the transcriptUrl property: Url for fetching the transcript of the call.
- *
- * @return the transcriptUrl value.
- */
- @Generated
- public String getTranscriptUrl() {
- return this.transcriptUrl;
- }
-
- /**
- * Set the transcriptUrl property: Url for fetching the transcript of the call.
- *
- * @param transcriptUrl the transcriptUrl value to set.
- * @return the TeamsPhoneCallDetails object itself.
- */
- @Generated
- public TeamsPhoneCallDetails setTranscriptUrl(String transcriptUrl) {
- this.transcriptUrl = transcriptUrl;
- return this;
- }
-
- /**
- * Get the callSentiment property: Sentiment of the call thus far.
- *
- * @return the callSentiment value.
- */
- @Generated
- public String getCallSentiment() {
- return this.callSentiment;
- }
-
- /**
- * Set the callSentiment property: Sentiment of the call thus far.
- *
- * @param callSentiment the callSentiment value to set.
- * @return the TeamsPhoneCallDetails object itself.
- */
- @Generated
- public TeamsPhoneCallDetails setCallSentiment(String callSentiment) {
- this.callSentiment = callSentiment;
- return this;
- }
-
- /**
- * Get the suggestedActions property: Recommendations for resolving the issue based on the customer’s intent and
- * interaction history.
- *
- * @return the suggestedActions value.
- */
- @Generated
- public String getSuggestedActions() {
- return this.suggestedActions;
- }
-
- /**
- * Set the suggestedActions property: Recommendations for resolving the issue based on the customer’s intent and
- * interaction history.
- *
- * @param suggestedActions the suggestedActions value to set.
- * @return the TeamsPhoneCallDetails object itself.
- */
- @Generated
- public TeamsPhoneCallDetails setSuggestedActions(String suggestedActions) {
- this.suggestedActions = suggestedActions;
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Generated
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("teamsPhoneCallerDetails", this.teamsPhoneCallerDetails);
- jsonWriter.writeJsonField("teamsPhoneSourceDetails", this.teamsPhoneSourceDetails);
- jsonWriter.writeStringField("sessionId", this.sessionId);
- jsonWriter.writeStringField("intent", this.intent);
- jsonWriter.writeStringField("callTopic", this.callTopic);
- jsonWriter.writeStringField("callContext", this.callContext);
- jsonWriter.writeStringField("transcriptUrl", this.transcriptUrl);
- jsonWriter.writeStringField("callSentiment", this.callSentiment);
- jsonWriter.writeStringField("suggestedActions", this.suggestedActions);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of TeamsPhoneCallDetails from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of TeamsPhoneCallDetails if the JsonReader was pointing to an instance of it, or null if it
- * was pointing to JSON null.
- * @throws IOException If an error occurs while reading the TeamsPhoneCallDetails.
- */
- @Generated
- public static TeamsPhoneCallDetails fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- TeamsPhoneCallDetails deserializedTeamsPhoneCallDetails = new TeamsPhoneCallDetails();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("teamsPhoneCallerDetails".equals(fieldName)) {
- deserializedTeamsPhoneCallDetails.teamsPhoneCallerDetails
- = TeamsPhoneCallerDetails.fromJson(reader);
- } else if ("teamsPhoneSourceDetails".equals(fieldName)) {
- deserializedTeamsPhoneCallDetails.teamsPhoneSourceDetails
- = TeamsPhoneSourceDetails.fromJson(reader);
- } else if ("sessionId".equals(fieldName)) {
- deserializedTeamsPhoneCallDetails.sessionId = reader.getString();
- } else if ("intent".equals(fieldName)) {
- deserializedTeamsPhoneCallDetails.intent = reader.getString();
- } else if ("callTopic".equals(fieldName)) {
- deserializedTeamsPhoneCallDetails.callTopic = reader.getString();
- } else if ("callContext".equals(fieldName)) {
- deserializedTeamsPhoneCallDetails.callContext = reader.getString();
- } else if ("transcriptUrl".equals(fieldName)) {
- deserializedTeamsPhoneCallDetails.transcriptUrl = reader.getString();
- } else if ("callSentiment".equals(fieldName)) {
- deserializedTeamsPhoneCallDetails.callSentiment = reader.getString();
- } else if ("suggestedActions".equals(fieldName)) {
- deserializedTeamsPhoneCallDetails.suggestedActions = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedTeamsPhoneCallDetails;
- });
- }
-}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TeamsPhoneCallerDetails.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TeamsPhoneCallerDetails.java
deleted file mode 100644
index 68b68e8a1a2c..000000000000
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TeamsPhoneCallerDetails.java
+++ /dev/null
@@ -1,285 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.communication.callautomation.implementation.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-import java.util.Map;
-
-/**
- * Container for details relating to the original caller of the call.
- */
-@Fluent
-public final class TeamsPhoneCallerDetails implements JsonSerializable {
- /*
- * Caller's ID
- */
- @Generated
- private CommunicationIdentifierModel caller;
-
- /*
- * Caller's name
- */
- @Generated
- private String name;
-
- /*
- * Caller's phone number
- */
- @Generated
- private String phoneNumber;
-
- /*
- * Caller's record ID (ex in CRM)
- */
- @Generated
- private String recordId;
-
- /*
- * Caller's screen pop URL
- */
- @Generated
- private String screenPopUrl;
-
- /*
- * Flag indicating whether the caller was authenticated
- */
- @Generated
- private Boolean isAuthenticated;
-
- /*
- * A set of key value pairs (max 10, any additional entries would be ignored) which a bot author wants to pass to
- * the Teams Client for display to the agent
- */
- @Generated
- private Map additionalCallerInformation;
-
- /**
- * Creates an instance of TeamsPhoneCallerDetails class.
- */
- @Generated
- public TeamsPhoneCallerDetails() {
- }
-
- /**
- * Get the caller property: Caller's ID.
- *
- * @return the caller value.
- */
- @Generated
- public CommunicationIdentifierModel getCaller() {
- return this.caller;
- }
-
- /**
- * Set the caller property: Caller's ID.
- *
- * @param caller the caller value to set.
- * @return the TeamsPhoneCallerDetails object itself.
- */
- @Generated
- public TeamsPhoneCallerDetails setCaller(CommunicationIdentifierModel caller) {
- this.caller = caller;
- return this;
- }
-
- /**
- * Get the name property: Caller's name.
- *
- * @return the name value.
- */
- @Generated
- public String getName() {
- return this.name;
- }
-
- /**
- * Set the name property: Caller's name.
- *
- * @param name the name value to set.
- * @return the TeamsPhoneCallerDetails object itself.
- */
- @Generated
- public TeamsPhoneCallerDetails setName(String name) {
- this.name = name;
- return this;
- }
-
- /**
- * Get the phoneNumber property: Caller's phone number.
- *
- * @return the phoneNumber value.
- */
- @Generated
- public String getPhoneNumber() {
- return this.phoneNumber;
- }
-
- /**
- * Set the phoneNumber property: Caller's phone number.
- *
- * @param phoneNumber the phoneNumber value to set.
- * @return the TeamsPhoneCallerDetails object itself.
- */
- @Generated
- public TeamsPhoneCallerDetails setPhoneNumber(String phoneNumber) {
- this.phoneNumber = phoneNumber;
- return this;
- }
-
- /**
- * Get the recordId property: Caller's record ID (ex in CRM).
- *
- * @return the recordId value.
- */
- @Generated
- public String getRecordId() {
- return this.recordId;
- }
-
- /**
- * Set the recordId property: Caller's record ID (ex in CRM).
- *
- * @param recordId the recordId value to set.
- * @return the TeamsPhoneCallerDetails object itself.
- */
- @Generated
- public TeamsPhoneCallerDetails setRecordId(String recordId) {
- this.recordId = recordId;
- return this;
- }
-
- /**
- * Get the screenPopUrl property: Caller's screen pop URL.
- *
- * @return the screenPopUrl value.
- */
- @Generated
- public String getScreenPopUrl() {
- return this.screenPopUrl;
- }
-
- /**
- * Set the screenPopUrl property: Caller's screen pop URL.
- *
- * @param screenPopUrl the screenPopUrl value to set.
- * @return the TeamsPhoneCallerDetails object itself.
- */
- @Generated
- public TeamsPhoneCallerDetails setScreenPopUrl(String screenPopUrl) {
- this.screenPopUrl = screenPopUrl;
- return this;
- }
-
- /**
- * Get the isAuthenticated property: Flag indicating whether the caller was authenticated.
- *
- * @return the isAuthenticated value.
- */
- @Generated
- public Boolean isAuthenticated() {
- return this.isAuthenticated;
- }
-
- /**
- * Set the isAuthenticated property: Flag indicating whether the caller was authenticated.
- *
- * @param isAuthenticated the isAuthenticated value to set.
- * @return the TeamsPhoneCallerDetails object itself.
- */
- @Generated
- public TeamsPhoneCallerDetails setIsAuthenticated(Boolean isAuthenticated) {
- this.isAuthenticated = isAuthenticated;
- return this;
- }
-
- /**
- * Get the additionalCallerInformation property: A set of key value pairs (max 10, any additional entries would be
- * ignored) which a bot author wants to pass to the Teams Client for display to the agent.
- *
- * @return the additionalCallerInformation value.
- */
- @Generated
- public Map getAdditionalCallerInformation() {
- return this.additionalCallerInformation;
- }
-
- /**
- * Set the additionalCallerInformation property: A set of key value pairs (max 10, any additional entries would be
- * ignored) which a bot author wants to pass to the Teams Client for display to the agent.
- *
- * @param additionalCallerInformation the additionalCallerInformation value to set.
- * @return the TeamsPhoneCallerDetails object itself.
- */
- @Generated
- public TeamsPhoneCallerDetails setAdditionalCallerInformation(Map additionalCallerInformation) {
- this.additionalCallerInformation = additionalCallerInformation;
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Generated
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("caller", this.caller);
- jsonWriter.writeStringField("name", this.name);
- jsonWriter.writeStringField("phoneNumber", this.phoneNumber);
- jsonWriter.writeStringField("recordId", this.recordId);
- jsonWriter.writeStringField("screenPopUrl", this.screenPopUrl);
- jsonWriter.writeBooleanField("isAuthenticated", this.isAuthenticated);
- jsonWriter.writeMapField("additionalCallerInformation", this.additionalCallerInformation,
- (writer, element) -> writer.writeString(element));
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of TeamsPhoneCallerDetails from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of TeamsPhoneCallerDetails if the JsonReader was pointing to an instance of it, or null if it
- * was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the TeamsPhoneCallerDetails.
- */
- @Generated
- public static TeamsPhoneCallerDetails fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- TeamsPhoneCallerDetails deserializedTeamsPhoneCallerDetails = new TeamsPhoneCallerDetails();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("caller".equals(fieldName)) {
- deserializedTeamsPhoneCallerDetails.caller = CommunicationIdentifierModel.fromJson(reader);
- } else if ("name".equals(fieldName)) {
- deserializedTeamsPhoneCallerDetails.name = reader.getString();
- } else if ("phoneNumber".equals(fieldName)) {
- deserializedTeamsPhoneCallerDetails.phoneNumber = reader.getString();
- } else if ("recordId".equals(fieldName)) {
- deserializedTeamsPhoneCallerDetails.recordId = reader.getString();
- } else if ("screenPopUrl".equals(fieldName)) {
- deserializedTeamsPhoneCallerDetails.screenPopUrl = reader.getString();
- } else if ("isAuthenticated".equals(fieldName)) {
- deserializedTeamsPhoneCallerDetails.isAuthenticated = reader.getNullable(JsonReader::getBoolean);
- } else if ("additionalCallerInformation".equals(fieldName)) {
- Map additionalCallerInformation = reader.readMap(reader1 -> reader1.getString());
- deserializedTeamsPhoneCallerDetails.additionalCallerInformation = additionalCallerInformation;
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedTeamsPhoneCallerDetails;
- });
- }
-}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TeamsPhoneSourceDetails.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TeamsPhoneSourceDetails.java
deleted file mode 100644
index adb98bda4380..000000000000
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TeamsPhoneSourceDetails.java
+++ /dev/null
@@ -1,194 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.communication.callautomation.implementation.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-import java.util.Map;
-
-/**
- * Container for details relating to the entity responsible for the creation of these call details.
- */
-@Fluent
-public final class TeamsPhoneSourceDetails implements JsonSerializable {
- /*
- * ID of the source entity passing along the call details (ex. Application Instance ID of - CQ/AA)
- */
- @Generated
- private CommunicationIdentifierModel source;
-
- /*
- * Language of the source entity passing along the call details, passed in the ISO-639 standard
- */
- @Generated
- private String language;
-
- /*
- * Status of the source entity passing along the call details
- */
- @Generated
- private String status;
-
- /*
- * Intended targets of the source entity passing along the call details
- */
- @Generated
- private Map intendedTargets;
-
- /**
- * Creates an instance of TeamsPhoneSourceDetails class.
- */
- @Generated
- public TeamsPhoneSourceDetails() {
- }
-
- /**
- * Get the source property: ID of the source entity passing along the call details (ex. Application Instance ID of -
- * CQ/AA).
- *
- * @return the source value.
- */
- @Generated
- public CommunicationIdentifierModel getSource() {
- return this.source;
- }
-
- /**
- * Set the source property: ID of the source entity passing along the call details (ex. Application Instance ID of -
- * CQ/AA).
- *
- * @param source the source value to set.
- * @return the TeamsPhoneSourceDetails object itself.
- */
- @Generated
- public TeamsPhoneSourceDetails setSource(CommunicationIdentifierModel source) {
- this.source = source;
- return this;
- }
-
- /**
- * Get the language property: Language of the source entity passing along the call details, passed in the ISO-639
- * standard.
- *
- * @return the language value.
- */
- @Generated
- public String getLanguage() {
- return this.language;
- }
-
- /**
- * Set the language property: Language of the source entity passing along the call details, passed in the ISO-639
- * standard.
- *
- * @param language the language value to set.
- * @return the TeamsPhoneSourceDetails object itself.
- */
- @Generated
- public TeamsPhoneSourceDetails setLanguage(String language) {
- this.language = language;
- return this;
- }
-
- /**
- * Get the status property: Status of the source entity passing along the call details.
- *
- * @return the status value.
- */
- @Generated
- public String getStatus() {
- return this.status;
- }
-
- /**
- * Set the status property: Status of the source entity passing along the call details.
- *
- * @param status the status value to set.
- * @return the TeamsPhoneSourceDetails object itself.
- */
- @Generated
- public TeamsPhoneSourceDetails setStatus(String status) {
- this.status = status;
- return this;
- }
-
- /**
- * Get the intendedTargets property: Intended targets of the source entity passing along the call details.
- *
- * @return the intendedTargets value.
- */
- @Generated
- public Map getIntendedTargets() {
- return this.intendedTargets;
- }
-
- /**
- * Set the intendedTargets property: Intended targets of the source entity passing along the call details.
- *
- * @param intendedTargets the intendedTargets value to set.
- * @return the TeamsPhoneSourceDetails object itself.
- */
- @Generated
- public TeamsPhoneSourceDetails setIntendedTargets(Map intendedTargets) {
- this.intendedTargets = intendedTargets;
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Generated
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("source", this.source);
- jsonWriter.writeStringField("language", this.language);
- jsonWriter.writeStringField("status", this.status);
- jsonWriter.writeMapField("intendedTargets", this.intendedTargets,
- (writer, element) -> writer.writeJson(element));
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of TeamsPhoneSourceDetails from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of TeamsPhoneSourceDetails if the JsonReader was pointing to an instance of it, or null if it
- * was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the TeamsPhoneSourceDetails.
- */
- @Generated
- public static TeamsPhoneSourceDetails fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- TeamsPhoneSourceDetails deserializedTeamsPhoneSourceDetails = new TeamsPhoneSourceDetails();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("source".equals(fieldName)) {
- deserializedTeamsPhoneSourceDetails.source = CommunicationIdentifierModel.fromJson(reader);
- } else if ("language".equals(fieldName)) {
- deserializedTeamsPhoneSourceDetails.language = reader.getString();
- } else if ("status".equals(fieldName)) {
- deserializedTeamsPhoneSourceDetails.status = reader.getString();
- } else if ("intendedTargets".equals(fieldName)) {
- Map intendedTargets
- = reader.readMap(reader1 -> CommunicationIdentifierModel.fromJson(reader1));
- deserializedTeamsPhoneSourceDetails.intendedTargets = intendedTargets;
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedTeamsPhoneSourceDetails;
- });
- }
-}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/Transcription.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/Transcription.java
deleted file mode 100644
index 57edb81ea4d5..000000000000
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/Transcription.java
+++ /dev/null
@@ -1,95 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.communication.callautomation.implementation.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-
-/**
- * The Transcription model.
- */
-@Fluent
-public final class Transcription implements JsonSerializable {
- /*
- * Determine if the Transcription should be enabled for the post recording processing.
- */
- @Generated
- private boolean enableTranscription;
-
- /**
- * Creates an instance of Transcription class.
- */
- @Generated
- public Transcription() {
- }
-
- /**
- * Get the enableTranscription property: Determine if the Transcription should be enabled for the post recording
- * processing.
- *
- * @return the enableTranscription value.
- */
- @Generated
- public boolean isEnableTranscription() {
- return this.enableTranscription;
- }
-
- /**
- * Set the enableTranscription property: Determine if the Transcription should be enabled for the post recording
- * processing.
- *
- * @param enableTranscription the enableTranscription value to set.
- * @return the Transcription object itself.
- */
- @Generated
- public Transcription setEnableTranscription(boolean enableTranscription) {
- this.enableTranscription = enableTranscription;
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Generated
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeBooleanField("enableTranscription", this.enableTranscription);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of Transcription from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of Transcription if the JsonReader was pointing to an instance of it, or null if it was
- * pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the Transcription.
- */
- @Generated
- public static Transcription fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- Transcription deserializedTranscription = new Transcription();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("enableTranscription".equals(fieldName)) {
- deserializedTranscription.enableTranscription = reader.getBoolean();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedTranscription;
- });
- }
-}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionOptions.java
deleted file mode 100644
index 0cce79e4cc9d..000000000000
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionOptions.java
+++ /dev/null
@@ -1,230 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.communication.callautomation.implementation.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-
-/**
- * Configuration of live transcription.
- */
-@Fluent
-public final class TranscriptionOptions implements JsonSerializable {
- /*
- * Transport URL for live transcription
- */
- private String transportUrl;
-
- /*
- * The type of transport to be used for live transcription, eg. Websocket
- */
- private TranscriptionTransportTypeInternal transportType;
-
- /*
- * Defines the locale for the data e.g en-CA, en-AU
- */
- private String locale;
-
- /*
- * Endpoint where the custom model was deployed.
- */
- private String speechRecognitionModelEndpointId;
-
- /*
- * Determines if the transcription should be started immediately after call is answered or not.
- */
- private boolean startTranscription;
-
- /*
- * Enables intermediate results for the transcribed speech.
- */
- private Boolean enableIntermediateResults;
-
- /**
- * Creates an instance of TranscriptionOptions class.
- */
- public TranscriptionOptions() {
- }
-
- /**
- * Get the transportUrl property: Transport URL for live transcription.
- *
- * @return the transportUrl value.
- */
- public String getTransportUrl() {
- return this.transportUrl;
- }
-
- /**
- * Set the transportUrl property: Transport URL for live transcription.
- *
- * @param transportUrl the transportUrl value to set.
- * @return the TranscriptionOptions object itself.
- */
- public TranscriptionOptions setTransportUrl(String transportUrl) {
- this.transportUrl = transportUrl;
- return this;
- }
-
- /**
- * Get the transportType property: The type of transport to be used for live transcription, eg. Websocket.
- *
- * @return the transportType value.
- */
- public TranscriptionTransportTypeInternal getTransportType() {
- return this.transportType;
- }
-
- /**
- * Set the transportType property: The type of transport to be used for live transcription, eg. Websocket.
- *
- * @param transportType the transportType value to set.
- * @return the TranscriptionOptions object itself.
- */
- public TranscriptionOptions setTransportType(TranscriptionTransportTypeInternal transportType) {
- this.transportType = transportType;
- return this;
- }
-
- /**
- * Get the locale property: Defines the locale for the data e.g en-CA, en-AU.
- *
- * @return the locale value.
- */
- public String getLocale() {
- return this.locale;
- }
-
- /**
- * Set the locale property: Defines the locale for the data e.g en-CA, en-AU.
- *
- * @param locale the locale value to set.
- * @return the TranscriptionOptions object itself.
- */
- public TranscriptionOptions setLocale(String locale) {
- this.locale = locale;
- return this;
- }
-
- /**
- * Get the speechRecognitionModelEndpointId property: Endpoint where the custom model was deployed.
- *
- * @return the speechRecognitionModelEndpointId value.
- */
- public String getSpeechRecognitionModelEndpointId() {
- return this.speechRecognitionModelEndpointId;
- }
-
- /**
- * Set the speechRecognitionModelEndpointId property: Endpoint where the custom model was deployed.
- *
- * @param speechRecognitionModelEndpointId the speechRecognitionModelEndpointId value to set.
- * @return the TranscriptionOptions object itself.
- */
- public TranscriptionOptions setSpeechRecognitionModelEndpointId(String speechRecognitionModelEndpointId) {
- this.speechRecognitionModelEndpointId = speechRecognitionModelEndpointId;
- return this;
- }
-
- /**
- * Get the startTranscription property: Determines if the transcription should be started immediately after call is
- * answered or not.
- *
- * @return the startTranscription value.
- */
- public boolean isStartTranscription() {
- return this.startTranscription;
- }
-
- /**
- * Set the startTranscription property: Determines if the transcription should be started immediately after call is
- * answered or not.
- *
- * @param startTranscription the startTranscription value to set.
- * @return the TranscriptionOptions object itself.
- */
- public TranscriptionOptions setStartTranscription(boolean startTranscription) {
- this.startTranscription = startTranscription;
- return this;
- }
-
- /**
- * Get the enableIntermediateResults property: Enables intermediate results for the transcribed speech.
- *
- * @return the enableIntermediateResults value.
- */
- public Boolean isEnableIntermediateResults() {
- return this.enableIntermediateResults;
- }
-
- /**
- * Set the enableIntermediateResults property: Enables intermediate results for the transcribed speech.
- *
- * @param enableIntermediateResults the enableIntermediateResults value to set.
- * @return the TranscriptionOptions object itself.
- */
- public TranscriptionOptions setEnableIntermediateResults(Boolean enableIntermediateResults) {
- this.enableIntermediateResults = enableIntermediateResults;
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("transportUrl", this.transportUrl);
- jsonWriter.writeStringField("transportType", this.transportType == null ? null : this.transportType.toString());
- jsonWriter.writeStringField("locale", this.locale);
- jsonWriter.writeBooleanField("startTranscription", this.startTranscription);
- jsonWriter.writeStringField("speechRecognitionModelEndpointId", this.speechRecognitionModelEndpointId);
- jsonWriter.writeBooleanField("enableIntermediateResults", this.enableIntermediateResults);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of TranscriptionOptions from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of TranscriptionOptions if the JsonReader was pointing to an instance of it, or null if it
- * was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the TranscriptionOptions.
- */
- public static TranscriptionOptions fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- TranscriptionOptions deserializedTranscriptionOptions = new TranscriptionOptions();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("transportUrl".equals(fieldName)) {
- deserializedTranscriptionOptions.transportUrl = reader.getString();
- } else if ("transportType".equals(fieldName)) {
- deserializedTranscriptionOptions.transportType
- = TranscriptionTransportTypeInternal.fromString(reader.getString());
- } else if ("locale".equals(fieldName)) {
- deserializedTranscriptionOptions.locale = reader.getString();
- } else if ("startTranscription".equals(fieldName)) {
- deserializedTranscriptionOptions.startTranscription = reader.getBoolean();
- } else if ("speechRecognitionModelEndpointId".equals(fieldName)) {
- deserializedTranscriptionOptions.speechRecognitionModelEndpointId = reader.getString();
- } else if ("enableIntermediateResults".equals(fieldName)) {
- deserializedTranscriptionOptions.enableIntermediateResults
- = reader.getNullable(JsonReader::getBoolean);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedTranscriptionOptions;
- });
- }
-}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionOptionsInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionOptionsInternal.java
index 15032c8aaee6..91f544bbfa78 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionOptionsInternal.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionOptionsInternal.java
@@ -13,46 +13,24 @@
import java.io.IOException;
/**
- * Configuration of live transcription.
+ * Options for live transcription.
*/
@Fluent
-public final class TranscriptionOptionsInternal implements JsonSerializable {
+public class TranscriptionOptionsInternal implements JsonSerializable {
/*
- * Transport URL for live transcription
+ * Defines the transport type used for streaming. Note that future values may be introduced that are not currently
+ * documented.
*/
@Generated
- private String transportUrl;
+ private StreamingTransportTypeInternal transportType
+ = StreamingTransportTypeInternal.fromString("TranscriptionOptionsInternal");
/*
- * The type of transport to be used for live transcription, eg. Websocket
- */
- @Generated
- private TranscriptionTransportTypeInternal transportType;
-
- /*
- * Defines the locale for the data e.g en-CA, en-AU
+ * Specifies the Locale used for transcription, e.g., en-CA or en-AU.
*/
@Generated
private String locale;
- /*
- * Endpoint where the custom model was deployed.
- */
- @Generated
- private String speechModelEndpointId;
-
- /*
- * Determines if the transcription should be started immediately after call is answered or not.
- */
- @Generated
- private boolean startTranscription;
-
- /*
- * Enables intermediate results for the transcribed speech.
- */
- @Generated
- private Boolean enableIntermediateResults;
-
/**
* Creates an instance of TranscriptionOptionsInternal class.
*/
@@ -61,51 +39,18 @@ public TranscriptionOptionsInternal() {
}
/**
- * Get the transportUrl property: Transport URL for live transcription.
- *
- * @return the transportUrl value.
- */
- @Generated
- public String getTransportUrl() {
- return this.transportUrl;
- }
-
- /**
- * Set the transportUrl property: Transport URL for live transcription.
- *
- * @param transportUrl the transportUrl value to set.
- * @return the TranscriptionOptionsInternal object itself.
- */
- @Generated
- public TranscriptionOptionsInternal setTransportUrl(String transportUrl) {
- this.transportUrl = transportUrl;
- return this;
- }
-
- /**
- * Get the transportType property: The type of transport to be used for live transcription, eg. Websocket.
+ * Get the transportType property: Defines the transport type used for streaming. Note that future values may be
+ * introduced that are not currently documented.
*
* @return the transportType value.
*/
@Generated
- public TranscriptionTransportTypeInternal getTransportType() {
+ public StreamingTransportTypeInternal getTransportType() {
return this.transportType;
}
/**
- * Set the transportType property: The type of transport to be used for live transcription, eg. Websocket.
- *
- * @param transportType the transportType value to set.
- * @return the TranscriptionOptionsInternal object itself.
- */
- @Generated
- public TranscriptionOptionsInternal setTransportType(TranscriptionTransportTypeInternal transportType) {
- this.transportType = transportType;
- return this;
- }
-
- /**
- * Get the locale property: Defines the locale for the data e.g en-CA, en-AU.
+ * Get the locale property: Specifies the Locale used for transcription, e.g., en-CA or en-AU.
*
* @return the locale value.
*/
@@ -115,7 +60,7 @@ public String getLocale() {
}
/**
- * Set the locale property: Defines the locale for the data e.g en-CA, en-AU.
+ * Set the locale property: Specifies the Locale used for transcription, e.g., en-CA or en-AU.
*
* @param locale the locale value to set.
* @return the TranscriptionOptionsInternal object itself.
@@ -126,74 +71,6 @@ public TranscriptionOptionsInternal setLocale(String locale) {
return this;
}
- /**
- * Get the speechModelEndpointId property: Endpoint where the custom model was deployed.
- *
- * @return the speechModelEndpointId value.
- */
- @Generated
- public String getSpeechModelEndpointId() {
- return this.speechModelEndpointId;
- }
-
- /**
- * Set the speechModelEndpointId property: Endpoint where the custom model was deployed.
- *
- * @param speechModelEndpointId the speechModelEndpointId value to set.
- * @return the TranscriptionOptionsInternal object itself.
- */
- @Generated
- public TranscriptionOptionsInternal setSpeechModelEndpointId(String speechModelEndpointId) {
- this.speechModelEndpointId = speechModelEndpointId;
- return this;
- }
-
- /**
- * Get the startTranscription property: Determines if the transcription should be started immediately after call is
- * answered or not.
- *
- * @return the startTranscription value.
- */
- @Generated
- public boolean isStartTranscription() {
- return this.startTranscription;
- }
-
- /**
- * Set the startTranscription property: Determines if the transcription should be started immediately after call is
- * answered or not.
- *
- * @param startTranscription the startTranscription value to set.
- * @return the TranscriptionOptionsInternal object itself.
- */
- @Generated
- public TranscriptionOptionsInternal setStartTranscription(boolean startTranscription) {
- this.startTranscription = startTranscription;
- return this;
- }
-
- /**
- * Get the enableIntermediateResults property: Enables intermediate results for the transcribed speech.
- *
- * @return the enableIntermediateResults value.
- */
- @Generated
- public Boolean isEnableIntermediateResults() {
- return this.enableIntermediateResults;
- }
-
- /**
- * Set the enableIntermediateResults property: Enables intermediate results for the transcribed speech.
- *
- * @param enableIntermediateResults the enableIntermediateResults value to set.
- * @return the TranscriptionOptionsInternal object itself.
- */
- @Generated
- public TranscriptionOptionsInternal setEnableIntermediateResults(Boolean enableIntermediateResults) {
- this.enableIntermediateResults = enableIntermediateResults;
- return this;
- }
-
/**
* {@inheritDoc}
*/
@@ -201,12 +78,8 @@ public TranscriptionOptionsInternal setEnableIntermediateResults(Boolean enableI
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeStringField("transportUrl", this.transportUrl);
- jsonWriter.writeStringField("transportType", this.transportType == null ? null : this.transportType.toString());
jsonWriter.writeStringField("locale", this.locale);
- jsonWriter.writeBooleanField("startTranscription", this.startTranscription);
- jsonWriter.writeStringField("speechModelEndpointId", this.speechModelEndpointId);
- jsonWriter.writeBooleanField("enableIntermediateResults", this.enableIntermediateResults);
+ jsonWriter.writeStringField("transportType", this.transportType == null ? null : this.transportType.toString());
return jsonWriter.writeEndObject();
}
@@ -221,26 +94,43 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
*/
@Generated
public static TranscriptionOptionsInternal fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ String discriminatorValue = null;
+ try (JsonReader readerToUse = reader.bufferObject()) {
+ readerToUse.nextToken(); // Prepare for reading
+ while (readerToUse.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = readerToUse.getFieldName();
+ readerToUse.nextToken();
+ if ("transportType".equals(fieldName)) {
+ discriminatorValue = readerToUse.getString();
+ break;
+ } else {
+ readerToUse.skipChildren();
+ }
+ }
+ // Use the discriminator value to determine which subtype should be deserialized.
+ if ("websocket".equals(discriminatorValue)) {
+ return WebSocketTranscriptionOptionsInternal.fromJson(readerToUse.reset());
+ } else {
+ return fromJsonKnownDiscriminator(readerToUse.reset());
+ }
+ }
+ });
+ }
+
+ @Generated
+ static TranscriptionOptionsInternal fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
TranscriptionOptionsInternal deserializedTranscriptionOptionsInternal = new TranscriptionOptionsInternal();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
- if ("transportUrl".equals(fieldName)) {
- deserializedTranscriptionOptionsInternal.transportUrl = reader.getString();
+ if ("locale".equals(fieldName)) {
+ deserializedTranscriptionOptionsInternal.locale = reader.getString();
} else if ("transportType".equals(fieldName)) {
deserializedTranscriptionOptionsInternal.transportType
- = TranscriptionTransportTypeInternal.fromString(reader.getString());
- } else if ("locale".equals(fieldName)) {
- deserializedTranscriptionOptionsInternal.locale = reader.getString();
- } else if ("startTranscription".equals(fieldName)) {
- deserializedTranscriptionOptionsInternal.startTranscription = reader.getBoolean();
- } else if ("speechModelEndpointId".equals(fieldName)) {
- deserializedTranscriptionOptionsInternal.speechModelEndpointId = reader.getString();
- } else if ("enableIntermediateResults".equals(fieldName)) {
- deserializedTranscriptionOptionsInternal.enableIntermediateResults
- = reader.getNullable(JsonReader::getBoolean);
+ = StreamingTransportTypeInternal.fromString(reader.getString());
} else {
reader.skipChildren();
}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionSubscriptionInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionSubscriptionInternal.java
index b3643d43b8ae..01cb5093fa45 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionSubscriptionInternal.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionSubscriptionInternal.java
@@ -36,6 +36,12 @@ public final class TranscriptionSubscriptionInternal implements JsonSerializable
@Generated
private List subscribedResultTypes;
+ /*
+ * Specifies the locale used for transcription, e.g., en-CA or en-AU.
+ */
+ @Generated
+ private String locale;
+
/**
* Creates an instance of TranscriptionSubscriptionInternal class.
*/
@@ -110,6 +116,28 @@ public List getSubscribedResultTypes() {
return this;
}
+ /**
+ * Get the locale property: Specifies the locale used for transcription, e.g., en-CA or en-AU.
+ *
+ * @return the locale value.
+ */
+ @Generated
+ public String getLocale() {
+ return this.locale;
+ }
+
+ /**
+ * Set the locale property: Specifies the locale used for transcription, e.g., en-CA or en-AU.
+ *
+ * @param locale the locale value to set.
+ * @return the TranscriptionSubscriptionInternal object itself.
+ */
+ @Generated
+ public TranscriptionSubscriptionInternal setLocale(String locale) {
+ this.locale = locale;
+ return this;
+ }
+
/**
* {@inheritDoc}
*/
@@ -121,6 +149,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString());
jsonWriter.writeArrayField("subscribedResultTypes", this.subscribedResultTypes,
(writer, element) -> writer.writeString(element == null ? null : element.toString()));
+ jsonWriter.writeStringField("locale", this.locale);
return jsonWriter.writeEndObject();
}
@@ -150,6 +179,8 @@ public static TranscriptionSubscriptionInternal fromJson(JsonReader jsonReader)
List subscribedResultTypes
= reader.readArray(reader1 -> TranscriptionResultTypeInternal.fromString(reader1.getString()));
deserializedTranscriptionSubscriptionInternal.subscribedResultTypes = subscribedResultTypes;
+ } else if ("locale".equals(fieldName)) {
+ deserializedTranscriptionSubscriptionInternal.locale = reader.getString();
} else {
reader.skipChildren();
}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionTransportTypeInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionTransportTypeInternal.java
index 879c05b8460c..ec5eb7f3e9a3 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionTransportTypeInternal.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionTransportTypeInternal.java
@@ -4,7 +4,6 @@
package com.azure.communication.callautomation.implementation.models;
-import com.azure.core.annotation.Generated;
import com.azure.core.util.ExpandableStringEnum;
import java.util.Collection;
@@ -15,7 +14,6 @@ public final class TranscriptionTransportTypeInternal extends ExpandableStringEn
/**
* Static value websocket for TranscriptionTransportTypeInternal.
*/
- @Generated
public static final TranscriptionTransportTypeInternal WEBSOCKET = fromString("websocket");
/**
@@ -23,7 +21,6 @@ public final class TranscriptionTransportTypeInternal extends ExpandableStringEn
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
- @Generated
@Deprecated
public TranscriptionTransportTypeInternal() {
}
@@ -34,7 +31,6 @@ public TranscriptionTransportTypeInternal() {
* @param name a name to look for.
* @return the corresponding TranscriptionTransportTypeInternal.
*/
- @Generated
public static TranscriptionTransportTypeInternal fromString(String name) {
return fromString(name, TranscriptionTransportTypeInternal.class);
}
@@ -44,7 +40,6 @@ public static TranscriptionTransportTypeInternal fromString(String name) {
*
* @return known TranscriptionTransportTypeInternal values.
*/
- @Generated
public static Collection values() {
return values(TranscriptionTransportTypeInternal.class);
}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/UnholdRequest.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/UnholdRequest.java
index 4b47d23c8fbb..c9c6a6a72043 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/UnholdRequest.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/UnholdRequest.java
@@ -30,6 +30,13 @@ public final class UnholdRequest implements JsonSerializable {
@Generated
private String operationContext;
+ /*
+ * Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation.
+ * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.
+ */
+ @Generated
+ private String operationCallbackUri;
+
/**
* Creates an instance of UnholdRequest class.
*/
@@ -85,6 +92,32 @@ public UnholdRequest setOperationContext(String operationContext) {
return this;
}
+ /**
+ * Get the operationCallbackUri property: Set a callback URI that overrides the default callback URI set by
+ * CreateCall/AnswerCall for this operation.
+ * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.
+ *
+ * @return the operationCallbackUri value.
+ */
+ @Generated
+ public String getOperationCallbackUri() {
+ return this.operationCallbackUri;
+ }
+
+ /**
+ * Set the operationCallbackUri property: Set a callback URI that overrides the default callback URI set by
+ * CreateCall/AnswerCall for this operation.
+ * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.
+ *
+ * @param operationCallbackUri the operationCallbackUri value to set.
+ * @return the UnholdRequest object itself.
+ */
+ @Generated
+ public UnholdRequest setOperationCallbackUri(String operationCallbackUri) {
+ this.operationCallbackUri = operationCallbackUri;
+ return this;
+ }
+
/**
* {@inheritDoc}
*/
@@ -94,6 +127,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("targetParticipant", this.targetParticipant);
jsonWriter.writeStringField("operationContext", this.operationContext);
+ jsonWriter.writeStringField("operationCallbackUri", this.operationCallbackUri);
return jsonWriter.writeEndObject();
}
@@ -118,6 +152,8 @@ public static UnholdRequest fromJson(JsonReader jsonReader) throws IOException {
deserializedUnholdRequest.targetParticipant = CommunicationIdentifierModel.fromJson(reader);
} else if ("operationContext".equals(fieldName)) {
deserializedUnholdRequest.operationContext = reader.getString();
+ } else if ("operationCallbackUri".equals(fieldName)) {
+ deserializedUnholdRequest.operationCallbackUri = reader.getString();
} else {
reader.skipChildren();
}
diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/UnmuteParticipantsRequestInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/UnmuteParticipantsRequestInternal.java
index 850f79d3a6a4..27f9ad4068df 100644
--- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/UnmuteParticipantsRequestInternal.java
+++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/UnmuteParticipantsRequestInternal.java
@@ -5,7 +5,6 @@
package com.azure.communication.callautomation.implementation.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.Generated;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -22,19 +21,16 @@ public final class UnmuteParticipantsRequestInternal implements JsonSerializable
* Participants to be unmuted from the call.
* Only ACS Users are supported.
*/
- @Generated
private List targetParticipants;
/*
* Used by customers when calling mid-call actions to correlate the request to the response event.
*/
- @Generated
private String operationContext;
/**
* Creates an instance of UnmuteParticipantsRequestInternal class.
*/
- @Generated
public UnmuteParticipantsRequestInternal() {
}
@@ -44,7 +40,6 @@ public UnmuteParticipantsRequestInternal() {
*
* @return the targetParticipants value.
*/
- @Generated
public List getTargetParticipants() {
return this.targetParticipants;
}
@@ -56,7 +51,6 @@ public List