@microsoft/msgraph-beta-sdk
Version:
Microsoft Graph Beta JavaScript client library
846 lines • 88.1 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createGroupFromDiscriminatorValue, createIdentitySetFromDiscriminatorValue, createResultInfoFromDiscriminatorValue, createSiteFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, deserializeIntoEntity, serializeBaseCollectionPaginationCountResponse, serializeEntity, serializeGroup, serializeIdentitySet, serializeResultInfo, serializeSite } 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 {AddToReviewSetOperation}
*/
// @ts-ignore
export function createAddToReviewSetOperationFromDiscriminatorValue(parseNode) {
return deserializeIntoAddToReviewSetOperation;
}
/**
* 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 {CaseCollectionResponse}
*/
// @ts-ignore
export function createCaseCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoCaseCollectionResponse;
}
/**
* 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 {CaseEscaped}
*/
// @ts-ignore
export function createCaseEscapedFromDiscriminatorValue(parseNode) {
return deserializeIntoCaseEscaped;
}
/**
* 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 {CaseExportOperationCollectionResponse}
*/
// @ts-ignore
export function createCaseExportOperationCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoCaseExportOperationCollectionResponse;
}
/**
* 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 {CaseExportOperation}
*/
// @ts-ignore
export function createCaseExportOperationFromDiscriminatorValue(parseNode) {
return deserializeIntoCaseExportOperation;
}
/**
* 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 {CaseHoldOperation}
*/
// @ts-ignore
export function createCaseHoldOperationFromDiscriminatorValue(parseNode) {
return deserializeIntoCaseHoldOperation;
}
/**
* 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 {CaseIndexOperation}
*/
// @ts-ignore
export function createCaseIndexOperationFromDiscriminatorValue(parseNode) {
return deserializeIntoCaseIndexOperation;
}
/**
* 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 {CaseOperationCollectionResponse}
*/
// @ts-ignore
export function createCaseOperationCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoCaseOperationCollectionResponse;
}
/**
* 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 {CaseOperation}
*/
// @ts-ignore
export function createCaseOperationFromDiscriminatorValue(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.ediscovery.addToReviewSetOperation":
return deserializeIntoAddToReviewSetOperation;
case "#microsoft.graph.ediscovery.caseExportOperation":
return deserializeIntoCaseExportOperation;
case "#microsoft.graph.ediscovery.caseHoldOperation":
return deserializeIntoCaseHoldOperation;
case "#microsoft.graph.ediscovery.caseIndexOperation":
return deserializeIntoCaseIndexOperation;
case "#microsoft.graph.ediscovery.estimateStatisticsOperation":
return deserializeIntoEstimateStatisticsOperation;
case "#microsoft.graph.ediscovery.purgeDataOperation":
return deserializeIntoPurgeDataOperation;
case "#microsoft.graph.ediscovery.tagOperation":
return deserializeIntoTagOperation;
}
}
}
return deserializeIntoCaseOperation;
}
/**
* 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 {CaseSettings}
*/
// @ts-ignore
export function createCaseSettingsFromDiscriminatorValue(parseNode) {
return deserializeIntoCaseSettings;
}
/**
* 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 {CustodianCollectionResponse}
*/
// @ts-ignore
export function createCustodianCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoCustodianCollectionResponse;
}
/**
* 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 {Custodian}
*/
// @ts-ignore
export function createCustodianFromDiscriminatorValue(parseNode) {
return deserializeIntoCustodian;
}
/**
* 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 {DataSourceCollectionResponse}
*/
// @ts-ignore
export function createDataSourceCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoDataSourceCollectionResponse;
}
/**
* 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 {DataSourceContainer}
*/
// @ts-ignore
export function createDataSourceContainerFromDiscriminatorValue(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.ediscovery.custodian":
return deserializeIntoCustodian;
case "#microsoft.graph.ediscovery.noncustodialDataSource":
return deserializeIntoNoncustodialDataSource;
}
}
}
return deserializeIntoDataSourceContainer;
}
/**
* 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 {DataSource}
*/
// @ts-ignore
export function createDataSourceFromDiscriminatorValue(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.ediscovery.siteSource":
return deserializeIntoSiteSource;
case "#microsoft.graph.ediscovery.unifiedGroupSource":
return deserializeIntoUnifiedGroupSource;
case "#microsoft.graph.ediscovery.userSource":
return deserializeIntoUserSource;
}
}
}
return deserializeIntoDataSource;
}
/**
* 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 {Ediscoveryroot}
*/
// @ts-ignore
export function createEdiscoveryrootFromDiscriminatorValue(parseNode) {
return deserializeIntoEdiscoveryroot;
}
/**
* 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 {EstimateStatisticsOperation}
*/
// @ts-ignore
export function createEstimateStatisticsOperationFromDiscriminatorValue(parseNode) {
return deserializeIntoEstimateStatisticsOperation;
}
/**
* 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 {LegalHoldCollectionResponse}
*/
// @ts-ignore
export function createLegalHoldCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoLegalHoldCollectionResponse;
}
/**
* 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 {LegalHold}
*/
// @ts-ignore
export function createLegalHoldFromDiscriminatorValue(parseNode) {
return deserializeIntoLegalHold;
}
/**
* 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 {NoncustodialDataSourceCollectionResponse}
*/
// @ts-ignore
export function createNoncustodialDataSourceCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoNoncustodialDataSourceCollectionResponse;
}
/**
* 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 {NoncustodialDataSource}
*/
// @ts-ignore
export function createNoncustodialDataSourceFromDiscriminatorValue(parseNode) {
return deserializeIntoNoncustodialDataSource;
}
/**
* 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 {OcrSettings}
*/
// @ts-ignore
export function createOcrSettingsFromDiscriminatorValue(parseNode) {
return deserializeIntoOcrSettings;
}
/**
* 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 {PurgeDataOperation}
*/
// @ts-ignore
export function createPurgeDataOperationFromDiscriminatorValue(parseNode) {
return deserializeIntoPurgeDataOperation;
}
/**
* 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 {RedundancyDetectionSettings}
*/
// @ts-ignore
export function createRedundancyDetectionSettingsFromDiscriminatorValue(parseNode) {
return deserializeIntoRedundancyDetectionSettings;
}
/**
* 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 {ReviewSetCollectionResponse}
*/
// @ts-ignore
export function createReviewSetCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoReviewSetCollectionResponse;
}
/**
* 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 {ReviewSet}
*/
// @ts-ignore
export function createReviewSetFromDiscriminatorValue(parseNode) {
return deserializeIntoReviewSet;
}
/**
* 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 {ReviewSetQueryCollectionResponse}
*/
// @ts-ignore
export function createReviewSetQueryCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoReviewSetQueryCollectionResponse;
}
/**
* 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 {ReviewSetQuery}
*/
// @ts-ignore
export function createReviewSetQueryFromDiscriminatorValue(parseNode) {
return deserializeIntoReviewSetQuery;
}
/**
* 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 {SiteSourceCollectionResponse}
*/
// @ts-ignore
export function createSiteSourceCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoSiteSourceCollectionResponse;
}
/**
* 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 {SiteSource}
*/
// @ts-ignore
export function createSiteSourceFromDiscriminatorValue(parseNode) {
return deserializeIntoSiteSource;
}
/**
* 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 {SourceCollectionCollectionResponse}
*/
// @ts-ignore
export function createSourceCollectionCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoSourceCollectionCollectionResponse;
}
/**
* 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 {SourceCollection}
*/
// @ts-ignore
export function createSourceCollectionFromDiscriminatorValue(parseNode) {
return deserializeIntoSourceCollection;
}
/**
* 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 {TagCollectionResponse}
*/
// @ts-ignore
export function createTagCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoTagCollectionResponse;
}
/**
* 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 {Tag}
*/
// @ts-ignore
export function createTagFromDiscriminatorValue(parseNode) {
return deserializeIntoTag;
}
/**
* 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 {TagOperation}
*/
// @ts-ignore
export function createTagOperationFromDiscriminatorValue(parseNode) {
return deserializeIntoTagOperation;
}
/**
* 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 {TopicModelingSettings}
*/
// @ts-ignore
export function createTopicModelingSettingsFromDiscriminatorValue(parseNode) {
return deserializeIntoTopicModelingSettings;
}
/**
* 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 {UnifiedGroupSourceCollectionResponse}
*/
// @ts-ignore
export function createUnifiedGroupSourceCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoUnifiedGroupSourceCollectionResponse;
}
/**
* 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 {UnifiedGroupSource}
*/
// @ts-ignore
export function createUnifiedGroupSourceFromDiscriminatorValue(parseNode) {
return deserializeIntoUnifiedGroupSource;
}
/**
* 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 {UserSourceCollectionResponse}
*/
// @ts-ignore
export function createUserSourceCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoUserSourceCollectionResponse;
}
/**
* 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 {UserSource}
*/
// @ts-ignore
export function createUserSourceFromDiscriminatorValue(parseNode) {
return deserializeIntoUserSource;
}
/**
* The deserialization information for the current model
* @param AddToReviewSetOperation The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoAddToReviewSetOperation(addToReviewSetOperation = {}) {
return Object.assign(Object.assign({}, deserializeIntoCaseOperation(addToReviewSetOperation)), { "reviewSet": n => { addToReviewSetOperation.reviewSet = n.getObjectValue(createReviewSetFromDiscriminatorValue); }, "sourceCollection": n => { addToReviewSetOperation.sourceCollection = n.getObjectValue(createSourceCollectionFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param CaseCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoCaseCollectionResponse(caseCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(caseCollectionResponse)), { "value": n => { caseCollectionResponse.value = n.getCollectionOfObjectValues(createCaseEscapedFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param CaseEscaped The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoCaseEscaped(caseEscaped = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(caseEscaped)), { "closedBy": n => { caseEscaped.closedBy = n.getObjectValue(createIdentitySetFromDiscriminatorValue); }, "closedDateTime": n => { caseEscaped.closedDateTime = n.getDateValue(); }, "createdDateTime": n => { caseEscaped.createdDateTime = n.getDateValue(); }, "custodians": n => { caseEscaped.custodians = n.getCollectionOfObjectValues(createCustodianFromDiscriminatorValue); }, "description": n => { caseEscaped.description = n.getStringValue(); }, "displayName": n => { caseEscaped.displayName = n.getStringValue(); }, "externalId": n => { caseEscaped.externalId = n.getStringValue(); }, "lastModifiedBy": n => { caseEscaped.lastModifiedBy = n.getObjectValue(createIdentitySetFromDiscriminatorValue); }, "lastModifiedDateTime": n => { caseEscaped.lastModifiedDateTime = n.getDateValue(); }, "legalHolds": n => { caseEscaped.legalHolds = n.getCollectionOfObjectValues(createLegalHoldFromDiscriminatorValue); }, "noncustodialDataSources": n => { caseEscaped.noncustodialDataSources = n.getCollectionOfObjectValues(createNoncustodialDataSourceFromDiscriminatorValue); }, "operations": n => { caseEscaped.operations = n.getCollectionOfObjectValues(createCaseOperationFromDiscriminatorValue); }, "reviewSets": n => { caseEscaped.reviewSets = n.getCollectionOfObjectValues(createReviewSetFromDiscriminatorValue); }, "settings": n => { caseEscaped.settings = n.getObjectValue(createCaseSettingsFromDiscriminatorValue); }, "sourceCollections": n => { caseEscaped.sourceCollections = n.getCollectionOfObjectValues(createSourceCollectionFromDiscriminatorValue); }, "status": n => { caseEscaped.status = n.getEnumValue(CaseStatusObject); }, "tags": n => { caseEscaped.tags = n.getCollectionOfObjectValues(createTagFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param CaseExportOperation The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoCaseExportOperation(caseExportOperation = {}) {
return Object.assign(Object.assign({}, deserializeIntoCaseOperation(caseExportOperation)), { "azureBlobContainer": n => { caseExportOperation.azureBlobContainer = n.getStringValue(); }, "azureBlobToken": n => { caseExportOperation.azureBlobToken = n.getStringValue(); }, "description": n => { caseExportOperation.description = n.getStringValue(); }, "exportOptions": n => { caseExportOperation.exportOptions = n.getCollectionOfEnumValues(ExportOptionsObject); }, "exportStructure": n => { caseExportOperation.exportStructure = n.getEnumValue(ExportFileStructureObject); }, "outputFolderId": n => { caseExportOperation.outputFolderId = n.getStringValue(); }, "outputName": n => { caseExportOperation.outputName = n.getStringValue(); }, "reviewSet": n => { caseExportOperation.reviewSet = n.getObjectValue(createReviewSetFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param CaseExportOperationCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoCaseExportOperationCollectionResponse(caseExportOperationCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(caseExportOperationCollectionResponse)), { "value": n => { caseExportOperationCollectionResponse.value = n.getCollectionOfObjectValues(createCaseExportOperationFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param CaseHoldOperation The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoCaseHoldOperation(caseHoldOperation = {}) {
return Object.assign({}, deserializeIntoCaseOperation(caseHoldOperation));
}
/**
* The deserialization information for the current model
* @param CaseIndexOperation The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoCaseIndexOperation(caseIndexOperation = {}) {
return Object.assign({}, deserializeIntoCaseOperation(caseIndexOperation));
}
/**
* The deserialization information for the current model
* @param CaseOperation The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoCaseOperation(caseOperation = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(caseOperation)), { "action": n => { caseOperation.action = n.getEnumValue(CaseActionObject); }, "completedDateTime": n => { caseOperation.completedDateTime = n.getDateValue(); }, "createdBy": n => { caseOperation.createdBy = n.getObjectValue(createIdentitySetFromDiscriminatorValue); }, "createdDateTime": n => { caseOperation.createdDateTime = n.getDateValue(); }, "percentProgress": n => { caseOperation.percentProgress = n.getNumberValue(); }, "resultInfo": n => { caseOperation.resultInfo = n.getObjectValue(createResultInfoFromDiscriminatorValue); }, "status": n => { caseOperation.status = n.getEnumValue(CaseOperationStatusObject); } });
}
/**
* The deserialization information for the current model
* @param CaseOperationCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoCaseOperationCollectionResponse(caseOperationCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(caseOperationCollectionResponse)), { "value": n => { caseOperationCollectionResponse.value = n.getCollectionOfObjectValues(createCaseOperationFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param CaseSettings The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoCaseSettings(caseSettings = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(caseSettings)), { "ocr": n => { caseSettings.ocr = n.getObjectValue(createOcrSettingsFromDiscriminatorValue); }, "redundancyDetection": n => { caseSettings.redundancyDetection = n.getObjectValue(createRedundancyDetectionSettingsFromDiscriminatorValue); }, "topicModeling": n => { caseSettings.topicModeling = n.getObjectValue(createTopicModelingSettingsFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param Custodian The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoCustodian(custodian = {}) {
return Object.assign(Object.assign({}, deserializeIntoDataSourceContainer(custodian)), { "acknowledgedDateTime": n => { custodian.acknowledgedDateTime = n.getDateValue(); }, "applyHoldToSources": n => { custodian.applyHoldToSources = n.getBooleanValue(); }, "email": n => { custodian.email = n.getStringValue(); }, "siteSources": n => { custodian.siteSources = n.getCollectionOfObjectValues(createSiteSourceFromDiscriminatorValue); }, "unifiedGroupSources": n => { custodian.unifiedGroupSources = n.getCollectionOfObjectValues(createUnifiedGroupSourceFromDiscriminatorValue); }, "userSources": n => { custodian.userSources = n.getCollectionOfObjectValues(createUserSourceFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param CustodianCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoCustodianCollectionResponse(custodianCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(custodianCollectionResponse)), { "value": n => { custodianCollectionResponse.value = n.getCollectionOfObjectValues(createCustodianFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param DataSource The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoDataSource(dataSource = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(dataSource)), { "createdBy": n => { dataSource.createdBy = n.getObjectValue(createIdentitySetFromDiscriminatorValue); }, "createdDateTime": n => { dataSource.createdDateTime = n.getDateValue(); }, "displayName": n => { dataSource.displayName = n.getStringValue(); }, "holdStatus": n => { dataSource.holdStatus = n.getEnumValue(DataSourceHoldStatusObject); } });
}
/**
* The deserialization information for the current model
* @param DataSourceCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoDataSourceCollectionResponse(dataSourceCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(dataSourceCollectionResponse)), { "value": n => { dataSourceCollectionResponse.value = n.getCollectionOfObjectValues(createDataSourceFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param DataSourceContainer The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoDataSourceContainer(dataSourceContainer = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(dataSourceContainer)), { "createdDateTime": n => { dataSourceContainer.createdDateTime = n.getDateValue(); }, "displayName": n => { dataSourceContainer.displayName = n.getStringValue(); }, "holdStatus": n => { dataSourceContainer.holdStatus = n.getEnumValue(DataSourceHoldStatusObject); }, "lastIndexOperation": n => { dataSourceContainer.lastIndexOperation = n.getObjectValue(createCaseIndexOperationFromDiscriminatorValue); }, "lastModifiedDateTime": n => { dataSourceContainer.lastModifiedDateTime = n.getDateValue(); }, "releasedDateTime": n => { dataSourceContainer.releasedDateTime = n.getDateValue(); }, "status": n => { dataSourceContainer.status = n.getEnumValue(DataSourceContainerStatusObject); } });
}
/**
* The deserialization information for the current model
* @param Ediscoveryroot The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoEdiscoveryroot(ediscoveryroot = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(ediscoveryroot)), { "cases": n => { ediscoveryroot.cases = n.getCollectionOfObjectValues(createCaseEscapedFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param EstimateStatisticsOperation The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoEstimateStatisticsOperation(estimateStatisticsOperation = {}) {
return Object.assign(Object.assign({}, deserializeIntoCaseOperation(estimateStatisticsOperation)), { "indexedItemCount": n => { estimateStatisticsOperation.indexedItemCount = n.getNumberValue(); }, "indexedItemsSize": n => { estimateStatisticsOperation.indexedItemsSize = n.getNumberValue(); }, "mailboxCount": n => { estimateStatisticsOperation.mailboxCount = n.getNumberValue(); }, "siteCount": n => { estimateStatisticsOperation.siteCount = n.getNumberValue(); }, "sourceCollection": n => { estimateStatisticsOperation.sourceCollection = n.getObjectValue(createSourceCollectionFromDiscriminatorValue); }, "unindexedItemCount": n => { estimateStatisticsOperation.unindexedItemCount = n.getNumberValue(); }, "unindexedItemsSize": n => { estimateStatisticsOperation.unindexedItemsSize = n.getNumberValue(); } });
}
/**
* The deserialization information for the current model
* @param LegalHold The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoLegalHold(legalHold = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(legalHold)), { "contentQuery": n => { legalHold.contentQuery = n.getStringValue(); }, "createdBy": n => { legalHold.createdBy = n.getObjectValue(createIdentitySetFromDiscriminatorValue); }, "createdDateTime": n => { legalHold.createdDateTime = n.getDateValue(); }, "description": n => { legalHold.description = n.getStringValue(); }, "displayName": n => { legalHold.displayName = n.getStringValue(); }, "errors": n => { legalHold.errors = n.getCollectionOfPrimitiveValues(); }, "isEnabled": n => { legalHold.isEnabled = n.getBooleanValue(); }, "lastModifiedBy": n => { legalHold.lastModifiedBy = n.getObjectValue(createIdentitySetFromDiscriminatorValue); }, "lastModifiedDateTime": n => { legalHold.lastModifiedDateTime = n.getDateValue(); }, "siteSources": n => { legalHold.siteSources = n.getCollectionOfObjectValues(createSiteSourceFromDiscriminatorValue); }, "status": n => { legalHold.status = n.getEnumValue(LegalHoldStatusObject); }, "unifiedGroupSources": n => { legalHold.unifiedGroupSources = n.getCollectionOfObjectValues(createUnifiedGroupSourceFromDiscriminatorValue); }, "userSources": n => { legalHold.userSources = n.getCollectionOfObjectValues(createUserSourceFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param LegalHoldCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoLegalHoldCollectionResponse(legalHoldCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(legalHoldCollectionResponse)), { "value": n => { legalHoldCollectionResponse.value = n.getCollectionOfObjectValues(createLegalHoldFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param NoncustodialDataSource The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoNoncustodialDataSource(noncustodialDataSource = {}) {
return Object.assign(Object.assign({}, deserializeIntoDataSourceContainer(noncustodialDataSource)), { "applyHoldToSource": n => { noncustodialDataSource.applyHoldToSource = n.getBooleanValue(); }, "dataSource": n => { noncustodialDataSource.dataSource = n.getObjectValue(createDataSourceFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param NoncustodialDataSourceCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoNoncustodialDataSourceCollectionResponse(noncustodialDataSourceCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(noncustodialDataSourceCollectionResponse)), { "value": n => { noncustodialDataSourceCollectionResponse.value = n.getCollectionOfObjectValues(createNoncustodialDataSourceFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param OcrSettings The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoOcrSettings(ocrSettings = {}) {
return {
"backingStoreEnabled": n => { ocrSettings.backingStoreEnabled = true; },
"isEnabled": n => { ocrSettings.isEnabled = n.getBooleanValue(); },
"maxImageSize": n => { ocrSettings.maxImageSize = n.getNumberValue(); },
"@odata.type": n => { ocrSettings.odataType = n.getStringValue(); },
"timeout": n => { ocrSettings.timeout = n.getDurationValue(); },
};
}
/**
* The deserialization information for the current model
* @param PurgeDataOperation The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoPurgeDataOperation(purgeDataOperation = {}) {
return Object.assign({}, deserializeIntoCaseOperation(purgeDataOperation));
}
/**
* The deserialization information for the current model
* @param RedundancyDetectionSettings The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoRedundancyDetectionSettings(redundancyDetectionSettings = {}) {
return {
"backingStoreEnabled": n => { redundancyDetectionSettings.backingStoreEnabled = true; },
"isEnabled": n => { redundancyDetectionSettings.isEnabled = n.getBooleanValue(); },
"maxWords": n => { redundancyDetectionSettings.maxWords = n.getNumberValue(); },
"minWords": n => { redundancyDetectionSettings.minWords = n.getNumberValue(); },
"@odata.type": n => { redundancyDetectionSettings.odataType = n.getStringValue(); },
"similarityThreshold": n => { redundancyDetectionSettings.similarityThreshold = n.getNumberValue(); },
};
}
/**
* The deserialization information for the current model
* @param ReviewSet The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoReviewSet(reviewSet = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(reviewSet)), { "createdBy": n => { reviewSet.createdBy = n.getObjectValue(createIdentitySetFromDiscriminatorValue); }, "createdDateTime": n => { reviewSet.createdDateTime = n.getDateValue(); }, "displayName": n => { reviewSet.displayName = n.getStringValue(); }, "queries": n => { reviewSet.queries = n.getCollectionOfObjectValues(createReviewSetQueryFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param ReviewSetCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoReviewSetCollectionResponse(reviewSetCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(reviewSetCollectionResponse)), { "value": n => { reviewSetCollectionResponse.value = n.getCollectionOfObjectValues(createReviewSetFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param ReviewSetQuery The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoReviewSetQuery(reviewSetQuery = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(reviewSetQuery)), { "createdBy": n => { reviewSetQuery.createdBy = n.getObjectValue(createIdentitySetFromDiscriminatorValue); }, "createdDateTime": n => { reviewSetQuery.createdDateTime = n.getDateValue(); }, "displayName": n => { reviewSetQuery.displayName = n.getStringValue(); }, "lastModifiedBy": n => { reviewSetQuery.lastModifiedBy = n.getObjectValue(createIdentitySetFromDiscriminatorValue); }, "lastModifiedDateTime": n => { reviewSetQuery.lastModifiedDateTime = n.getDateValue(); }, "query": n => { reviewSetQuery.query = n.getStringValue(); } });
}
/**
* The deserialization information for the current model
* @param ReviewSetQueryCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoReviewSetQueryCollectionResponse(reviewSetQueryCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(reviewSetQueryCollectionResponse)), { "value": n => { reviewSetQueryCollectionResponse.value = n.getCollectionOfObjectValues(createReviewSetQueryFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param SiteSource The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoSiteSource(siteSource = {}) {
return Object.assign(Object.assign({}, deserializeIntoDataSource(siteSource)), { "site": n => { siteSource.site = n.getObjectValue(createSiteFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param SiteSourceCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoSiteSourceCollectionResponse(siteSourceCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(siteSourceCollectionResponse)), { "value": n => { siteSourceCollectionResponse.value = n.getCollectionOfObjectValues(createSiteSourceFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param SourceCollection The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoSourceCollection(sourceCollection = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(sourceCollection)), { "additionalSources": n => { sourceCollection.additionalSources = n.getCollectionOfObjectValues(createDataSourceFromDiscriminatorValue); }, "addToReviewSetOperation": n => { sourceCollection.addToReviewSetOperation = n.getObjectValue(createAddToReviewSetOperationFromDiscriminatorValue); }, "contentQuery": n => { sourceCollection.contentQuery = n.getStringValue(); }, "createdBy": n => { sourceCollection.createdBy = n.getObjectValue(createIdentitySetFromDiscriminatorValue); }, "createdDateTime": n => { sourceCollection.createdDateTime = n.getDateValue(); }, "custodianSources": n => { sourceCollection.custodianSources = n.getCollectionOfObjectValues(createDataSourceFromDiscriminatorValue); }, "dataSourceScopes": n => { sourceCollection.dataSourceScopes = n.getCollectionOfEnumValues(DataSourceScopesObject); }, "description": n => { sourceCollection.description = n.getStringValue(); }, "displayName": n => { sourceCollection.displayName = n.getStringValue(); }, "lastEstimateStatisticsOperation": n => { sourceCollection.lastEstimateStatisticsOperation = n.getObjectValue(createEstimateStatisticsOperationFromDiscriminatorValue); }, "lastModifiedBy": n => { sourceCollection.lastModifiedBy = n.getObjectValue(createIdentitySetFromDiscriminatorValue); }, "lastModifiedDateTime": n => { sourceCollection.lastModifiedDateTime = n.getDateValue(); }, "noncustodialSources": n => { sourceCollection.noncustodialSources = n.getCollectionOfObjectValues(createNoncustodialDataSourceFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param SourceCollectionCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoSourceCollectionCollectionResponse(sourceCollectionCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(sourceCollectionCollectionResponse)), { "value": n => { sourceCollectionCollectionResponse.value = n.getCollectionOfObjectValues(createSourceCollectionFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param Tag The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoTag(tag = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(tag)), { "childSelectability": n => { tag.childSelectability = n.getEnumValue(ChildSelectabilityObject); }, "childTags": n => { tag.childTags = n.getCollectionOfObjectValues(createTagFromDiscriminatorValue); }, "createdBy": n => { tag.createdBy = n.getObjectValue(createIdentitySetFromDiscriminatorValue); }, "description": n => { tag.description = n.getStringValue(); }, "displayName": n => { tag.displayName = n.getStringValue(); }, "lastModifiedDateTime": n => { tag.lastModifiedDateTime = n.getDateValue(); }, "parent": n => { tag.parent = n.getObjectValue(createTagFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param TagCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoTagCollectionResponse(tagCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(tagCollectionResponse)), { "value": n => { tagCollectionResponse.value = n.getCollectionOfObjectValues(createTagFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param TagOperation The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoTagOperation(tagOperation = {}) {
return Object.assign({}, deserializeIntoCaseOperation(tagOperation));
}
/**
* The deserialization information for the current model
* @param TopicModelingSettings The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoTopicModelingSettings(topicModelingSettings = {}) {
return {
"backingStoreEnabled": n => { topicModelingSettings.backingStoreEnabled = true; },
"dynamicallyAdjustTopicCount": n => { topicModelingSettings.dynamicallyAdjustTopicCount = n.getBooleanValue(); },
"ignoreNumbers": n => { topicModelingSettings.ignoreNumbers = n.getBooleanValue(); },
"isEnabled": n => { topicModelingSettings.isEnabled = n.getBooleanValue(); },
"@odata.type": n => { topicModelingSettings.odataType = n.getStringValue(); },
"topicCount": n => { topicModelingSettings.topicCount = n.getNumberValue(); },
};
}
/**
* The deserialization information for the current model
* @param UnifiedGroupSource The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoUnifiedGroupSource(unifiedGroupSource = {}) {
return Object.assign(Object.assign({}, deserializeIntoDataSource(unifiedGroupSource)), { "group": n => { unifiedGroupSource.group = n.getObjectValue(createGroupFromDiscriminatorValue); }, "includedSources": n => { unifiedGroupSource.includedSources = n.getCollectionOfEnumValues(SourceTypeObject); } });
}
/**
* The deserialization information for the current model
* @param UnifiedGroupSourceCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoUnifiedGroupSourceCollectionResponse(unifiedGroupSourceCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(unifiedGroupSourceCollectionResponse)), { "value": n => { unifiedGroupSourceCollectionResponse.value = n.getCollectionOfObjectValues(createUnifiedGroupSourceFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param UserSource The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoUserSource(userSource = {}) {
return Object.assign(Object.assign({}, deserializeIntoDataSource(userSource)), { "email": n => { userSource.email = n.getStringValue(); }, "includedSources": n => { userSource.includedSources = n.getCollectionOfEnumValues(SourceTypeObject); }, "siteWebUrl": n => { userSource.siteWebUrl = n.getStringValue(); } });
}
/**
* The deserialization information for the current model
* @param UserSourceCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoUserSourceCollectionResponse(userSourceCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(userSourceCollectionResponse)), { "value": n => { userSourceCollectionResponse.value = n.getCollectionOfObjectValues(createUserSourceFromDiscriminatorValue); } });
}
/**
* Serializes information the current object
* @param AddToReviewSetOperation 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 serializeAddToReviewSetOperation(writer, addToReviewSetOperation = {}, isSerializingDerivedType = false) {
if (!addToReviewSetOperation || isSerializingDerivedType) {
return;
}
serializeCaseOperation(writer, addToReviewSetOperation, isSerializingDerivedType);
writer.writeObjectValue("reviewSet", addToReviewSetOperation.reviewSet, serializeReviewSet);
writer.writeObjectValue("sourceCollection", addToReviewSetOperation.sourceCollection, serializeSourceCollection);
}
/**
* Serializes information the current object
* @param CaseCollectionResponse 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 serializeCaseCollectionResponse(writer, caseCollectionResponse = {}, isSerializingDerivedType = false) {
if (!caseCollectionResponse || isSerializingDerivedType) {
return;
}
serializeBaseCollectionPaginationCountResponse(writer, caseCollectionResponse, isSerializingDerivedType);
writer.writeCollectionOfObjectValues("value", caseCollectionResponse.value, serializeCaseEscaped);
}
/**
* Serializes information the current object
* @param CaseEscaped 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 serializeCaseEscaped(writer, caseEscaped = {}, isSerializingDerivedType = false) {
if (!caseEscaped || isSerializingDerivedType) {
return;
}
serializeEntity(writer, caseEscaped, isSerializingDerivedType);
writer.writeObjectValue("closedBy", caseEscaped.closedBy, serializeIdentitySet);
writer.writeDateValue("closedDateTime", caseEscaped.closedDateTime);
writer.writeDateValue("createdDateTime", caseEscaped.createdDateTime);
writer.writeCollectionOfObjectValues("custodians", caseEscaped.custodians, serializeCustodian);
writer.writeStringValue("description", caseEscaped.description);
writer.writ