UNPKG

@microsoft/msgraph-beta-sdk

Version:
1,072 lines 150 kB
/* tslint:disable */ /* eslint-disable */ // Generated by Microsoft Kiota // @ts-ignore import { deserializeIntoBaseCollectionPaginationCountResponse, deserializeIntoEntity, serializeBaseCollectionPaginationCountResponse, serializeEntity } 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 {ApplicableContentCollectionResponse} */ // @ts-ignore export function createApplicableContentCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoApplicableContentCollectionResponse; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ApplicableContentDeviceMatchCollectionResponse} */ // @ts-ignore export function createApplicableContentDeviceMatchCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoApplicableContentDeviceMatchCollectionResponse; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ApplicableContentDeviceMatch} */ // @ts-ignore export function createApplicableContentDeviceMatchFromDiscriminatorValue(parseNode) { return deserializeIntoApplicableContentDeviceMatch; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ApplicableContent} */ // @ts-ignore export function createApplicableContentFromDiscriminatorValue(parseNode) { return deserializeIntoApplicableContent; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {AzureADDevice} */ // @ts-ignore export function createAzureADDeviceFromDiscriminatorValue(parseNode) { return deserializeIntoAzureADDevice; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {AzureADDeviceRegistrationError} */ // @ts-ignore export function createAzureADDeviceRegistrationErrorFromDiscriminatorValue(parseNode) { return deserializeIntoAzureADDeviceRegistrationError; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {BuildVersionDetails} */ // @ts-ignore export function createBuildVersionDetailsFromDiscriminatorValue(parseNode) { return deserializeIntoBuildVersionDetails; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {CatalogContent} */ // @ts-ignore export function createCatalogContentFromDiscriminatorValue(parseNode) { return deserializeIntoCatalogContent; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {CatalogEntryCollectionResponse} */ // @ts-ignore export function createCatalogEntryCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoCatalogEntryCollectionResponse; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {CatalogEntry} */ // @ts-ignore export function createCatalogEntryFromDiscriminatorValue(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.windowsUpdates.driverUpdateCatalogEntry": return deserializeIntoDriverUpdateCatalogEntry; case "#microsoft.graph.windowsUpdates.featureUpdateCatalogEntry": return deserializeIntoFeatureUpdateCatalogEntry; case "#microsoft.graph.windowsUpdates.qualityUpdateCatalogEntry": return deserializeIntoQualityUpdateCatalogEntry; case "#microsoft.graph.windowsUpdates.softwareUpdateCatalogEntry": return deserializeIntoSoftwareUpdateCatalogEntry; } } } return deserializeIntoCatalogEntry; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {Catalog} */ // @ts-ignore export function createCatalogFromDiscriminatorValue(parseNode) { return deserializeIntoCatalog; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ComplianceChangeCollectionResponse} */ // @ts-ignore export function createComplianceChangeCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoComplianceChangeCollectionResponse; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ComplianceChange} */ // @ts-ignore export function createComplianceChangeFromDiscriminatorValue(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.windowsUpdates.contentApproval": return deserializeIntoContentApproval; } } } return deserializeIntoComplianceChange; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ComplianceChangeRule} */ // @ts-ignore export function createComplianceChangeRuleFromDiscriminatorValue(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.windowsUpdates.contentApprovalRule": return deserializeIntoContentApprovalRule; } } } return deserializeIntoComplianceChangeRule; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ContentApplicabilitySettings} */ // @ts-ignore export function createContentApplicabilitySettingsFromDiscriminatorValue(parseNode) { return deserializeIntoContentApplicabilitySettings; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ContentApproval} */ // @ts-ignore export function createContentApprovalFromDiscriminatorValue(parseNode) { return deserializeIntoContentApproval; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ContentApprovalRule} */ // @ts-ignore export function createContentApprovalRuleFromDiscriminatorValue(parseNode) { return deserializeIntoContentApprovalRule; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ContentFilter} */ // @ts-ignore export function createContentFilterFromDiscriminatorValue(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.windowsUpdates.driverUpdateFilter": return deserializeIntoDriverUpdateFilter; case "#microsoft.graph.windowsUpdates.qualityUpdateFilter": return deserializeIntoQualityUpdateFilter; case "#microsoft.graph.windowsUpdates.remediationUpdateFilter": return deserializeIntoRemediationUpdateFilter; case "#microsoft.graph.windowsUpdates.softwareUpdateFilter": return deserializeIntoSoftwareUpdateFilter; case "#microsoft.graph.windowsUpdates.windowsUpdateFilter": return deserializeIntoWindowsUpdateFilter; } } } return deserializeIntoContentFilter; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {CveInformation} */ // @ts-ignore export function createCveInformationFromDiscriminatorValue(parseNode) { return deserializeIntoCveInformation; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {DateDrivenRolloutSettings} */ // @ts-ignore export function createDateDrivenRolloutSettingsFromDiscriminatorValue(parseNode) { return deserializeIntoDateDrivenRolloutSettings; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {DeployableContent} */ // @ts-ignore export function createDeployableContentFromDiscriminatorValue(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.windowsUpdates.catalogContent": return deserializeIntoCatalogContent; } } } return deserializeIntoDeployableContent; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {DeploymentAudienceCollectionResponse} */ // @ts-ignore export function createDeploymentAudienceCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoDeploymentAudienceCollectionResponse; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {DeploymentAudience} */ // @ts-ignore export function createDeploymentAudienceFromDiscriminatorValue(parseNode) { return deserializeIntoDeploymentAudience; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {DeploymentCollectionResponse} */ // @ts-ignore export function createDeploymentCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoDeploymentCollectionResponse; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {Deployment} */ // @ts-ignore export function createDeploymentFromDiscriminatorValue(parseNode) { return deserializeIntoDeployment; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {DeploymentSettings} */ // @ts-ignore export function createDeploymentSettingsFromDiscriminatorValue(parseNode) { return deserializeIntoDeploymentSettings; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {DeploymentState} */ // @ts-ignore export function createDeploymentStateFromDiscriminatorValue(parseNode) { return deserializeIntoDeploymentState; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {DeploymentStateReason} */ // @ts-ignore export function createDeploymentStateReasonFromDiscriminatorValue(parseNode) { return deserializeIntoDeploymentStateReason; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {DriverUpdateCatalogEntry} */ // @ts-ignore export function createDriverUpdateCatalogEntryFromDiscriminatorValue(parseNode) { return deserializeIntoDriverUpdateCatalogEntry; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {DriverUpdateFilter} */ // @ts-ignore export function createDriverUpdateFilterFromDiscriminatorValue(parseNode) { return deserializeIntoDriverUpdateFilter; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {DurationDrivenRolloutSettings} */ // @ts-ignore export function createDurationDrivenRolloutSettingsFromDiscriminatorValue(parseNode) { return deserializeIntoDurationDrivenRolloutSettings; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {EditionCollectionResponse} */ // @ts-ignore export function createEditionCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoEditionCollectionResponse; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {Edition} */ // @ts-ignore export function createEditionFromDiscriminatorValue(parseNode) { return deserializeIntoEdition; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ExpediteSettings} */ // @ts-ignore export function createExpediteSettingsFromDiscriminatorValue(parseNode) { return deserializeIntoExpediteSettings; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {FeatureUpdateCatalogEntry} */ // @ts-ignore export function createFeatureUpdateCatalogEntryFromDiscriminatorValue(parseNode) { return deserializeIntoFeatureUpdateCatalogEntry; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {GradualRolloutSettings} */ // @ts-ignore export function createGradualRolloutSettingsFromDiscriminatorValue(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.windowsUpdates.dateDrivenRolloutSettings": return deserializeIntoDateDrivenRolloutSettings; case "#microsoft.graph.windowsUpdates.durationDrivenRolloutSettings": return deserializeIntoDurationDrivenRolloutSettings; case "#microsoft.graph.windowsUpdates.rateDrivenRolloutSettings": return deserializeIntoRateDrivenRolloutSettings; } } } return deserializeIntoGradualRolloutSettings; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ItemBody} */ // @ts-ignore export function createItemBodyFromDiscriminatorValue(parseNode) { return deserializeIntoItemBody; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {KnowledgeBaseArticle} */ // @ts-ignore export function createKnowledgeBaseArticleFromDiscriminatorValue(parseNode) { return deserializeIntoKnowledgeBaseArticle; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {KnownIssueCollectionResponse} */ // @ts-ignore export function createKnownIssueCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoKnownIssueCollectionResponse; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {KnownIssue} */ // @ts-ignore export function createKnownIssueFromDiscriminatorValue(parseNode) { return deserializeIntoKnownIssue; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {KnownIssueHistoryItem} */ // @ts-ignore export function createKnownIssueHistoryItemFromDiscriminatorValue(parseNode) { return deserializeIntoKnownIssueHistoryItem; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {MonitoringRule} */ // @ts-ignore export function createMonitoringRuleFromDiscriminatorValue(parseNode) { return deserializeIntoMonitoringRule; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {MonitoringSettings} */ // @ts-ignore export function createMonitoringSettingsFromDiscriminatorValue(parseNode) { return deserializeIntoMonitoringSettings; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {OperationalInsightsConnection} */ // @ts-ignore export function createOperationalInsightsConnectionFromDiscriminatorValue(parseNode) { return deserializeIntoOperationalInsightsConnection; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ProductCollectionResponse} */ // @ts-ignore export function createProductCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoProductCollectionResponse; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {Product} */ // @ts-ignore export function createProductFromDiscriminatorValue(parseNode) { return deserializeIntoProduct; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ProductRevisionCollectionResponse} */ // @ts-ignore export function createProductRevisionCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoProductRevisionCollectionResponse; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ProductRevision} */ // @ts-ignore export function createProductRevisionFromDiscriminatorValue(parseNode) { return deserializeIntoProductRevision; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {QualityUpdateCatalogEntry} */ // @ts-ignore export function createQualityUpdateCatalogEntryFromDiscriminatorValue(parseNode) { return deserializeIntoQualityUpdateCatalogEntry; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {QualityUpdateCveSeverityInformation} */ // @ts-ignore export function createQualityUpdateCveSeverityInformationFromDiscriminatorValue(parseNode) { return deserializeIntoQualityUpdateCveSeverityInformation; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {QualityUpdateFilter} */ // @ts-ignore export function createQualityUpdateFilterFromDiscriminatorValue(parseNode) { return deserializeIntoQualityUpdateFilter; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {RateDrivenRolloutSettings} */ // @ts-ignore export function createRateDrivenRolloutSettingsFromDiscriminatorValue(parseNode) { return deserializeIntoRateDrivenRolloutSettings; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {RemediationUpdateFilter} */ // @ts-ignore export function createRemediationUpdateFilterFromDiscriminatorValue(parseNode) { return deserializeIntoRemediationUpdateFilter; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ResourceConnectionCollectionResponse} */ // @ts-ignore export function createResourceConnectionCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoResourceConnectionCollectionResponse; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ResourceConnection} */ // @ts-ignore export function createResourceConnectionFromDiscriminatorValue(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.windowsUpdates.operationalInsightsConnection": return deserializeIntoOperationalInsightsConnection; } } } return deserializeIntoResourceConnection; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {SafeguardProfile} */ // @ts-ignore export function createSafeguardProfileFromDiscriminatorValue(parseNode) { return deserializeIntoSafeguardProfile; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {SafeguardSettings} */ // @ts-ignore export function createSafeguardSettingsFromDiscriminatorValue(parseNode) { return deserializeIntoSafeguardSettings; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ScheduleSettings} */ // @ts-ignore export function createScheduleSettingsFromDiscriminatorValue(parseNode) { return deserializeIntoScheduleSettings; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ServicingPeriod} */ // @ts-ignore export function createServicingPeriodFromDiscriminatorValue(parseNode) { return deserializeIntoServicingPeriod; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {SoftwareUpdateCatalogEntry} */ // @ts-ignore export function createSoftwareUpdateCatalogEntryFromDiscriminatorValue(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.windowsUpdates.driverUpdateCatalogEntry": return deserializeIntoDriverUpdateCatalogEntry; case "#microsoft.graph.windowsUpdates.featureUpdateCatalogEntry": return deserializeIntoFeatureUpdateCatalogEntry; case "#microsoft.graph.windowsUpdates.qualityUpdateCatalogEntry": return deserializeIntoQualityUpdateCatalogEntry; } } } return deserializeIntoSoftwareUpdateCatalogEntry; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {SoftwareUpdateFilter} */ // @ts-ignore export function createSoftwareUpdateFilterFromDiscriminatorValue(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.windowsUpdates.driverUpdateFilter": return deserializeIntoDriverUpdateFilter; case "#microsoft.graph.windowsUpdates.qualityUpdateFilter": return deserializeIntoQualityUpdateFilter; case "#microsoft.graph.windowsUpdates.remediationUpdateFilter": return deserializeIntoRemediationUpdateFilter; case "#microsoft.graph.windowsUpdates.windowsUpdateFilter": return deserializeIntoWindowsUpdateFilter; } } } return deserializeIntoSoftwareUpdateFilter; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {UpdatableAssetCollectionResponse} */ // @ts-ignore export function createUpdatableAssetCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoUpdatableAssetCollectionResponse; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {UpdatableAssetError} */ // @ts-ignore export function createUpdatableAssetErrorFromDiscriminatorValue(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.windowsUpdates.azureADDeviceRegistrationError": return deserializeIntoAzureADDeviceRegistrationError; } } } return deserializeIntoUpdatableAssetError; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {UpdatableAsset} */ // @ts-ignore export function createUpdatableAssetFromDiscriminatorValue(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.windowsUpdates.azureADDevice": return deserializeIntoAzureADDevice; case "#microsoft.graph.windowsUpdates.updatableAssetGroup": return deserializeIntoUpdatableAssetGroup; } } } return deserializeIntoUpdatableAsset; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {UpdatableAssetGroup} */ // @ts-ignore export function createUpdatableAssetGroupFromDiscriminatorValue(parseNode) { return deserializeIntoUpdatableAssetGroup; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {UpdateCategoryEnrollmentInformation} */ // @ts-ignore export function createUpdateCategoryEnrollmentInformationFromDiscriminatorValue(parseNode) { return deserializeIntoUpdateCategoryEnrollmentInformation; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {UpdateManagementEnrollment} */ // @ts-ignore export function createUpdateManagementEnrollmentFromDiscriminatorValue(parseNode) { return deserializeIntoUpdateManagementEnrollment; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {UpdatePolicyCollectionResponse} */ // @ts-ignore export function createUpdatePolicyCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoUpdatePolicyCollectionResponse; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {UpdatePolicy} */ // @ts-ignore export function createUpdatePolicyFromDiscriminatorValue(parseNode) { return deserializeIntoUpdatePolicy; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {UserExperienceSettings} */ // @ts-ignore export function createUserExperienceSettingsFromDiscriminatorValue(parseNode) { return deserializeIntoUserExperienceSettings; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {WindowsUpdateFilter} */ // @ts-ignore export function createWindowsUpdateFilterFromDiscriminatorValue(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.windowsUpdates.driverUpdateFilter": return deserializeIntoDriverUpdateFilter; case "#microsoft.graph.windowsUpdates.qualityUpdateFilter": return deserializeIntoQualityUpdateFilter; case "#microsoft.graph.windowsUpdates.remediationUpdateFilter": return deserializeIntoRemediationUpdateFilter; } } } return deserializeIntoWindowsUpdateFilter; } /** * The deserialization information for the current model * @param ApplicableContent The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoApplicableContent(applicableContent = {}) { return { "backingStoreEnabled": n => { applicableContent.backingStoreEnabled = true; }, "catalogEntry": n => { applicableContent.catalogEntry = n.getObjectValue(createCatalogEntryFromDiscriminatorValue); }, "catalogEntryId": n => { applicableContent.catalogEntryId = n.getStringValue(); }, "matchedDevices": n => { applicableContent.matchedDevices = n.getCollectionOfObjectValues(createApplicableContentDeviceMatchFromDiscriminatorValue); }, "@odata.type": n => { applicableContent.odataType = n.getStringValue(); }, }; } /** * The deserialization information for the current model * @param ApplicableContentCollectionResponse The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoApplicableContentCollectionResponse(applicableContentCollectionResponse = {}) { return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(applicableContentCollectionResponse)), { "value": n => { applicableContentCollectionResponse.value = n.getCollectionOfObjectValues(createApplicableContentFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param ApplicableContentDeviceMatch The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoApplicableContentDeviceMatch(applicableContentDeviceMatch = {}) { return { "backingStoreEnabled": n => { applicableContentDeviceMatch.backingStoreEnabled = true; }, "deviceId": n => { applicableContentDeviceMatch.deviceId = n.getStringValue(); }, "@odata.type": n => { applicableContentDeviceMatch.odataType = n.getStringValue(); }, "recommendedBy": n => { applicableContentDeviceMatch.recommendedBy = n.getCollectionOfPrimitiveValues(); }, }; } /** * The deserialization information for the current model * @param ApplicableContentDeviceMatchCollectionResponse The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoApplicableContentDeviceMatchCollectionResponse(applicableContentDeviceMatchCollectionResponse = {}) { return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(applicableContentDeviceMatchCollectionResponse)), { "value": n => { applicableContentDeviceMatchCollectionResponse.value = n.getCollectionOfObjectValues(createApplicableContentDeviceMatchFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param AzureADDevice The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoAzureADDevice(azureADDevice = {}) { return Object.assign(Object.assign({}, deserializeIntoUpdatableAsset(azureADDevice)), { "enrollment": n => { azureADDevice.enrollment = n.getObjectValue(createUpdateManagementEnrollmentFromDiscriminatorValue); }, "errors": n => { azureADDevice.errors = n.getCollectionOfObjectValues(createUpdatableAssetErrorFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param AzureADDeviceRegistrationError The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoAzureADDeviceRegistrationError(azureADDeviceRegistrationError = {}) { return Object.assign(Object.assign({}, deserializeIntoUpdatableAssetError(azureADDeviceRegistrationError)), { "reason": n => { azureADDeviceRegistrationError.reason = n.getEnumValue(AzureADDeviceRegistrationErrorReasonObject); } }); } /** * The deserialization information for the current model * @param BuildVersionDetails The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoBuildVersionDetails(buildVersionDetails = {}) { return { "backingStoreEnabled": n => { buildVersionDetails.backingStoreEnabled = true; }, "buildNumber": n => { buildVersionDetails.buildNumber = n.getNumberValue(); }, "majorVersion": n => { buildVersionDetails.majorVersion = n.getNumberValue(); }, "minorVersion": n => { buildVersionDetails.minorVersion = n.getNumberValue(); }, "@odata.type": n => { buildVersionDetails.odataType = n.getStringValue(); }, "updateBuildRevision": n => { buildVersionDetails.updateBuildRevision = n.getNumberValue(); }, }; } /** * The deserialization information for the current model * @param Catalog The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoCatalog(catalog = {}) { return Object.assign(Object.assign({}, deserializeIntoEntity(catalog)), { "entries": n => { catalog.entries = n.getCollectionOfObjectValues(createCatalogEntryFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param CatalogContent The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoCatalogContent(catalogContent = {}) { return Object.assign(Object.assign({}, deserializeIntoDeployableContent(catalogContent)), { "catalogEntry": n => { catalogContent.catalogEntry = n.getObjectValue(createCatalogEntryFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param CatalogEntry The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoCatalogEntry(catalogEntry = {}) { return Object.assign(Object.assign({}, deserializeIntoEntity(catalogEntry)), { "deployableUntilDateTime": n => { catalogEntry.deployableUntilDateTime = n.getDateValue(); }, "displayName": n => { catalogEntry.displayName = n.getStringValue(); }, "releaseDateTime": n => { catalogEntry.releaseDateTime = n.getDateValue(); } }); } /** * The deserialization information for the current model * @param CatalogEntryCollectionResponse The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoCatalogEntryCollectionResponse(catalogEntryCollectionResponse = {}) { return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(catalogEntryCollectionResponse)), { "value": n => { catalogEntryCollectionResponse.value = n.getCollectionOfObjectValues(createCatalogEntryFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param ComplianceChange The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoComplianceChange(complianceChange = {}) { return Object.assign(Object.assign({}, deserializeIntoEntity(complianceChange)), { "createdDateTime": n => { complianceChange.createdDateTime = n.getDateValue(); }, "isRevoked": n => { complianceChange.isRevoked = n.getBooleanValue(); }, "revokedDateTime": n => { complianceChange.revokedDateTime = n.getDateValue(); }, "updatePolicy": n => { complianceChange.updatePolicy = n.getObjectValue(createUpdatePolicyFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param ComplianceChangeCollectionResponse The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoComplianceChangeCollectionResponse(complianceChangeCollectionResponse = {}) { return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(complianceChangeCollectionResponse)), { "value": n => { complianceChangeCollectionResponse.value = n.getCollectionOfObjectValues(createComplianceChangeFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param ComplianceChangeRule The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoComplianceChangeRule(complianceChangeRule = {}) { return { "backingStoreEnabled": n => { complianceChangeRule.backingStoreEnabled = true; }, "createdDateTime": n => { complianceChangeRule.createdDateTime = n.getDateValue(); }, "lastEvaluatedDateTime": n => { complianceChangeRule.lastEvaluatedDateTime = n.getDateValue(); }, "lastModifiedDateTime": n => { complianceChangeRule.lastModifiedDateTime = n.getDateValue(); }, "@odata.type": n => { complianceChangeRule.odataType = n.getStringValue(); }, }; } /** * The deserialization information for the current model * @param ContentApplicabilitySettings The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoContentApplicabilitySettings(contentApplicabilitySettings = {}) { return { "backingStoreEnabled": n => { contentApplicabilitySettings.backingStoreEnabled = true; }, "@odata.type": n => { contentApplicabilitySettings.odataType = n.getStringValue(); }, "offerWhileRecommendedBy": n => { contentApplicabilitySettings.offerWhileRecommendedBy = n.getCollectionOfPrimitiveValues(); }, "safeguard": n => { contentApplicabilitySettings.safeguard = n.getObjectValue(createSafeguardSettingsFromDiscriminatorValue); }, }; } /** * The deserialization information for the current model * @param ContentApproval The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoContentApproval(contentApproval = {}) { return Object.assign(Object.assign({}, deserializeIntoComplianceChange(contentApproval)), { "content": n => { contentApproval.content = n.getObjectValue(createDeployableContentFromDiscriminatorValue); }, "deployments": n => { contentApproval.deployments = n.getCollectionOfObjectValues(createDeploymentFromDiscriminatorValue); }, "deploymentSettings": n => { contentApproval.deploymentSettings = n.getObjectValue(createDeploymentSettingsFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param ContentApprovalRule The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoContentApprovalRule(contentApprovalRule = {}) { return Object.assign(Object.assign({}, deserializeIntoComplianceChangeRule(contentApprovalRule)), { "contentFilter": n => { contentApprovalRule.contentFilter = n.getObjectValue(createContentFilterFromDiscriminatorValue); }, "durationBeforeDeploymentStart": n => { contentApprovalRule.durationBeforeDeploymentStart = n.getDurationValue(); } }); } /** * The deserialization information for the current model * @param ContentFilter The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoContentFilter(contentFilter = {}) { return { "backingStoreEnabled": n => { contentFilter.backingStoreEnabled = true; }, "@odata.type": n => { contentFilter.odataType = n.getStringValue(); }, }; } /** * The deserialization information for the current model * @param CveInformation The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoCveInformation(cveInformation = {}) { return { "backingStoreEnabled": n => { cveInformation.backingStoreEnabled = true; }, "number": n => { cveInformation.number = n.getStringValue(); }, "@odata.type": n => { cveInformation.odataType = n.getStringValue(); }, "url": n => { cveInformation.url = n.getStringValue(); }, }; } /** * The deserialization information for the current model * @param DateDrivenRolloutSettings The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoDateDrivenRolloutSettings(dateDrivenRolloutSettings = {}) { return Object.assign(Object.assign({}, deserializeIntoGradualRolloutSettings(dateDrivenRolloutSettings)), { "endDateTime": n => { dateDrivenRolloutSettings.endDateTime = n.getDateValue(); } }); } /** * The deserialization information for the current model * @param DeployableContent The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoDeployableContent(deployableContent = {}) { return { "backingStoreEnabled": n => { deployableContent.backingStoreEnabled = true; }, "@odata.type": n => { deployableContent.odataType = n.getStringValue(); }, }; } /** * The deserialization information for the current model * @param Deployment The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoDeployment(deployment = {}) { return Object.assign(Object.assign({}, deserializeIntoEntity(deployment)), { "audience": n => { deployment.audience = n.getObjectValue(createDeploymentAudienceFromDiscriminatorValue); }, "content": n => { deployment.content = n.getObjectValue(createDeployableContentFromDiscriminatorValue); }, "createdDateTime": n => { deployment.createdDateTime = n.getDateValue(); }, "lastModifiedDateTime": n => { deployment.lastModifiedDateTime = n.getDateValue(); }, "settings": n => { deployment.settings = n.getObjectValue(createDeploymentSettingsFromDiscriminatorValue); }, "state": n => { deployment.state = n.getObjectValue(createDeploymentStateFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param DeploymentAudience The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoDeploymentAudience(deploymentAudience = {}) { return Object.assign(Object.assign({}, deserializeIntoEntity(deploymentAudience)), { "applicableContent": n => { deploymentAudience.applicableContent = n.getCollectionOfObjectValues(createApplicableContentFromDiscriminatorValue); }, "exclusions": n => { deploymentAudience.exclusions = n.getCollectionOfObjectValues(createUpdatableAssetFromDiscriminatorValue); }, "members": n => { deploymentAudience.members = n.getCollectionOfObjectValues(createUpdatableAssetFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param DeploymentAudienceCollectionResponse The instance to deser