@microsoft/msgraph-beta-sdk
Version:
Microsoft Graph Beta JavaScript client library
1,170 lines • 304 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createDeviceFromDiscriminatorValue as I35341c37cb1156f9816804144a0da7ca28a5bc5a466a4a6c4dd18a73c9fef2f1, createServicePrincipalFromDiscriminatorValue, createUserFromDiscriminatorValue as I76468935476edf00ba62610ba93d13d7194a94fc3b9375d1eacaf60b72b6323e, deserializeIntoBaseCollectionPaginationCountResponse, deserializeIntoDictionary, deserializeIntoEntity, serializeBaseCollectionPaginationCountResponse, serializeDevice as I93801fe1d0700e2dfbaabaac8a107eaad07c485b973484cdebd0254423e093c4, serializeDictionary, serializeEntity, serializeServicePrincipal, serializeUser as I52fb59bcf4aad10419ab5ac07e13466b759ff69b47806ecf063de624d08c4da3 } 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 {AlertAction}
*/
// @ts-ignore
export function createAlertActionFromDiscriminatorValue(parseNode) {
return deserializeIntoAlertAction;
}
/**
* 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 {AlertFrequencyPoint}
*/
// @ts-ignore
export function createAlertFrequencyPointFromDiscriminatorValue(parseNode) {
return deserializeIntoAlertFrequencyPoint;
}
/**
* 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 {AlertSeveritySummary}
*/
// @ts-ignore
export function createAlertSeveritySummaryFromDiscriminatorValue(parseNode) {
return deserializeIntoAlertSeveritySummary;
}
/**
* 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 {AlertSummary}
*/
// @ts-ignore
export function createAlertSummaryFromDiscriminatorValue(parseNode) {
return deserializeIntoAlertSummary;
}
/**
* 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 {ApplicationAnalyticsUsagePoint}
*/
// @ts-ignore
export function createApplicationAnalyticsUsagePointFromDiscriminatorValue(parseNode) {
return deserializeIntoApplicationAnalyticsUsagePoint;
}
/**
* 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 {ApplicationSnapshot}
*/
// @ts-ignore
export function createApplicationSnapshotFromDiscriminatorValue(parseNode) {
return deserializeIntoApplicationSnapshot;
}
/**
* 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 {AssociatedBranch}
*/
// @ts-ignore
export function createAssociatedBranchFromDiscriminatorValue(parseNode) {
return deserializeIntoAssociatedBranch;
}
/**
* 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 {Association}
*/
// @ts-ignore
export function createAssociationFromDiscriminatorValue(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.networkaccess.associatedBranch":
return deserializeIntoAssociatedBranch;
}
}
}
return deserializeIntoAssociation;
}
/**
* 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 {BgpConfiguration}
*/
// @ts-ignore
export function createBgpConfigurationFromDiscriminatorValue(parseNode) {
return deserializeIntoBgpConfiguration;
}
/**
* 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 {BranchConnectivityConfiguration}
*/
// @ts-ignore
export function createBranchConnectivityConfigurationFromDiscriminatorValue(parseNode) {
return deserializeIntoBranchConnectivityConfiguration;
}
/**
* 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 {BranchSiteCollectionResponse}
*/
// @ts-ignore
export function createBranchSiteCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoBranchSiteCollectionResponse;
}
/**
* 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 {BranchSite}
*/
// @ts-ignore
export function createBranchSiteFromDiscriminatorValue(parseNode) {
return deserializeIntoBranchSite;
}
/**
* 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 {CloudApplicationMetadata}
*/
// @ts-ignore
export function createCloudApplicationMetadataFromDiscriminatorValue(parseNode) {
return deserializeIntoCloudApplicationMetadata;
}
/**
* 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 {CloudApplicationReport}
*/
// @ts-ignore
export function createCloudApplicationReportFromDiscriminatorValue(parseNode) {
return deserializeIntoCloudApplicationReport;
}
/**
* 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 {ConditionalAccessPolicyCollectionResponse}
*/
// @ts-ignore
export function createConditionalAccessPolicyCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoConditionalAccessPolicyCollectionResponse;
}
/**
* 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 {ConditionalAccessPolicy}
*/
// @ts-ignore
export function createConditionalAccessPolicyFromDiscriminatorValue(parseNode) {
return deserializeIntoConditionalAccessPolicy;
}
/**
* 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 {ConditionalAccessSettings}
*/
// @ts-ignore
export function createConditionalAccessSettingsFromDiscriminatorValue(parseNode) {
return deserializeIntoConditionalAccessSettings;
}
/**
* 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 {ConnectionCollectionResponse}
*/
// @ts-ignore
export function createConnectionCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoConnectionCollectionResponse;
}
/**
* 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 {Connection}
*/
// @ts-ignore
export function createConnectionFromDiscriminatorValue(parseNode) {
return deserializeIntoConnection;
}
/**
* 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 {ConnectionSummary}
*/
// @ts-ignore
export function createConnectionSummaryFromDiscriminatorValue(parseNode) {
return deserializeIntoConnectionSummary;
}
/**
* 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 {ConnectivityConfigurationLinkCollectionResponse}
*/
// @ts-ignore
export function createConnectivityConfigurationLinkCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoConnectivityConfigurationLinkCollectionResponse;
}
/**
* 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 {ConnectivityConfigurationLink}
*/
// @ts-ignore
export function createConnectivityConfigurationLinkFromDiscriminatorValue(parseNode) {
return deserializeIntoConnectivityConfigurationLink;
}
/**
* 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 {Connectivity}
*/
// @ts-ignore
export function createConnectivityFromDiscriminatorValue(parseNode) {
return deserializeIntoConnectivity;
}
/**
* 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 {CrossTenantAccess}
*/
// @ts-ignore
export function createCrossTenantAccessFromDiscriminatorValue(parseNode) {
return deserializeIntoCrossTenantAccess;
}
/**
* 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 {CrossTenantAccessSettings}
*/
// @ts-ignore
export function createCrossTenantAccessSettingsFromDiscriminatorValue(parseNode) {
return deserializeIntoCrossTenantAccessSettings;
}
/**
* 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 {CrossTenantSummary}
*/
// @ts-ignore
export function createCrossTenantSummaryFromDiscriminatorValue(parseNode) {
return deserializeIntoCrossTenantSummary;
}
/**
* 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 {Destination}
*/
// @ts-ignore
export function createDestinationFromDiscriminatorValue(parseNode) {
return deserializeIntoDestination;
}
/**
* 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 {DestinationSummary}
*/
// @ts-ignore
export function createDestinationSummaryFromDiscriminatorValue(parseNode) {
return deserializeIntoDestinationSummary;
}
/**
* 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 {Device}
*/
// @ts-ignore
export function createDeviceFromDiscriminatorValue(parseNode) {
return deserializeIntoDevice;
}
/**
* 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 {DeviceLinkCollectionResponse}
*/
// @ts-ignore
export function createDeviceLinkCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoDeviceLinkCollectionResponse;
}
/**
* 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 {DeviceLink}
*/
// @ts-ignore
export function createDeviceLinkFromDiscriminatorValue(parseNode) {
return deserializeIntoDeviceLink;
}
/**
* 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 {DeviceUsageSummary}
*/
// @ts-ignore
export function createDeviceUsageSummaryFromDiscriminatorValue(parseNode) {
return deserializeIntoDeviceUsageSummary;
}
/**
* 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 {DiscoveredApplicationSegmentReport}
*/
// @ts-ignore
export function createDiscoveredApplicationSegmentReportFromDiscriminatorValue(parseNode) {
return deserializeIntoDiscoveredApplicationSegmentReport;
}
/**
* 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 {EnterpriseApplicationReport}
*/
// @ts-ignore
export function createEnterpriseApplicationReportFromDiscriminatorValue(parseNode) {
return deserializeIntoEnterpriseApplicationReport;
}
/**
* 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 {EntitiesSummary}
*/
// @ts-ignore
export function createEntitiesSummaryFromDiscriminatorValue(parseNode) {
return deserializeIntoEntitiesSummary;
}
/**
* 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 {ExtendedProperties}
*/
// @ts-ignore
export function createExtendedPropertiesFromDiscriminatorValue(parseNode) {
return deserializeIntoExtendedProperties;
}
/**
* 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 {ExternalCertificateAuthorityCertificateCollectionResponse}
*/
// @ts-ignore
export function createExternalCertificateAuthorityCertificateCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoExternalCertificateAuthorityCertificateCollectionResponse;
}
/**
* 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 {ExternalCertificateAuthorityCertificate}
*/
// @ts-ignore
export function createExternalCertificateAuthorityCertificateFromDiscriminatorValue(parseNode) {
return deserializeIntoExternalCertificateAuthorityCertificate;
}
/**
* 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 {FilteringPolicyCollectionResponse}
*/
// @ts-ignore
export function createFilteringPolicyCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoFilteringPolicyCollectionResponse;
}
/**
* 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 {FilteringPolicy}
*/
// @ts-ignore
export function createFilteringPolicyFromDiscriminatorValue(parseNode) {
return deserializeIntoFilteringPolicy;
}
/**
* 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 {FilteringPolicyLink}
*/
// @ts-ignore
export function createFilteringPolicyLinkFromDiscriminatorValue(parseNode) {
return deserializeIntoFilteringPolicyLink;
}
/**
* 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 {FilteringProfileCollectionResponse}
*/
// @ts-ignore
export function createFilteringProfileCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoFilteringProfileCollectionResponse;
}
/**
* 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 {FilteringProfile}
*/
// @ts-ignore
export function createFilteringProfileFromDiscriminatorValue(parseNode) {
return deserializeIntoFilteringProfile;
}
/**
* 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 {FilteringRule}
*/
// @ts-ignore
export function createFilteringRuleFromDiscriminatorValue(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.networkaccess.fqdnFilteringRule":
return deserializeIntoFqdnFilteringRule;
case "#microsoft.graph.networkaccess.webCategoryFilteringRule":
return deserializeIntoWebCategoryFilteringRule;
}
}
}
return deserializeIntoFilteringRule;
}
/**
* 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 {ForwardingOptions}
*/
// @ts-ignore
export function createForwardingOptionsFromDiscriminatorValue(parseNode) {
return deserializeIntoForwardingOptions;
}
/**
* 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 {ForwardingPolicyCollectionResponse}
*/
// @ts-ignore
export function createForwardingPolicyCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoForwardingPolicyCollectionResponse;
}
/**
* 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 {ForwardingPolicy}
*/
// @ts-ignore
export function createForwardingPolicyFromDiscriminatorValue(parseNode) {
return deserializeIntoForwardingPolicy;
}
/**
* 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 {ForwardingPolicyLink}
*/
// @ts-ignore
export function createForwardingPolicyLinkFromDiscriminatorValue(parseNode) {
return deserializeIntoForwardingPolicyLink;
}
/**
* 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 {ForwardingProfileCollectionResponse}
*/
// @ts-ignore
export function createForwardingProfileCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoForwardingProfileCollectionResponse;
}
/**
* 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 {ForwardingProfile}
*/
// @ts-ignore
export function createForwardingProfileFromDiscriminatorValue(parseNode) {
return deserializeIntoForwardingProfile;
}
/**
* 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 {ForwardingRule}
*/
// @ts-ignore
export function createForwardingRuleFromDiscriminatorValue(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.networkaccess.internetAccessForwardingRule":
return deserializeIntoInternetAccessForwardingRule;
case "#microsoft.graph.networkaccess.m365ForwardingRule":
return deserializeIntoM365ForwardingRule;
case "#microsoft.graph.networkaccess.privateAccessForwardingRule":
return deserializeIntoPrivateAccessForwardingRule;
}
}
}
return deserializeIntoForwardingRule;
}
/**
* 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 {FqdnFilteringRule}
*/
// @ts-ignore
export function createFqdnFilteringRuleFromDiscriminatorValue(parseNode) {
return deserializeIntoFqdnFilteringRule;
}
/**
* 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 {Fqdn}
*/
// @ts-ignore
export function createFqdnFromDiscriminatorValue(parseNode) {
return deserializeIntoFqdn;
}
/**
* 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 {Headers}
*/
// @ts-ignore
export function createHeadersFromDiscriminatorValue(parseNode) {
return deserializeIntoHeaders;
}
/**
* 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 {InternetAccessForwardingRule}
*/
// @ts-ignore
export function createInternetAccessForwardingRuleFromDiscriminatorValue(parseNode) {
return deserializeIntoInternetAccessForwardingRule;
}
/**
* 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 {IpAddress}
*/
// @ts-ignore
export function createIpAddressFromDiscriminatorValue(parseNode) {
return deserializeIntoIpAddress;
}
/**
* 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 {IpRange}
*/
// @ts-ignore
export function createIpRangeFromDiscriminatorValue(parseNode) {
return deserializeIntoIpRange;
}
/**
* 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 {IpSubnet}
*/
// @ts-ignore
export function createIpSubnetFromDiscriminatorValue(parseNode) {
return deserializeIntoIpSubnet;
}
/**
* 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 {LocalConnectivityConfiguration}
*/
// @ts-ignore
export function createLocalConnectivityConfigurationFromDiscriminatorValue(parseNode) {
return deserializeIntoLocalConnectivityConfiguration;
}
/**
* 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 {Logs}
*/
// @ts-ignore
export function createLogsFromDiscriminatorValue(parseNode) {
return deserializeIntoLogs;
}
/**
* 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 {M365ForwardingRule}
*/
// @ts-ignore
export function createM365ForwardingRuleFromDiscriminatorValue(parseNode) {
return deserializeIntoM365ForwardingRule;
}
/**
* 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 {NetworkAccessRoot}
*/
// @ts-ignore
export function createNetworkAccessRootFromDiscriminatorValue(parseNode) {
return deserializeIntoNetworkAccessRoot;
}
/**
* 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 {NetworkAccessTrafficCollectionResponse}
*/
// @ts-ignore
export function createNetworkAccessTrafficCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoNetworkAccessTrafficCollectionResponse;
}
/**
* 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 {NetworkAccessTraffic}
*/
// @ts-ignore
export function createNetworkAccessTrafficFromDiscriminatorValue(parseNode) {
return deserializeIntoNetworkAccessTraffic;
}
/**
* 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 {PeerConnectivityConfiguration}
*/
// @ts-ignore
export function createPeerConnectivityConfigurationFromDiscriminatorValue(parseNode) {
return deserializeIntoPeerConnectivityConfiguration;
}
/**
* 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 {Policy}
*/
// @ts-ignore
export function createPolicyFromDiscriminatorValue(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.networkaccess.filteringPolicy":
return deserializeIntoFilteringPolicy;
case "#microsoft.graph.networkaccess.forwardingPolicy":
return deserializeIntoForwardingPolicy;
case "#microsoft.graph.networkaccess.threatIntelligencePolicy":
return deserializeIntoThreatIntelligencePolicy;
case "#microsoft.graph.networkaccess.tlsInspectionPolicy":
return deserializeIntoTlsInspectionPolicy;
}
}
}
return deserializeIntoPolicy;
}
/**
* 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 {PolicyLinkCollectionResponse}
*/
// @ts-ignore
export function createPolicyLinkCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoPolicyLinkCollectionResponse;
}
/**
* 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 {PolicyLink}
*/
// @ts-ignore
export function createPolicyLinkFromDiscriminatorValue(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.networkaccess.filteringPolicyLink":
return deserializeIntoFilteringPolicyLink;
case "#microsoft.graph.networkaccess.forwardingPolicyLink":
return deserializeIntoForwardingPolicyLink;
case "#microsoft.graph.networkaccess.threatIntelligencePolicyLink":
return deserializeIntoThreatIntelligencePolicyLink;
case "#microsoft.graph.networkaccess.tlsInspectionPolicyLink":
return deserializeIntoTlsInspectionPolicyLink;
}
}
}
return deserializeIntoPolicyLink;
}
/**
* 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 {PolicyRuleCollectionResponse}
*/
// @ts-ignore
export function createPolicyRuleCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoPolicyRuleCollectionResponse;
}
/**
* 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 {PolicyRuleDelta}
*/
// @ts-ignore
export function createPolicyRuleDeltaFromDiscriminatorValue(parseNode) {
return deserializeIntoPolicyRuleDelta;
}
/**
* 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 {PolicyRule}
*/
// @ts-ignore
export function createPolicyRuleFromDiscriminatorValue(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.networkaccess.filteringRule":
return deserializeIntoFilteringRule;
case "#microsoft.graph.networkaccess.forwardingRule":
return deserializeIntoForwardingRule;
case "#microsoft.graph.networkaccess.fqdnFilteringRule":
return deserializeIntoFqdnFilteringRule;
case "#microsoft.graph.networkaccess.internetAccessForwardingRule":
return deserializeIntoInternetAccessForwardingRule;
case "#microsoft.graph.networkaccess.m365ForwardingRule":
return deserializeIntoM365ForwardingRule;
case "#microsoft.graph.networkaccess.privateAccessForwardingRule":
return deserializeIntoPrivateAccessForwardingRule;
case "#microsoft.graph.networkaccess.threatIntelligenceRule":
return deserializeIntoThreatIntelligenceRule;
case "#microsoft.graph.networkaccess.tlsInspectionRule":
return deserializeIntoTlsInspectionRule;
case "#microsoft.graph.networkaccess.webCategoryFilteringRule":
return deserializeIntoWebCategoryFilteringRule;
}
}
}
return deserializeIntoPolicyRule;
}
/**
* 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 {PrivateAccessDetails}
*/
// @ts-ignore
export function createPrivateAccessDetailsFromDiscriminatorValue(parseNode) {
return deserializeIntoPrivateAccessDetails;
}
/**
* 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 {PrivateAccessForwardingRule}
*/
// @ts-ignore
export function createPrivateAccessForwardingRuleFromDiscriminatorValue(parseNode) {
return deserializeIntoPrivateAccessForwardingRule;
}
/**
* 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 {Profile}
*/
// @ts-ignore
export function createProfileFromDiscriminatorValue(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.networkaccess.filteringProfile":
return deserializeIntoFilteringProfile;
case "#microsoft.graph.networkaccess.forwardingProfile":
return deserializeIntoForwardingProfile;
}
}
}
return deserializeIntoProfile;
}
/**
* 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 {RedundancyConfiguration}
*/
// @ts-ignore
export function createRedundancyConfigurationFromDiscriminatorValue(parseNode) {
return deserializeIntoRedundancyConfiguration;
}
/**
* 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 {RelatedDestination}
*/
// @ts-ignore
export function createRelatedDestinationFromDiscriminatorValue(parseNode) {
return deserializeIntoRelatedDestination;
}
/**
* 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 {RelatedDevice}
*/
// @ts-ignore
export function createRelatedDeviceFromDiscriminatorValue(parseNode) {
return deserializeIntoRelatedDevice;
}
/**
* 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 {RelatedFile}
*/
// @ts-ignore
export function createRelatedFileFromDiscriminatorValue(parseNode) {
return deserializeIntoRelatedFile;
}
/**
* 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 {RelatedFileHash}
*/
// @ts-ignore
export function createRelatedFileHashFromDiscriminatorValue(parseNode) {
return deserializeIntoRelatedFileHash;
}
/**
* 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 {RelatedMalware}
*/
// @ts-ignore
export function createRelatedMalwareFromDiscriminatorValue(parseNode) {
return deserializeIntoRelatedMalware;
}
/**
* 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 {RelatedRemoteNetwork}
*/
// @ts-ignore
export function createRelatedRemoteNetworkFromDiscriminatorValue(parseNode) {
return deserializeIntoRelatedRemoteNetwork;
}
/**
* 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 {RelatedResource}
*/
// @ts-ignore
export function createRelatedResourceFromDiscriminatorValue(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.networkaccess.relatedDestination":
return deserializeIntoRelatedDestination;
case "#microsoft.graph.networkaccess.relatedDevice":
return deserializeIntoRelatedDevice;
case "#microsoft.graph.networkaccess.relatedFile":
return deserializeIntoRelatedFile;
case "#microsoft.graph.networkaccess.relatedFileHash":
return deserializeIntoRelatedFileHash;
case "#microsoft.graph.networkaccess.relatedMalware":
return deserializeIntoRelatedMalware;
case "#microsoft.graph.networkaccess.relatedRemoteNetwork":
return deserializeIntoRelatedRemoteNetwork;
case "#microsoft.graph.networkaccess.relatedTenant":
return deserializeIntoRelatedTenant;
case "#microsoft.graph.networkaccess.relatedThreatIntelligence":
return deserializeIntoRelatedThreatIntelligence;
case "#microsoft.graph.networkaccess.relatedToken":
return deserializeIntoRelatedToken;
case "#microsoft.graph.networkaccess.relatedTransaction":
return deserializeIntoRelatedTransaction;
case "#microsoft.graph.networkaccess.relatedUrl":
return deserializeIntoRelatedUrl;
case "#microsoft.graph.networkaccess.relatedUser":
return deserializeIntoRelatedUser;
case "#microsoft.graph.networkaccess.relatedWebCategory":
return deserializeIntoRelatedWebCategory;
}
}
}
return deserializeIntoRelatedResource;
}
/**
* 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 {RelatedTenant}
*/
// @ts-ignore
export function createRelatedTenantFromDiscriminatorValue(parseNode) {
return deserializeIntoRelatedTenant;
}
/**
* 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 {RelatedThreatIntelligence}
*/
// @ts-ignore
export function createRelatedThreatIntelligenceFromDiscriminatorValue(parseNode) {
return deserializeIntoRelatedThreatIntelligence;
}
/**
* 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 {RelatedToken}
*/
// @ts-ignore
export function createRelatedTokenFromDiscriminatorValue(parseNode) {
return deserializeIntoRelatedToken;
}
/**
* 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 {RelatedTransaction}
*/
// @ts-ignore
export function createRelatedTransactionFromDiscriminatorValue(parseNode) {
return deserializeIntoRelatedTransaction;
}
/**
* 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 {RelatedUrl}
*/
// @ts-ignore
export function createRelatedUrlFromDiscriminatorValue(parseNode) {
return deserializeIntoRelatedUrl;
}
/**
* 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 {RelatedUser}
*/
// @ts-ignore
export function createRelatedUserFromDiscriminatorValue(parseNode) {
return deserializeIntoRelatedUser;
}
/**
* 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 {RelatedWebCategory}
*/
// @ts-ignore
export function createRelatedWebCategoryFromDiscriminatorValue(parseNode) {
return deserializeIntoRelatedWebCategory;
}
/**
* 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 {RemoteNetworkCollectionResponse}
*/
// @ts-ignore
export function createRemoteNetworkCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoRemoteNetworkCollectionResponse;
}
/**
* 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 {RemoteNetworkConnectivityConfiguration}
*/
// @ts-ignore
export function createRemoteNetworkConnectivityConfigurationFromDiscriminatorValue(parseNode) {
return deserializeIntoRemoteNetworkConnectivityConfiguration;
}
/**
* 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 {RemoteNetwork}
*/
// @ts-ignore
export function createRemoteNetworkFromDiscriminatorValue(parseNode) {
return deserializeIntoRemoteNetwork;
}
/**
* 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 {RemoteNetworkHealthEventCollectionResponse}
*/
// @ts-ignore
export function createRemoteNetworkHealthEventCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoRemoteNetworkHealthEventCollectionResponse;
}
/**
* 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 {RemoteNetworkHealthEvent}
*/
// @ts-ignore
export function createRemoteNetworkHealthEventFromDiscriminatorValue(parseNode) {
return deserializeIntoRemoteNetworkHealthEvent;
}
/**
* 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 {Reports}
*/
// @ts-ignore
export function createReportsFromDiscriminatorValue(parseNode) {
return deserializeIntoReports;
}
/**
* 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 {RuleDestination}
*/
// @ts-ignore
export function createRuleDestinationFromDiscriminatorValue(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.networkaccess.fqdn":
return deserializeIntoFqdn;
case "#microsoft.graph.networkaccess.ipAddress":
return deserializeIntoIpAddress;
case "#microsoft.graph.networkaccess.ipRange":
return deserializeIntoIpRange;
case "#microsoft.graph.networkaccess.ipSubnet":
return deserializeIntoIpSubnet;
case "#microsoft.graph.networkaccess.url":
return deserializeIntoUrl;
case "#microsoft.graph.networkaccess.webCategory":
return deserializeIntoWebCategory;
}
}
}
return deserializeIntoRuleDestination;
}
/**
* 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 {Settings}
*/
// @ts-ignore
export function createSettingsFromDiscriminatorValue(parseNode) {
return deserializeIntoSettings;
}
/**
* 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 {TenantStatus}
*/
// @ts-ignore
export function createTenantStatusFromDiscriminatorValue(parseNode) {
return deserializeIntoTenantStatus;
}
/**
* 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 {ThirdPartyTokenDetails}
*/
// @ts-ignore
export function createThirdPartyTokenDetailsFromDiscriminatorValue(parseNode) {
return deserializeIntoThirdPartyTokenDetails;
}
/**
* 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 {ThreatIntelligenceDestination}
*/
// @ts-ignore
export function createThreatIntelligenceDestinationFromDiscriminatorValue(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.networkaccess.threatIntelligenceFqdnDestination":
return deserializeIntoThreatIntelligenceFqdnDestination;
}
}
}
return deserializeIntoThreatIntelligenceDestination;
}
/**
* 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 {ThreatIntelligenceFqdnDestination}
*/
// @ts-ignore
export function createThreatIntelligenceFqdnDestinationFromDiscriminatorValue(parseNode) {
return deserializeIntoThreatIntelligenceFqdnDestination;
}
/**
* 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 {ThreatIntelligenceMatchingConditions}
*/
// @ts-ignore
export function createThreatIntelligenceMatchingConditionsFromDiscriminatorValue(parseNode) {
return deserializeIntoThreatIntelligenceMatchingConditions;
}
/**
* 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 {ThreatIntelligencePolicyCollectionResponse}
*/
// @ts-ignore
export function createThreatIntelligencePolicyCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoThreatIntelligencePolicyCollectionResponse;
}
/**
* 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 {ThreatIntelligencePolicy}
*/
// @ts-ignore
export function createThreatIntelligencePolicyFromDiscriminatorValue(parseNode) {
return deserializeIntoThreatIntelligencePolicy;
}
/**
* 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 {ThreatIntelligencePolicyLink}
*/
// @ts-ignore
export function createThreatIntelligencePolicyLinkFromDiscriminatorValue(parseNode) {
return deserializeIntoThreatIntelligencePolicyLink;
}
/**
* 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 {ThreatIntelligencePolicySettings}
*/
// @ts-ignore
export function createThreatIntelligencePolicySettingsFromDiscriminatorValue(parseNode) {
return deserializeIntoThreatIntelligencePolicySettings;
}
/**
* 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 obje