@microsoft/msgraph-sdk
Version:
Microsoft Graph JavaScript client library
887 lines • 77.8 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createCommunicationsIdentitySetFromDiscriminatorValue, createIdentityFromDiscriminatorValue, createIdentitySetFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, deserializeIntoEntity, deserializeIntoIdentity, serializeBaseCollectionPaginationCountResponse, serializeCommunicationsIdentitySet, serializeEntity, serializeIdentity, serializeIdentitySet } from '../index.js';
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {AdministrativeUnitInfo}
*/
// @ts-ignore
export function createAdministrativeUnitInfoFromDiscriminatorValue(parseNode) {
return deserializeIntoAdministrativeUnitInfo;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {CallRecordCollectionResponse}
*/
// @ts-ignore
export function createCallRecordCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoCallRecordCollectionResponse;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {CallRecord}
*/
// @ts-ignore
export function createCallRecordFromDiscriminatorValue(parseNode) {
return deserializeIntoCallRecord;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {ClientUserAgent}
*/
// @ts-ignore
export function createClientUserAgentFromDiscriminatorValue(parseNode) {
return deserializeIntoClientUserAgent;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {DeviceInfo}
*/
// @ts-ignore
export function createDeviceInfoFromDiscriminatorValue(parseNode) {
return deserializeIntoDeviceInfo;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {DirectRoutingLogRow}
*/
// @ts-ignore
export function createDirectRoutingLogRowFromDiscriminatorValue(parseNode) {
return deserializeIntoDirectRoutingLogRow;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {Endpoint}
*/
// @ts-ignore
export function createEndpointFromDiscriminatorValue(parseNode) {
if (!parseNode)
throw new Error("parseNode cannot be undefined");
const mappingValueNode = parseNode === null || parseNode === void 0 ? void 0 : parseNode.getChildNode("@odata.type");
if (mappingValueNode) {
const mappingValue = mappingValueNode.getStringValue();
if (mappingValue) {
switch (mappingValue) {
case "#microsoft.graph.callRecords.participantEndpoint":
return deserializeIntoParticipantEndpoint;
case "#microsoft.graph.callRecords.serviceEndpoint":
return deserializeIntoServiceEndpoint;
}
}
}
return deserializeIntoEndpoint;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {FailureInfo}
*/
// @ts-ignore
export function createFailureInfoFromDiscriminatorValue(parseNode) {
return deserializeIntoFailureInfo;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {FeedbackTokenSet}
*/
// @ts-ignore
export function createFeedbackTokenSetFromDiscriminatorValue(parseNode) {
return deserializeIntoFeedbackTokenSet;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {Media}
*/
// @ts-ignore
export function createMediaFromDiscriminatorValue(parseNode) {
return deserializeIntoMedia;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {MediaStream}
*/
// @ts-ignore
export function createMediaStreamFromDiscriminatorValue(parseNode) {
return deserializeIntoMediaStream;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {NetworkInfo}
*/
// @ts-ignore
export function createNetworkInfoFromDiscriminatorValue(parseNode) {
return deserializeIntoNetworkInfo;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {Organizer}
*/
// @ts-ignore
export function createOrganizerFromDiscriminatorValue(parseNode) {
return deserializeIntoOrganizer;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {ParticipantBase}
*/
// @ts-ignore
export function createParticipantBaseFromDiscriminatorValue(parseNode) {
if (!parseNode)
throw new Error("parseNode cannot be undefined");
const mappingValueNode = parseNode === null || parseNode === void 0 ? void 0 : parseNode.getChildNode("@odata.type");
if (mappingValueNode) {
const mappingValue = mappingValueNode.getStringValue();
if (mappingValue) {
switch (mappingValue) {
case "#microsoft.graph.callRecords.organizer":
return deserializeIntoOrganizer;
case "#microsoft.graph.callRecords.participant":
return deserializeIntoParticipant;
}
}
}
return deserializeIntoParticipantBase;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {ParticipantCollectionResponse}
*/
// @ts-ignore
export function createParticipantCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoParticipantCollectionResponse;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {ParticipantEndpoint}
*/
// @ts-ignore
export function createParticipantEndpointFromDiscriminatorValue(parseNode) {
return deserializeIntoParticipantEndpoint;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {Participant}
*/
// @ts-ignore
export function createParticipantFromDiscriminatorValue(parseNode) {
return deserializeIntoParticipant;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {PstnCallLogRow}
*/
// @ts-ignore
export function createPstnCallLogRowFromDiscriminatorValue(parseNode) {
return deserializeIntoPstnCallLogRow;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {SegmentCollectionResponse}
*/
// @ts-ignore
export function createSegmentCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoSegmentCollectionResponse;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {Segment}
*/
// @ts-ignore
export function createSegmentFromDiscriminatorValue(parseNode) {
return deserializeIntoSegment;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {ServiceEndpoint}
*/
// @ts-ignore
export function createServiceEndpointFromDiscriminatorValue(parseNode) {
return deserializeIntoServiceEndpoint;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {ServiceUserAgent}
*/
// @ts-ignore
export function createServiceUserAgentFromDiscriminatorValue(parseNode) {
return deserializeIntoServiceUserAgent;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {SessionCollectionResponse}
*/
// @ts-ignore
export function createSessionCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoSessionCollectionResponse;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {Session}
*/
// @ts-ignore
export function createSessionFromDiscriminatorValue(parseNode) {
return deserializeIntoSession;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {TraceRouteHop}
*/
// @ts-ignore
export function createTraceRouteHopFromDiscriminatorValue(parseNode) {
return deserializeIntoTraceRouteHop;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {UserAgent}
*/
// @ts-ignore
export function createUserAgentFromDiscriminatorValue(parseNode) {
if (!parseNode)
throw new Error("parseNode cannot be undefined");
const mappingValueNode = parseNode === null || parseNode === void 0 ? void 0 : parseNode.getChildNode("@odata.type");
if (mappingValueNode) {
const mappingValue = mappingValueNode.getStringValue();
if (mappingValue) {
switch (mappingValue) {
case "#microsoft.graph.callRecords.clientUserAgent":
return deserializeIntoClientUserAgent;
case "#microsoft.graph.callRecords.serviceUserAgent":
return deserializeIntoServiceUserAgent;
}
}
}
return deserializeIntoUserAgent;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {UserFeedback}
*/
// @ts-ignore
export function createUserFeedbackFromDiscriminatorValue(parseNode) {
return deserializeIntoUserFeedback;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {UserIdentity}
*/
// @ts-ignore
export function createUserIdentityFromDiscriminatorValue(parseNode) {
return deserializeIntoUserIdentity;
}
/**
* The deserialization information for the current model
* @param AdministrativeUnitInfo The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoAdministrativeUnitInfo(administrativeUnitInfo = {}) {
return {
"backingStoreEnabled": n => { administrativeUnitInfo.backingStoreEnabled = true; },
"id": n => { administrativeUnitInfo.id = n.getStringValue(); },
"@odata.type": n => { administrativeUnitInfo.odataType = n.getStringValue(); },
};
}
/**
* The deserialization information for the current model
* @param CallRecord The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoCallRecord(callRecord = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(callRecord)), { "endDateTime": n => { callRecord.endDateTime = n.getDateValue(); }, "joinWebUrl": n => { callRecord.joinWebUrl = n.getStringValue(); }, "lastModifiedDateTime": n => { callRecord.lastModifiedDateTime = n.getDateValue(); }, "modalities": n => { callRecord.modalities = n.getCollectionOfEnumValues(ModalityObject); }, "organizer": n => { callRecord.organizer = n.getObjectValue(createIdentitySetFromDiscriminatorValue); }, "organizer_v2": n => { callRecord.organizerV2 = n.getObjectValue(createOrganizerFromDiscriminatorValue); }, "participants": n => { callRecord.participants = n.getCollectionOfObjectValues(createIdentitySetFromDiscriminatorValue); }, "participants_v2": n => { callRecord.participantsV2 = n.getCollectionOfObjectValues(createParticipantFromDiscriminatorValue); }, "sessions": n => { callRecord.sessions = n.getCollectionOfObjectValues(createSessionFromDiscriminatorValue); }, "startDateTime": n => { callRecord.startDateTime = n.getDateValue(); }, "type": n => { callRecord.type = n.getEnumValue(CallTypeObject); }, "version": n => { callRecord.version = n.getNumberValue(); } });
}
/**
* The deserialization information for the current model
* @param CallRecordCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoCallRecordCollectionResponse(callRecordCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(callRecordCollectionResponse)), { "value": n => { callRecordCollectionResponse.value = n.getCollectionOfObjectValues(createCallRecordFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param ClientUserAgent The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoClientUserAgent(clientUserAgent = {}) {
return Object.assign(Object.assign({}, deserializeIntoUserAgent(clientUserAgent)), { "azureADAppId": n => { clientUserAgent.azureADAppId = n.getStringValue(); }, "communicationServiceId": n => { clientUserAgent.communicationServiceId = n.getStringValue(); }, "platform": n => { clientUserAgent.platform = n.getEnumValue(ClientPlatformObject); }, "productFamily": n => { clientUserAgent.productFamily = n.getEnumValue(ProductFamilyObject); } });
}
/**
* The deserialization information for the current model
* @param DeviceInfo The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoDeviceInfo(deviceInfo = {}) {
return {
"backingStoreEnabled": n => { deviceInfo.backingStoreEnabled = true; },
"captureDeviceDriver": n => { deviceInfo.captureDeviceDriver = n.getStringValue(); },
"captureDeviceName": n => { deviceInfo.captureDeviceName = n.getStringValue(); },
"captureNotFunctioningEventRatio": n => { deviceInfo.captureNotFunctioningEventRatio = n.getNumberValue(); },
"cpuInsufficentEventRatio": n => { deviceInfo.cpuInsufficentEventRatio = n.getNumberValue(); },
"deviceClippingEventRatio": n => { deviceInfo.deviceClippingEventRatio = n.getNumberValue(); },
"deviceGlitchEventRatio": n => { deviceInfo.deviceGlitchEventRatio = n.getNumberValue(); },
"howlingEventCount": n => { deviceInfo.howlingEventCount = n.getNumberValue(); },
"initialSignalLevelRootMeanSquare": n => { deviceInfo.initialSignalLevelRootMeanSquare = n.getNumberValue(); },
"lowSpeechLevelEventRatio": n => { deviceInfo.lowSpeechLevelEventRatio = n.getNumberValue(); },
"lowSpeechToNoiseEventRatio": n => { deviceInfo.lowSpeechToNoiseEventRatio = n.getNumberValue(); },
"micGlitchRate": n => { deviceInfo.micGlitchRate = n.getNumberValue(); },
"@odata.type": n => { deviceInfo.odataType = n.getStringValue(); },
"receivedNoiseLevel": n => { deviceInfo.receivedNoiseLevel = n.getNumberValue(); },
"receivedSignalLevel": n => { deviceInfo.receivedSignalLevel = n.getNumberValue(); },
"renderDeviceDriver": n => { deviceInfo.renderDeviceDriver = n.getStringValue(); },
"renderDeviceName": n => { deviceInfo.renderDeviceName = n.getStringValue(); },
"renderMuteEventRatio": n => { deviceInfo.renderMuteEventRatio = n.getNumberValue(); },
"renderNotFunctioningEventRatio": n => { deviceInfo.renderNotFunctioningEventRatio = n.getNumberValue(); },
"renderZeroVolumeEventRatio": n => { deviceInfo.renderZeroVolumeEventRatio = n.getNumberValue(); },
"sentNoiseLevel": n => { deviceInfo.sentNoiseLevel = n.getNumberValue(); },
"sentSignalLevel": n => { deviceInfo.sentSignalLevel = n.getNumberValue(); },
"speakerGlitchRate": n => { deviceInfo.speakerGlitchRate = n.getNumberValue(); },
};
}
/**
* The deserialization information for the current model
* @param DirectRoutingLogRow The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoDirectRoutingLogRow(directRoutingLogRow = {}) {
return {
"backingStoreEnabled": n => { directRoutingLogRow.backingStoreEnabled = true; },
"calleeNumber": n => { directRoutingLogRow.calleeNumber = n.getStringValue(); },
"callEndSubReason": n => { directRoutingLogRow.callEndSubReason = n.getNumberValue(); },
"callerNumber": n => { directRoutingLogRow.callerNumber = n.getStringValue(); },
"callType": n => { directRoutingLogRow.callType = n.getStringValue(); },
"correlationId": n => { directRoutingLogRow.correlationId = n.getStringValue(); },
"duration": n => { directRoutingLogRow.duration = n.getNumberValue(); },
"endDateTime": n => { directRoutingLogRow.endDateTime = n.getDateValue(); },
"failureDateTime": n => { directRoutingLogRow.failureDateTime = n.getDateValue(); },
"finalSipCode": n => { directRoutingLogRow.finalSipCode = n.getNumberValue(); },
"finalSipCodePhrase": n => { directRoutingLogRow.finalSipCodePhrase = n.getStringValue(); },
"id": n => { directRoutingLogRow.id = n.getStringValue(); },
"inviteDateTime": n => { directRoutingLogRow.inviteDateTime = n.getDateValue(); },
"mediaBypassEnabled": n => { directRoutingLogRow.mediaBypassEnabled = n.getBooleanValue(); },
"mediaPathLocation": n => { directRoutingLogRow.mediaPathLocation = n.getStringValue(); },
"@odata.type": n => { directRoutingLogRow.odataType = n.getStringValue(); },
"signalingLocation": n => { directRoutingLogRow.signalingLocation = n.getStringValue(); },
"startDateTime": n => { directRoutingLogRow.startDateTime = n.getDateValue(); },
"successfulCall": n => { directRoutingLogRow.successfulCall = n.getBooleanValue(); },
"trunkFullyQualifiedDomainName": n => { directRoutingLogRow.trunkFullyQualifiedDomainName = n.getStringValue(); },
"userDisplayName": n => { directRoutingLogRow.userDisplayName = n.getStringValue(); },
"userId": n => { directRoutingLogRow.userId = n.getStringValue(); },
"userPrincipalName": n => { directRoutingLogRow.userPrincipalName = n.getStringValue(); },
};
}
/**
* The deserialization information for the current model
* @param Endpoint The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoEndpoint(endpoint = {}) {
return {
"backingStoreEnabled": n => { endpoint.backingStoreEnabled = true; },
"@odata.type": n => { endpoint.odataType = n.getStringValue(); },
"userAgent": n => { endpoint.userAgent = n.getObjectValue(createUserAgentFromDiscriminatorValue); },
};
}
/**
* The deserialization information for the current model
* @param FailureInfo The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoFailureInfo(failureInfo = {}) {
return {
"backingStoreEnabled": n => { failureInfo.backingStoreEnabled = true; },
"@odata.type": n => { failureInfo.odataType = n.getStringValue(); },
"reason": n => { failureInfo.reason = n.getStringValue(); },
"stage": n => { failureInfo.stage = n.getEnumValue(FailureStageObject); },
};
}
/**
* The deserialization information for the current model
* @param FeedbackTokenSet The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoFeedbackTokenSet(feedbackTokenSet = {}) {
return {
"backingStoreEnabled": n => { feedbackTokenSet.backingStoreEnabled = true; },
"@odata.type": n => { feedbackTokenSet.odataType = n.getStringValue(); },
};
}
/**
* The deserialization information for the current model
* @param Media The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoMedia(media = {}) {
return {
"backingStoreEnabled": n => { media.backingStoreEnabled = true; },
"calleeDevice": n => { media.calleeDevice = n.getObjectValue(createDeviceInfoFromDiscriminatorValue); },
"calleeNetwork": n => { media.calleeNetwork = n.getObjectValue(createNetworkInfoFromDiscriminatorValue); },
"callerDevice": n => { media.callerDevice = n.getObjectValue(createDeviceInfoFromDiscriminatorValue); },
"callerNetwork": n => { media.callerNetwork = n.getObjectValue(createNetworkInfoFromDiscriminatorValue); },
"label": n => { media.label = n.getStringValue(); },
"@odata.type": n => { media.odataType = n.getStringValue(); },
"streams": n => { media.streams = n.getCollectionOfObjectValues(createMediaStreamFromDiscriminatorValue); },
};
}
/**
* The deserialization information for the current model
* @param MediaStream The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoMediaStream(mediaStream = {}) {
return {
"audioCodec": n => { mediaStream.audioCodec = n.getEnumValue(AudioCodecObject); },
"averageAudioDegradation": n => { mediaStream.averageAudioDegradation = n.getNumberValue(); },
"averageAudioNetworkJitter": n => { mediaStream.averageAudioNetworkJitter = n.getDurationValue(); },
"averageBandwidthEstimate": n => { mediaStream.averageBandwidthEstimate = n.getNumberValue(); },
"averageFreezeDuration": n => { mediaStream.averageFreezeDuration = n.getDurationValue(); },
"averageJitter": n => { mediaStream.averageJitter = n.getDurationValue(); },
"averagePacketLossRate": n => { mediaStream.averagePacketLossRate = n.getNumberValue(); },
"averageRatioOfConcealedSamples": n => { mediaStream.averageRatioOfConcealedSamples = n.getNumberValue(); },
"averageReceivedFrameRate": n => { mediaStream.averageReceivedFrameRate = n.getNumberValue(); },
"averageRoundTripTime": n => { mediaStream.averageRoundTripTime = n.getDurationValue(); },
"averageVideoFrameLossPercentage": n => { mediaStream.averageVideoFrameLossPercentage = n.getNumberValue(); },
"averageVideoFrameRate": n => { mediaStream.averageVideoFrameRate = n.getNumberValue(); },
"averageVideoPacketLossRate": n => { mediaStream.averageVideoPacketLossRate = n.getNumberValue(); },
"backingStoreEnabled": n => { mediaStream.backingStoreEnabled = true; },
"endDateTime": n => { mediaStream.endDateTime = n.getDateValue(); },
"isAudioForwardErrorCorrectionUsed": n => { mediaStream.isAudioForwardErrorCorrectionUsed = n.getBooleanValue(); },
"lowFrameRateRatio": n => { mediaStream.lowFrameRateRatio = n.getNumberValue(); },
"lowVideoProcessingCapabilityRatio": n => { mediaStream.lowVideoProcessingCapabilityRatio = n.getNumberValue(); },
"maxAudioNetworkJitter": n => { mediaStream.maxAudioNetworkJitter = n.getDurationValue(); },
"maxJitter": n => { mediaStream.maxJitter = n.getDurationValue(); },
"maxPacketLossRate": n => { mediaStream.maxPacketLossRate = n.getNumberValue(); },
"maxRatioOfConcealedSamples": n => { mediaStream.maxRatioOfConcealedSamples = n.getNumberValue(); },
"maxRoundTripTime": n => { mediaStream.maxRoundTripTime = n.getDurationValue(); },
"@odata.type": n => { mediaStream.odataType = n.getStringValue(); },
"packetUtilization": n => { mediaStream.packetUtilization = n.getNumberValue(); },
"postForwardErrorCorrectionPacketLossRate": n => { mediaStream.postForwardErrorCorrectionPacketLossRate = n.getNumberValue(); },
"rmsFreezeDuration": n => { mediaStream.rmsFreezeDuration = n.getDurationValue(); },
"startDateTime": n => { mediaStream.startDateTime = n.getDateValue(); },
"streamDirection": n => { mediaStream.streamDirection = n.getEnumValue(MediaStreamDirectionObject); },
"streamId": n => { mediaStream.streamId = n.getStringValue(); },
"videoCodec": n => { mediaStream.videoCodec = n.getEnumValue(VideoCodecObject); },
"wasMediaBypassed": n => { mediaStream.wasMediaBypassed = n.getBooleanValue(); },
};
}
/**
* The deserialization information for the current model
* @param NetworkInfo The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoNetworkInfo(networkInfo = {}) {
return {
"backingStoreEnabled": n => { networkInfo.backingStoreEnabled = true; },
"bandwidthLowEventRatio": n => { networkInfo.bandwidthLowEventRatio = n.getNumberValue(); },
"basicServiceSetIdentifier": n => { networkInfo.basicServiceSetIdentifier = n.getStringValue(); },
"connectionType": n => { networkInfo.connectionType = n.getEnumValue(NetworkConnectionTypeObject); },
"delayEventRatio": n => { networkInfo.delayEventRatio = n.getNumberValue(); },
"dnsSuffix": n => { networkInfo.dnsSuffix = n.getStringValue(); },
"ipAddress": n => { networkInfo.ipAddress = n.getStringValue(); },
"linkSpeed": n => { networkInfo.linkSpeed = n.getNumberValue(); },
"macAddress": n => { networkInfo.macAddress = n.getStringValue(); },
"networkTransportProtocol": n => { networkInfo.networkTransportProtocol = n.getEnumValue(NetworkTransportProtocolObject); },
"@odata.type": n => { networkInfo.odataType = n.getStringValue(); },
"port": n => { networkInfo.port = n.getNumberValue(); },
"receivedQualityEventRatio": n => { networkInfo.receivedQualityEventRatio = n.getNumberValue(); },
"reflexiveIPAddress": n => { networkInfo.reflexiveIPAddress = n.getStringValue(); },
"relayIPAddress": n => { networkInfo.relayIPAddress = n.getStringValue(); },
"relayPort": n => { networkInfo.relayPort = n.getNumberValue(); },
"sentQualityEventRatio": n => { networkInfo.sentQualityEventRatio = n.getNumberValue(); },
"subnet": n => { networkInfo.subnet = n.getStringValue(); },
"traceRouteHops": n => { networkInfo.traceRouteHops = n.getCollectionOfObjectValues(createTraceRouteHopFromDiscriminatorValue); },
"wifiBand": n => { networkInfo.wifiBand = n.getEnumValue(WifiBandObject); },
"wifiBatteryCharge": n => { networkInfo.wifiBatteryCharge = n.getNumberValue(); },
"wifiChannel": n => { networkInfo.wifiChannel = n.getNumberValue(); },
"wifiMicrosoftDriver": n => { networkInfo.wifiMicrosoftDriver = n.getStringValue(); },
"wifiMicrosoftDriverVersion": n => { networkInfo.wifiMicrosoftDriverVersion = n.getStringValue(); },
"wifiRadioType": n => { networkInfo.wifiRadioType = n.getEnumValue(WifiRadioTypeObject); },
"wifiSignalStrength": n => { networkInfo.wifiSignalStrength = n.getNumberValue(); },
"wifiVendorDriver": n => { networkInfo.wifiVendorDriver = n.getStringValue(); },
"wifiVendorDriverVersion": n => { networkInfo.wifiVendorDriverVersion = n.getStringValue(); },
};
}
/**
* The deserialization information for the current model
* @param Organizer The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoOrganizer(organizer = {}) {
return Object.assign({}, deserializeIntoParticipantBase(organizer));
}
/**
* The deserialization information for the current model
* @param Participant The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoParticipant(participant = {}) {
return Object.assign({}, deserializeIntoParticipantBase(participant));
}
/**
* The deserialization information for the current model
* @param ParticipantBase The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoParticipantBase(participantBase = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(participantBase)), { "administrativeUnitInfos": n => { participantBase.administrativeUnitInfos = n.getCollectionOfObjectValues(createAdministrativeUnitInfoFromDiscriminatorValue); }, "identity": n => { participantBase.identity = n.getObjectValue(createCommunicationsIdentitySetFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param ParticipantCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoParticipantCollectionResponse(participantCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(participantCollectionResponse)), { "value": n => { participantCollectionResponse.value = n.getCollectionOfObjectValues(createParticipantFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param ParticipantEndpoint The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoParticipantEndpoint(participantEndpoint = {}) {
return Object.assign(Object.assign({}, deserializeIntoEndpoint(participantEndpoint)), { "associatedIdentity": n => { participantEndpoint.associatedIdentity = n.getObjectValue(createIdentityFromDiscriminatorValue); }, "cpuCoresCount": n => { participantEndpoint.cpuCoresCount = n.getNumberValue(); }, "cpuName": n => { participantEndpoint.cpuName = n.getStringValue(); }, "cpuProcessorSpeedInMhz": n => { participantEndpoint.cpuProcessorSpeedInMhz = n.getNumberValue(); }, "feedback": n => { participantEndpoint.feedback = n.getObjectValue(createUserFeedbackFromDiscriminatorValue); }, "identity": n => { participantEndpoint.identity = n.getObjectValue(createIdentitySetFromDiscriminatorValue); }, "name": n => { participantEndpoint.name = n.getStringValue(); } });
}
/**
* The deserialization information for the current model
* @param PstnCallLogRow The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoPstnCallLogRow(pstnCallLogRow = {}) {
return {
"backingStoreEnabled": n => { pstnCallLogRow.backingStoreEnabled = true; },
"callDurationSource": n => { pstnCallLogRow.callDurationSource = n.getEnumValue(PstnCallDurationSourceObject); },
"calleeNumber": n => { pstnCallLogRow.calleeNumber = n.getStringValue(); },
"callerNumber": n => { pstnCallLogRow.callerNumber = n.getStringValue(); },
"callId": n => { pstnCallLogRow.callId = n.getStringValue(); },
"callType": n => { pstnCallLogRow.callType = n.getStringValue(); },
"charge": n => { pstnCallLogRow.charge = n.getNumberValue(); },
"conferenceId": n => { pstnCallLogRow.conferenceId = n.getStringValue(); },
"connectionCharge": n => { pstnCallLogRow.connectionCharge = n.getNumberValue(); },
"currency": n => { pstnCallLogRow.currency = n.getStringValue(); },
"destinationContext": n => { pstnCallLogRow.destinationContext = n.getStringValue(); },
"destinationName": n => { pstnCallLogRow.destinationName = n.getStringValue(); },
"duration": n => { pstnCallLogRow.duration = n.getNumberValue(); },
"endDateTime": n => { pstnCallLogRow.endDateTime = n.getDateValue(); },
"id": n => { pstnCallLogRow.id = n.getStringValue(); },
"inventoryType": n => { pstnCallLogRow.inventoryType = n.getStringValue(); },
"licenseCapability": n => { pstnCallLogRow.licenseCapability = n.getStringValue(); },
"@odata.type": n => { pstnCallLogRow.odataType = n.getStringValue(); },
"operator": n => { pstnCallLogRow.operator = n.getStringValue(); },
"startDateTime": n => { pstnCallLogRow.startDateTime = n.getDateValue(); },
"tenantCountryCode": n => { pstnCallLogRow.tenantCountryCode = n.getStringValue(); },
"usageCountryCode": n => { pstnCallLogRow.usageCountryCode = n.getStringValue(); },
"userDisplayName": n => { pstnCallLogRow.userDisplayName = n.getStringValue(); },
"userId": n => { pstnCallLogRow.userId = n.getStringValue(); },
"userPrincipalName": n => { pstnCallLogRow.userPrincipalName = n.getStringValue(); },
};
}
/**
* The deserialization information for the current model
* @param Segment The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoSegment(segment = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(segment)), { "callee": n => { segment.callee = n.getObjectValue(createEndpointFromDiscriminatorValue); }, "caller": n => { segment.caller = n.getObjectValue(createEndpointFromDiscriminatorValue); }, "endDateTime": n => { segment.endDateTime = n.getDateValue(); }, "failureInfo": n => { segment.failureInfo = n.getObjectValue(createFailureInfoFromDiscriminatorValue); }, "media": n => { segment.media = n.getCollectionOfObjectValues(createMediaFromDiscriminatorValue); }, "startDateTime": n => { segment.startDateTime = n.getDateValue(); } });
}
/**
* The deserialization information for the current model
* @param SegmentCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoSegmentCollectionResponse(segmentCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(segmentCollectionResponse)), { "value": n => { segmentCollectionResponse.value = n.getCollectionOfObjectValues(createSegmentFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param ServiceEndpoint The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoServiceEndpoint(serviceEndpoint = {}) {
return Object.assign({}, deserializeIntoEndpoint(serviceEndpoint));
}
/**
* The deserialization information for the current model
* @param ServiceUserAgent The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoServiceUserAgent(serviceUserAgent = {}) {
return Object.assign(Object.assign({}, deserializeIntoUserAgent(serviceUserAgent)), { "role": n => { serviceUserAgent.role = n.getEnumValue(ServiceRoleObject); } });
}
/**
* The deserialization information for the current model
* @param Session The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoSession(session = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(session)), { "callee": n => { session.callee = n.getObjectValue(createEndpointFromDiscriminatorValue); }, "caller": n => { session.caller = n.getObjectValue(createEndpointFromDiscriminatorValue); }, "endDateTime": n => { session.endDateTime = n.getDateValue(); }, "failureInfo": n => { session.failureInfo = n.getObjectValue(createFailureInfoFromDiscriminatorValue); }, "isTest": n => { session.isTest = n.getBooleanValue(); }, "modalities": n => { session.modalities = n.getCollectionOfEnumValues(ModalityObject); }, "segments": n => { session.segments = n.getCollectionOfObjectValues(createSegmentFromDiscriminatorValue); }, "startDateTime": n => { session.startDateTime = n.getDateValue(); } });
}
/**
* The deserialization information for the current model
* @param SessionCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoSessionCollectionResponse(sessionCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(sessionCollectionResponse)), { "value": n => { sessionCollectionResponse.value = n.getCollectionOfObjectValues(createSessionFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param TraceRouteHop The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoTraceRouteHop(traceRouteHop = {}) {
return {
"backingStoreEnabled": n => { traceRouteHop.backingStoreEnabled = true; },
"hopCount": n => { traceRouteHop.hopCount = n.getNumberValue(); },
"ipAddress": n => { traceRouteHop.ipAddress = n.getStringValue(); },
"@odata.type": n => { traceRouteHop.odataType = n.getStringValue(); },
"roundTripTime": n => { traceRouteHop.roundTripTime = n.getDurationValue(); },
};
}
/**
* The deserialization information for the current model
* @param UserAgent The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoUserAgent(userAgent = {}) {
return {
"applicationVersion": n => { userAgent.applicationVersion = n.getStringValue(); },
"backingStoreEnabled": n => { userAgent.backingStoreEnabled = true; },
"headerValue": n => { userAgent.headerValue = n.getStringValue(); },
"@odata.type": n => { userAgent.odataType = n.getStringValue(); },
};
}
/**
* The deserialization information for the current model
* @param UserFeedback The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoUserFeedback(userFeedback = {}) {
return {
"backingStoreEnabled": n => { userFeedback.backingStoreEnabled = true; },
"@odata.type": n => { userFeedback.odataType = n.getStringValue(); },
"rating": n => { userFeedback.rating = n.getEnumValue(UserFeedbackRatingObject); },
"text": n => { userFeedback.text = n.getStringValue(); },
"tokens": n => { userFeedback.tokens = n.getObjectValue(createFeedbackTokenSetFromDiscriminatorValue); },
};
}
/**
* The deserialization information for the current model
* @param UserIdentity The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoUserIdentity(userIdentity = {}) {
return Object.assign(Object.assign({}, deserializeIntoIdentity(userIdentity)), { "userPrincipalName": n => { userIdentity.userPrincipalName = n.getStringValue(); } });
}
/**
* Serializes information the current object
* @param AdministrativeUnitInfo The instance to serialize from.
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeAdministrativeUnitInfo(writer, administrativeUnitInfo = {}, isSerializingDerivedType = false) {
if (!administrativeUnitInfo || isSerializingDerivedType) {
return;
}
writer.writeStringValue("id", administrativeUnitInfo.id);
writer.writeStringValue("@odata.type", administrativeUnitInfo.odataType);
writer.writeAdditionalData(administrativeUnitInfo.additionalData);
}
/**
* Serializes information the current object
* @param CallRecord The instance to serialize from.
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeCallRecord(writer, callRecord = {}, isSerializingDerivedType = false) {
if (!callRecord || isSerializingDerivedType) {
return;
}
serializeEntity(writer, callRecord, isSerializingDerivedType);
writer.writeDateValue("endDateTime", callRecord.endDateTime);
writer.writeStringValue("joinWebUrl", callRecord.joinWebUrl);
writer.writeDateValue("lastModifiedDateTime", callRecord.lastModifiedDateTime);
if (callRecord.modalities)
writer.writeCollectionOfEnumValues("modalities", callRecord.modalities);
writer.writeObjectValue("organizer", callRecord.organizer, serializeIdentitySet);
writer.writeObjectValue("organizer_v2", callRecord.organizerV2, serializeOrganizer);
writer.writeCollectionOfObjectValues("participants", callRecord.participants, serializeIdentitySet);
writer.writeCollectionOfObjectValues("participants_v2", callRecord.participantsV2, serializeParticipant);
writer.writeCollectionOfObjectValues("sessions", callRecord.sessions, serializeSession);
writer.writeDateValue("startDateTime", callRecord.startDateTime);
writer.writeEnumValue("type", callRecord.type);
writer.writeNumberValue("version", callRecord.version);
}
/**
* Serializes information the current object
* @param CallRecordCollectionResponse The instance to serialize from.
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeCallRecordCollectionResponse(writer, callRecordCollectionResponse = {}, isSerializingDerivedType = false) {
if (!callRecordCollectionResponse || isSerializingDerivedType) {
return;
}
serializeBaseCollectionPaginationCountResponse(writer, callRecordCollectionResponse, isSerializingDerivedType);
writer.writeCollectionOfObjectValues("value", callRecordCollectionResponse.value, serializeCallRecord);
}
/**
* Serializes information the current object
* @param ClientUserAgent The instance to serialize from.
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeClientUserAgent(writer, clientUserAgent = {}, isSerializingDerivedType = false) {
if (!clientUserAgent || isSerializingDerivedType) {
return;
}
serializeUserAgent(writer, clientUserAgent, isSerializingDerivedType);
writer.writeStringValue("azureADAppId", clientUserAgent.azureADAppId);
writer.writeStringValue("communicationServiceId", clientUserAgent.communicationServiceId);
writer.writeEnumValue("platform", clientUserAgent.platform);
writer.writeEnumValue("productFamily", clientUserAgent.productFamily);
}
/**
* Serializes information the current object
* @param DeviceInfo The instance to serialize from.
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeDeviceInfo(writer, deviceInfo = {}, isSerializingDerivedType = false) {
if (!deviceInfo || isSerializingDerivedType) {
return;
}
writer.writeStringValue("captureDeviceDriver", deviceInfo.captureDeviceDriver);
writer.writeStringValue("captureDeviceName", deviceInfo.captureDeviceName);
writer.writeNumberValue("captureNotFunctioningEventRatio", deviceInfo.captureNotFunctioningEventRatio);
writer.writeNumberValue("cpuInsufficentEventRatio", deviceInfo.cpuInsufficentEventRatio);
writer.writeNumberValue("deviceClippingEventRatio", deviceInfo.deviceClippingEventRatio);
writer.writeNumberValue("deviceGlitchEventRatio", deviceInfo.deviceGlitchEventRatio);
writer.writeNumberValue("howlingEventCount", deviceInfo.howlingEventCount);
writer.writeNumberValue("initialSignalLevelRootMeanSquare", deviceInfo.initialSignalLevelRootMeanSquare);
writer.writeNumberValue("lowSpeechLevelEventRatio", deviceInfo.lowSpeechLevelEventRatio);
writer.writeNumberValue("lowSpeechToNoiseEventRatio", deviceInfo.lowSpeechToNoiseEventRatio);
writer.writeNumberValue("micGlitchRate", deviceInfo.micGlitchRate);
writer.writeStringValue("@odata.type", deviceInfo.odataType);
writer.writeNumberValue("receivedNoiseLevel", deviceInfo.receivedNoiseLevel);
writer.writeNumberValue("receivedSignalLevel", deviceInfo.receivedSignalLevel);
writer.writeStringValue("renderDeviceDriver", deviceInfo.renderDeviceDriver);
writer.writeStringValue("renderDeviceName", deviceInfo.renderDeviceName);
writer.writeNumberValue("renderMuteEventRatio", deviceInfo.renderMuteEventRatio);
writer.writeNumberValue("renderNotFunctioningEventRatio", deviceInfo.renderNotFunctioningEventRatio);
writer.writeNumberValue("renderZeroVolumeEventRatio", deviceInfo.renderZeroVolumeEventRatio);
writer.writeNumberValue("sentNoiseLevel", deviceInfo.sentNoiseLevel);
writer.writeNumberValue("sentSignalLevel", deviceInfo.sentSignalLevel);
writer.writeNumberValue("speakerGlitchRate", deviceInfo.speakerGlitchRate);
writer.writeAdditionalData(deviceInfo.additionalData);
}
/**
* Serializes information the current object
* @param DirectRoutingLogRow The instance to serialize from.
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeDirectRoutingLogRow(writer, directRoutingLogRow = {}, isSerializingDerivedType = false) {
if (!directRoutingLogRow || isSerializingDerivedType) {
return;
}
writer.writeStringValue("calleeNumber", directRoutingLogRow.calleeNumber);
writer.writeNumberValue("callEndSubReason", directRoutingLogRow.callEndSubReason);
writer.writeStringValue("callerNumber", directRoutingLogRow.callerNumber);
writer.writeStringValue("callType", directRoutingLogRow.callType);
writer.writeStringValue("correlationId", directRoutingLogRow.correlationId);
writer.writeNumberValue("duration", directRoutingLogRow.duration);
writer.writeDateValue("endDateTime", directRoutingLogRow.endDateTime);
writer.writeDateValue("failureDateTime", directRoutingLogRow.failureDateTime);
writer.writeNumberValue("finalSipCode", directRoutingLogRow.finalSipCode);
writer.writeStringValue("finalSipCodePhrase", directRoutingLogRow.finalSipCodePhrase);
writer.writeStringValue("id", directRoutingLogRow.id);
writer.writeDateValue("inviteDateTime", directRoutingLogRow.inviteDateTime);
writer.writeBooleanValue("mediaBypassEnabled", directRoutingLogRow.mediaBypassEnabled);
writer.writeStringValue("mediaPathLocation", directRoutingLogRow.mediaPathLocation);
writer.writeStringValue("@odata.type", directRoutingLogRow.odataType);
writer.writeStringValue("signalingLocation", directRoutingLogRow.signalingLocation);
writer.writeDateValue("startDateTime", directRoutingLogRow.startDateTime);
writer.writeBooleanValue("successfulCall", directRoutingLogRow.successfulCall);
writer.writeStringValue("trunkFullyQualifiedDomainName", directRoutingLogRow.trunkFullyQualifiedDomainName);
writer.writeStringValue("userDisplayName", directRoutingLogRow.userDisplayName);
writer.writeStringValue("userId", directRoutingLogRow.userId);
writer.writeStringValue("userPrincipalName", directRoutingLogRow.userPrincipalName);
writer.writeAdditionalData(directRoutingLogRow.additionalData);
}
/**
* Serializes information the current object
* @param Endpoint The instance to serialize from.
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeEndpoint(writer, endpoint = {}, isSerializingDerivedType = false) {
if (!endpoint || isSerializingDerivedType) {
return;
}
writer.writeStringValue("@odata.type", endpoint.odataType);
writer.writeObjectValue("userAgent", endpoint.userAgent, serializeUserAgent);
writer.writeAdditionalData(endpoint.additionalData);
switch (endpoint.odataType) {
case "#microsoft.gra