UNPKG

@microsoft/msgraph-sdk

Version:
1,119 lines 501 kB
/* tslint:disable */ /* eslint-disable */ // Generated by Microsoft Kiota // @ts-ignore import { createGroupFromDiscriminatorValue, createIdentitySetFromDiscriminatorValue, createPhysicalAddressFromDiscriminatorValue, createPublicErrorFromDiscriminatorValue, createResultInfoFromDiscriminatorValue, createSiteFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, deserializeIntoEntity, serializeBaseCollectionPaginationCountResponse, serializeEntity, serializeGroup, serializeIdentitySet, serializePhysicalAddress, serializePublicError, 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 {AlertCollectionResponse} */ // @ts-ignore export function createAlertCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoAlertCollectionResponse; } /** * 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 {AlertComment} */ // @ts-ignore export function createAlertCommentFromDiscriminatorValue(parseNode) { return deserializeIntoAlertComment; } /** * 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 {AlertEvidence} */ // @ts-ignore export function createAlertEvidenceFromDiscriminatorValue(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.security.amazonResourceEvidence": return deserializeIntoAmazonResourceEvidence; case "#microsoft.graph.security.analyzedMessageEvidence": return deserializeIntoAnalyzedMessageEvidence; case "#microsoft.graph.security.azureResourceEvidence": return deserializeIntoAzureResourceEvidence; case "#microsoft.graph.security.blobContainerEvidence": return deserializeIntoBlobContainerEvidence; case "#microsoft.graph.security.blobEvidence": return deserializeIntoBlobEvidence; case "#microsoft.graph.security.cloudApplicationEvidence": return deserializeIntoCloudApplicationEvidence; case "#microsoft.graph.security.cloudLogonRequestEvidence": return deserializeIntoCloudLogonRequestEvidence; case "#microsoft.graph.security.cloudLogonSessionEvidence": return deserializeIntoCloudLogonSessionEvidence; case "#microsoft.graph.security.containerEvidence": return deserializeIntoContainerEvidence; case "#microsoft.graph.security.containerImageEvidence": return deserializeIntoContainerImageEvidence; case "#microsoft.graph.security.containerRegistryEvidence": return deserializeIntoContainerRegistryEvidence; case "#microsoft.graph.security.deviceEvidence": return deserializeIntoDeviceEvidence; case "#microsoft.graph.security.dnsEvidence": return deserializeIntoDnsEvidence; case "#microsoft.graph.security.fileEvidence": return deserializeIntoFileEvidence; case "#microsoft.graph.security.fileHashEvidence": return deserializeIntoFileHashEvidence; case "#microsoft.graph.security.gitHubOrganizationEvidence": return deserializeIntoGitHubOrganizationEvidence; case "#microsoft.graph.security.gitHubRepoEvidence": return deserializeIntoGitHubRepoEvidence; case "#microsoft.graph.security.gitHubUserEvidence": return deserializeIntoGitHubUserEvidence; case "#microsoft.graph.security.googleCloudResourceEvidence": return deserializeIntoGoogleCloudResourceEvidence; case "#microsoft.graph.security.hostLogonSessionEvidence": return deserializeIntoHostLogonSessionEvidence; case "#microsoft.graph.security.ioTDeviceEvidence": return deserializeIntoIoTDeviceEvidence; case "#microsoft.graph.security.ipEvidence": return deserializeIntoIpEvidence; case "#microsoft.graph.security.kubernetesClusterEvidence": return deserializeIntoKubernetesClusterEvidence; case "#microsoft.graph.security.kubernetesControllerEvidence": return deserializeIntoKubernetesControllerEvidence; case "#microsoft.graph.security.kubernetesNamespaceEvidence": return deserializeIntoKubernetesNamespaceEvidence; case "#microsoft.graph.security.kubernetesPodEvidence": return deserializeIntoKubernetesPodEvidence; case "#microsoft.graph.security.kubernetesSecretEvidence": return deserializeIntoKubernetesSecretEvidence; case "#microsoft.graph.security.kubernetesServiceAccountEvidence": return deserializeIntoKubernetesServiceAccountEvidence; case "#microsoft.graph.security.kubernetesServiceEvidence": return deserializeIntoKubernetesServiceEvidence; case "#microsoft.graph.security.mailboxConfigurationEvidence": return deserializeIntoMailboxConfigurationEvidence; case "#microsoft.graph.security.mailboxEvidence": return deserializeIntoMailboxEvidence; case "#microsoft.graph.security.mailClusterEvidence": return deserializeIntoMailClusterEvidence; case "#microsoft.graph.security.malwareEvidence": return deserializeIntoMalwareEvidence; case "#microsoft.graph.security.networkConnectionEvidence": return deserializeIntoNetworkConnectionEvidence; case "#microsoft.graph.security.nicEvidence": return deserializeIntoNicEvidence; case "#microsoft.graph.security.oauthApplicationEvidence": return deserializeIntoOauthApplicationEvidence; case "#microsoft.graph.security.processEvidence": return deserializeIntoProcessEvidence; case "#microsoft.graph.security.registryKeyEvidence": return deserializeIntoRegistryKeyEvidence; case "#microsoft.graph.security.registryValueEvidence": return deserializeIntoRegistryValueEvidence; case "#microsoft.graph.security.sasTokenEvidence": return deserializeIntoSasTokenEvidence; case "#microsoft.graph.security.securityGroupEvidence": return deserializeIntoSecurityGroupEvidence; case "#microsoft.graph.security.servicePrincipalEvidence": return deserializeIntoServicePrincipalEvidence; case "#microsoft.graph.security.submissionMailEvidence": return deserializeIntoSubmissionMailEvidence; case "#microsoft.graph.security.teamsMessageEvidence": return deserializeIntoTeamsMessageEvidence; case "#microsoft.graph.security.urlEvidence": return deserializeIntoUrlEvidence; case "#microsoft.graph.security.userEvidence": return deserializeIntoUserEvidence; } } } return deserializeIntoAlertEvidence; } /** * 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 {Alert} */ // @ts-ignore export function createAlertFromDiscriminatorValue(parseNode) { return deserializeIntoAlert; } /** * 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 {AmazonResourceEvidence} */ // @ts-ignore export function createAmazonResourceEvidenceFromDiscriminatorValue(parseNode) { return deserializeIntoAmazonResourceEvidence; } /** * 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 {AnalyzedMessageEvidence} */ // @ts-ignore export function createAnalyzedMessageEvidenceFromDiscriminatorValue(parseNode) { return deserializeIntoAnalyzedMessageEvidence; } /** * 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 {ArticleCollectionResponse} */ // @ts-ignore export function createArticleCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoArticleCollectionResponse; } /** * 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 {Article} */ // @ts-ignore export function createArticleFromDiscriminatorValue(parseNode) { return deserializeIntoArticle; } /** * 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 {ArticleIndicatorCollectionResponse} */ // @ts-ignore export function createArticleIndicatorCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoArticleIndicatorCollectionResponse; } /** * 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 {ArticleIndicator} */ // @ts-ignore export function createArticleIndicatorFromDiscriminatorValue(parseNode) { return deserializeIntoArticleIndicator; } /** * 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 {Artifact} */ // @ts-ignore export function createArtifactFromDiscriminatorValue(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.security.host": return deserializeIntoHost; case "#microsoft.graph.security.hostComponent": return deserializeIntoHostComponent; case "#microsoft.graph.security.hostCookie": return deserializeIntoHostCookie; case "#microsoft.graph.security.hostname": return deserializeIntoHostname; case "#microsoft.graph.security.hostSslCertificate": return deserializeIntoHostSslCertificate; case "#microsoft.graph.security.hostTracker": return deserializeIntoHostTracker; case "#microsoft.graph.security.ipAddress": return deserializeIntoIpAddress; case "#microsoft.graph.security.passiveDnsRecord": return deserializeIntoPassiveDnsRecord; case "#microsoft.graph.security.sslCertificate": return deserializeIntoSslCertificate; case "#microsoft.graph.security.unclassifiedArtifact": return deserializeIntoUnclassifiedArtifact; } } } return deserializeIntoArtifact; } /** * 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 {AuthorityTemplateCollectionResponse} */ // @ts-ignore export function createAuthorityTemplateCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoAuthorityTemplateCollectionResponse; } /** * 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 {AuthorityTemplate} */ // @ts-ignore export function createAuthorityTemplateFromDiscriminatorValue(parseNode) { return deserializeIntoAuthorityTemplate; } /** * 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 {AutonomousSystem} */ // @ts-ignore export function createAutonomousSystemFromDiscriminatorValue(parseNode) { return deserializeIntoAutonomousSystem; } /** * 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 {AzureResourceEvidence} */ // @ts-ignore export function createAzureResourceEvidenceFromDiscriminatorValue(parseNode) { return deserializeIntoAzureResourceEvidence; } /** * 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 {BlobContainerEvidence} */ // @ts-ignore export function createBlobContainerEvidenceFromDiscriminatorValue(parseNode) { return deserializeIntoBlobContainerEvidence; } /** * 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 {BlobEvidence} */ // @ts-ignore export function createBlobEvidenceFromDiscriminatorValue(parseNode) { return deserializeIntoBlobEvidence; } /** * 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) { 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.security.ediscoveryCase": return deserializeIntoEdiscoveryCase; } } } 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 {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.security.ediscoveryAddToReviewSetOperation": return deserializeIntoEdiscoveryAddToReviewSetOperation; case "#microsoft.graph.security.ediscoveryEstimateOperation": return deserializeIntoEdiscoveryEstimateOperation; case "#microsoft.graph.security.ediscoveryExportOperation": return deserializeIntoEdiscoveryExportOperation; case "#microsoft.graph.security.ediscoveryHoldOperation": return deserializeIntoEdiscoveryHoldOperation; case "#microsoft.graph.security.ediscoveryIndexOperation": return deserializeIntoEdiscoveryIndexOperation; case "#microsoft.graph.security.ediscoveryPurgeDataOperation": return deserializeIntoEdiscoveryPurgeDataOperation; case "#microsoft.graph.security.ediscoverySearchExportOperation": return deserializeIntoEdiscoverySearchExportOperation; case "#microsoft.graph.security.ediscoveryTagOperation": return deserializeIntoEdiscoveryTagOperation; } } } 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 {CasesRoot} */ // @ts-ignore export function createCasesRootFromDiscriminatorValue(parseNode) { return deserializeIntoCasesRoot; } /** * 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 {CategoryTemplateCollectionResponse} */ // @ts-ignore export function createCategoryTemplateCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoCategoryTemplateCollectionResponse; } /** * 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 {CategoryTemplate} */ // @ts-ignore export function createCategoryTemplateFromDiscriminatorValue(parseNode) { return deserializeIntoCategoryTemplate; } /** * 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 {CitationTemplateCollectionResponse} */ // @ts-ignore export function createCitationTemplateCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoCitationTemplateCollectionResponse; } /** * 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 {CitationTemplate} */ // @ts-ignore export function createCitationTemplateFromDiscriminatorValue(parseNode) { return deserializeIntoCitationTemplate; } /** * 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 {CloudApplicationEvidence} */ // @ts-ignore export function createCloudApplicationEvidenceFromDiscriminatorValue(parseNode) { return deserializeIntoCloudApplicationEvidence; } /** * 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 {CloudLogonRequestEvidence} */ // @ts-ignore export function createCloudLogonRequestEvidenceFromDiscriminatorValue(parseNode) { return deserializeIntoCloudLogonRequestEvidence; } /** * 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 {CloudLogonSessionEvidence} */ // @ts-ignore export function createCloudLogonSessionEvidenceFromDiscriminatorValue(parseNode) { return deserializeIntoCloudLogonSessionEvidence; } /** * 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 {ContainerEvidence} */ // @ts-ignore export function createContainerEvidenceFromDiscriminatorValue(parseNode) { return deserializeIntoContainerEvidence; } /** * 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 {ContainerImageEvidence} */ // @ts-ignore export function createContainerImageEvidenceFromDiscriminatorValue(parseNode) { return deserializeIntoContainerImageEvidence; } /** * 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 {ContainerRegistryEvidence} */ // @ts-ignore export function createContainerRegistryEvidenceFromDiscriminatorValue(parseNode) { return deserializeIntoContainerRegistryEvidence; } /** * 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 {CvssSummary} */ // @ts-ignore export function createCvssSummaryFromDiscriminatorValue(parseNode) { return deserializeIntoCvssSummary; } /** * 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 {DataSet} */ // @ts-ignore export function createDataSetFromDiscriminatorValue(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.security.ediscoveryReviewSet": return deserializeIntoEdiscoveryReviewSet; } } } return deserializeIntoDataSet; } /** * 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.security.ediscoveryCustodian": return deserializeIntoEdiscoveryCustodian; case "#microsoft.graph.security.ediscoveryNoncustodialDataSource": return deserializeIntoEdiscoveryNoncustodialDataSource; } } } 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.security.siteSource": return deserializeIntoSiteSource; case "#microsoft.graph.security.unifiedGroupSource": return deserializeIntoUnifiedGroupSource; case "#microsoft.graph.security.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 {DepartmentTemplateCollectionResponse} */ // @ts-ignore export function createDepartmentTemplateCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoDepartmentTemplateCollectionResponse; } /** * 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 {DepartmentTemplate} */ // @ts-ignore export function createDepartmentTemplateFromDiscriminatorValue(parseNode) { return deserializeIntoDepartmentTemplate; } /** * 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 {DeploymentAccessKeyType} */ // @ts-ignore export function createDeploymentAccessKeyTypeFromDiscriminatorValue(parseNode) { return deserializeIntoDeploymentAccessKeyType; } /** * 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 {DeviceEvidence} */ // @ts-ignore export function createDeviceEvidenceFromDiscriminatorValue(parseNode) { return deserializeIntoDeviceEvidence; } /** * 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 {Dictionary} */ // @ts-ignore export function createDictionaryFromDiscriminatorValue(parseNode) { return deserializeIntoDictionary; } /** * 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 {DispositionReviewStageCollectionResponse} */ // @ts-ignore export function createDispositionReviewStageCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoDispositionReviewStageCollectionResponse; } /** * 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 {DispositionReviewStage} */ // @ts-ignore export function createDispositionReviewStageFromDiscriminatorValue(parseNode) { return deserializeIntoDispositionReviewStage; } /** * 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 {DnsEvidence} */ // @ts-ignore export function createDnsEvidenceFromDiscriminatorValue(parseNode) { return deserializeIntoDnsEvidence; } /** * 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 {EdiscoveryAddToReviewSetOperation} */ // @ts-ignore export function createEdiscoveryAddToReviewSetOperationFromDiscriminatorValue(parseNode) { return deserializeIntoEdiscoveryAddToReviewSetOperation; } /** * 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 {EdiscoveryCaseCollectionResponse} */ // @ts-ignore export function createEdiscoveryCaseCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoEdiscoveryCaseCollectionResponse; } /** * 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 {EdiscoveryCase} */ // @ts-ignore export function createEdiscoveryCaseFromDiscriminatorValue(parseNode) { return deserializeIntoEdiscoveryCase; } /** * 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 {EdiscoveryCaseSettings} */ // @ts-ignore export function createEdiscoveryCaseSettingsFromDiscriminatorValue(parseNode) { return deserializeIntoEdiscoveryCaseSettings; } /** * 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 {EdiscoveryCustodianCollectionResponse} */ // @ts-ignore export function createEdiscoveryCustodianCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoEdiscoveryCustodianCollectionResponse; } /** * 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 {EdiscoveryCustodian} */ // @ts-ignore export function createEdiscoveryCustodianFromDiscriminatorValue(parseNode) { return deserializeIntoEdiscoveryCustodian; } /** * 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 {EdiscoveryEstimateOperation} */ // @ts-ignore export function createEdiscoveryEstimateOperationFromDiscriminatorValue(parseNode) { return deserializeIntoEdiscoveryEstimateOperation; } /** * 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 {EdiscoveryExportOperation} */ // @ts-ignore export function createEdiscoveryExportOperationFromDiscriminatorValue(parseNode) { return deserializeIntoEdiscoveryExportOperation; } /** * 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 {EdiscoveryHoldOperation} */ // @ts-ignore export function createEdiscoveryHoldOperationFromDiscriminatorValue(parseNode) { return deserializeIntoEdiscoveryHoldOperation; } /** * 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 {EdiscoveryIndexOperation} */ // @ts-ignore export function createEdiscoveryIndexOperationFromDiscriminatorValue(parseNode) { return deserializeIntoEdiscoveryIndexOperation; } /** * 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 {EdiscoveryNoncustodialDataSourceCollectionResponse} */ // @ts-ignore export function createEdiscoveryNoncustodialDataSourceCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoEdiscoveryNoncustodialDataSourceCollectionResponse; } /** * 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 {EdiscoveryNoncustodialDataSource} */ // @ts-ignore export function createEdiscoveryNoncustodialDataSourceFromDiscriminatorValue(parseNode) { return deserializeIntoEdiscoveryNoncustodialDataSource; } /** * 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 {EdiscoveryPurgeDataOperation} */ // @ts-ignore export function createEdiscoveryPurgeDataOperationFromDiscriminatorValue(parseNode) { return deserializeIntoEdiscoveryPurgeDataOperation; } /** * 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 {EdiscoveryReviewSetCollectionResponse} */ // @ts-ignore export function createEdiscoveryReviewSetCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoEdiscoveryReviewSetCollectionResponse; } /** * 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 {EdiscoveryReviewSet} */ // @ts-ignore export function createEdiscoveryReviewSetFromDiscriminatorValue(parseNode) { return deserializeIntoEdiscoveryReviewSet; } /** * 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 {EdiscoveryReviewSetQueryCollectionResponse} */ // @ts-ignore export function createEdiscoveryReviewSetQueryCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoEdiscoveryReviewSetQueryCollectionResponse; } /** * 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 {EdiscoveryReviewSetQuery} */ // @ts-ignore export function createEdiscoveryReviewSetQueryFromDiscriminatorValue(parseNode) { return deserializeIntoEdiscoveryReviewSetQuery; } /** * 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 {EdiscoveryReviewTagCollectionResponse} */ // @ts-ignore export function createEdiscoveryReviewTagCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoEdiscoveryReviewTagCollectionResponse; } /** * 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 {EdiscoveryReviewTag} */ // @ts-ignore export function createEdiscoveryReviewTagFromDiscriminatorValue(parseNode) { return deserializeIntoEdiscoveryReviewTag; } /** * 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 {EdiscoverySearchCollectionResponse} */ // @ts-ignore export function createEdiscoverySearchCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoEdiscoverySearchCollectionResponse; } /** * 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 {EdiscoverySearchExportOperation} */ // @ts-ignore export function createEdiscoverySearchExportOperationFromDiscriminatorValue(parseNode) { return deserializeIntoEdiscoverySearchExportOperation; } /** * 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 {EdiscoverySearch} */ // @ts-ignore export function createEdiscoverySearchFromDiscriminatorValue(parseNode) { return deserializeIntoEdiscoverySearch; } /** * 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 {EdiscoveryTagOperation} */ // @ts-ignore export function createEdiscoveryTagOperationFromDiscriminatorValue(parseNode) { return deserializeIntoEdiscoveryTagOperation; } /** * 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 {EmailSender} */ // @ts-ignore export function createEmailSenderFromDiscriminatorValue(parseNode) { return deserializeIntoEmailSender; } /** * 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 {EventPropagationResult} */ // @ts-ignore export function createEventPropagationResultFromDiscriminatorValue(parseNode) { return deserializeIntoEventPropagationResult; } /** * 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 {EventQuery} */ // @ts-ignore export function createEventQueryFromDiscriminatorValue(parseNode) { return deserializeIntoEventQuery; } /** * 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 {ExportFileMetadata} */ // @ts-ignore export function createExportFileMetadataFromDiscriminatorValue(parseNode) { return deserializeIntoExportFileMetadata; } /** * 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 {FileDetails} */ // @ts-ignore export function createFileDetailsFromDiscriminatorValue(parseNode) { return deserializeIntoFileDetails; } /** * 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 {FileEvidence} */ // @ts-ignore export function createFileEvidenceFromDiscriminatorValue(parseNode) { return deserializeIntoFileEvidence; } /** * 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 {FileHashEvidence} */ // @ts-ignore export function createFileHashEvidenceFromDiscriminatorValue(parseNode) { return deserializeIntoFileHashEvidence; } /** * 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 {FileHash} */ // @ts-ignore export function createFileHashFromDiscriminatorValue(parseNode) { return deserializeIntoFileHash; } /** * 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 {FilePlanAppliedCategory} */ // @ts-ignore export function createFilePlanAppliedCategoryFromDiscriminatorValue(parseNode) { return deserializeIntoFilePlanAppliedCategory; } /** * 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 {FilePlanAuthority} */ // @ts-ignore export function createFilePlanAuthorityFromDiscriminatorValue(parseNode) { return deserializeIntoFilePlanAuthority; } /** * 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 {FilePlanCitation} */ // @ts-ignore export function createFilePlanCitationFromDiscriminatorValue(parseNode) { return deserializeIntoFilePlanCitation; } /** * 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 {FilePlanDepartment} */ // @ts-ignore export function createFilePlanDepartmentFromDiscriminatorValue(parseNode) { return deserializeIntoFilePlanDepartment; } /** * 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 {FilePlanDescriptorBase} */ // @ts-ignore export function createFilePlanDescriptorBaseFromDiscriminatorValue(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.security.filePlanAppliedCategory": return deserializeIntoFilePlanAppliedCategory; case "#microsoft.graph.security.filePlanAuthority": return deserializeIntoFilePlanAuthority; case "#microsoft.graph.security.filePlanCitation": return deserializeIntoFilePlanCitation; case "#microsoft.graph.security.filePlanDepartment": return deserializeIntoFilePlanDepartment; case "#microsoft.graph.security.filePlanReference": return deserializeIntoFilePlanReference; case "#microsoft.graph.security.filePlanSubcategory": return deserializeIntoFilePlanSubcategory; } } } return deserializeIntoFilePlanDescriptorBase; } /** * 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 {FilePlanDescriptor} */ // @ts-ignore export function createFilePlanDescriptorFromDiscriminatorValue(parseNode) { return deserializeIntoFilePlanDescriptor; } /** * 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 {FilePlanDescriptorTemplate} */ // @ts-ignore export function createFilePlanDescriptorTemplateFromDiscriminatorValue(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.security.authorityTemplate": return deserializeIntoAuthorityTemplate; case "#microsoft.graph.security.categoryTemplate": return deserializeIntoCategoryTemplate; case "#microsoft.graph.security.citationTemplate": return deserializeIntoCitationTemplate; case "#microsoft.graph.security.departmentTemplate": return deserializeIntoDepartmentTemplate; case "#microsoft.graph.security.filePlanReferenceTemplate": return deserializeIntoFilePlanReferenceTemplate; case "#microsoft.graph.security.subcategoryTemplate": return deserializeIntoSubcategoryTemplate; } } } return deserializeIntoFilePlanDescriptorTemplate; } /** * 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 {FilePlanReference} */ // @ts-ignore export function createFilePlanReferenceFromDiscriminatorValue(parseNode) { return deserializeIntoFilePlanReference; } /** * 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 {FilePlanReferenceTemplateCollectionResponse} */ // @ts-ignore export function createFilePlanReferenceTemplateCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoFilePlanReferenceTemplateCollectionResponse; } /** * 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 {FilePlanReferenceTemplate} */ // @ts-ignore export function createFilePlanReferenceTemplateFromDiscriminatorValue(parseNode) { return deserializeIntoFilePlanReferenceTemplate; } /** * 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 {FilePlanSubcategory} */ // @ts-ignore export function createFilePlanSubcategoryFromDiscriminatorValue(parseNode) { return deserializeIntoFilePlanSubcategory; } /** * 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 {FormattedContent} */ // @ts-ignore export function createFormattedContentFromDiscriminatorValue(parseNode) { return deserializeIntoFormattedContent; } /** * 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 {GeoLocation} */ // @ts-ignore export function createGeoLocationFromDiscriminatorValue(parseNode) { return deserializeIntoGeoLocation; } /** * 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 {GitHubOrganizationEvidence} */ // @ts-ignore export function createGitHubOrganizationEvidenceFromDiscriminatorValue(parseNode) { return deserializeIntoGitHubOrganizationEvidence; } /** * 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 {GitHubRepoEvidence} */ // @ts-ignore export function createGitHubRepoEvidenceFromDiscriminatorValue(parseNode) { return deserializeIntoGitHubRepoEvidence; } /** * 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 {GitHubUserEvidence} */ // @ts-ignore export function createGitHubUserEvidenceFromDiscriminatorValue(parseNode) { return deserializeIntoGitHubUserEvidence; } /** * 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 {GoogleCloudResourceEvidence} */ // @ts-ignore export function createGoogleCloudResourceEvidenceFromDiscriminatorValue(parseNode) { return deserializeIntoGoogleCloudResourceEvidence; } /** * 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 {HealthIssueCollectionResponse} */ // @ts-ignore export function createHealthIssueCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoHealthIssueCollectionResponse; } /** * 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 {HealthIssue} */ // @ts-ignore export function createHealthIssueFromDiscriminatorValue(parseNode) { return deserializeIntoHealthIssue; } /** * 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 {HostCollectionResponse} */ // @ts-ignore export function createHostCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoHostCollectionResponse; } /** * Creates a new instance of the appropriate class based on discriminator value * @param pa