@microsoft/msgraph-sdk
Version:
Microsoft Graph JavaScript client library
973 lines • 136 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createApplicationFromDiscriminatorValue, createCustomExtensionCallbackConfigurationFromDiscriminatorValue, createDeletedItemContainerFromDiscriminatorValue, createDirectoryObjectFromDiscriminatorValue, createEmailSettingsFromDiscriminatorValue, createGroupFromDiscriminatorValue, createKeyValuePairFromDiscriminatorValue, createSubjectSetFromDiscriminatorValue, createUserFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, deserializeIntoCustomCalloutExtension, deserializeIntoCustomExtensionCallbackConfiguration, deserializeIntoCustomExtensionData, deserializeIntoEntity, deserializeIntoSubjectSet, serializeApplication, serializeBaseCollectionPaginationCountResponse, serializeCustomCalloutExtension, serializeCustomExtensionCallbackConfiguration, serializeCustomExtensionData, serializeDeletedItemContainer, serializeDirectoryObject, serializeEmailSettings, serializeEntity, serializeGroup, serializeKeyValuePair, serializeSubjectSet, serializeUser } 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 {ActivateGroupScope}
*/
// @ts-ignore
export function createActivateGroupScopeFromDiscriminatorValue(parseNode) {
return deserializeIntoActivateGroupScope;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {ActivateProcessingResultScope}
*/
// @ts-ignore
export function createActivateProcessingResultScopeFromDiscriminatorValue(parseNode) {
return deserializeIntoActivateProcessingResultScope;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {ActivateRunScope}
*/
// @ts-ignore
export function createActivateRunScopeFromDiscriminatorValue(parseNode) {
return deserializeIntoActivateRunScope;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {ActivateUserScope}
*/
// @ts-ignore
export function createActivateUserScopeFromDiscriminatorValue(parseNode) {
return deserializeIntoActivateUserScope;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {ActivationScope}
*/
// @ts-ignore
export function createActivationScopeFromDiscriminatorValue(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.identityGovernance.activateGroupScope":
return deserializeIntoActivateGroupScope;
case "#microsoft.graph.identityGovernance.activateProcessingResultScope":
return deserializeIntoActivateProcessingResultScope;
case "#microsoft.graph.identityGovernance.activateRunScope":
return deserializeIntoActivateRunScope;
case "#microsoft.graph.identityGovernance.activateUserScope":
return deserializeIntoActivateUserScope;
}
}
}
return deserializeIntoActivationScope;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {AttributeChangeTrigger}
*/
// @ts-ignore
export function createAttributeChangeTriggerFromDiscriminatorValue(parseNode) {
return deserializeIntoAttributeChangeTrigger;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {CancelRunsScope}
*/
// @ts-ignore
export function createCancelRunsScopeFromDiscriminatorValue(parseNode) {
return deserializeIntoCancelRunsScope;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {CancelScope}
*/
// @ts-ignore
export function createCancelScopeFromDiscriminatorValue(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.identityGovernance.cancelRunsScope":
return deserializeIntoCancelRunsScope;
}
}
}
return deserializeIntoCancelScope;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {CountBasedQuarantineCondition}
*/
// @ts-ignore
export function createCountBasedQuarantineConditionFromDiscriminatorValue(parseNode) {
return deserializeIntoCountBasedQuarantineCondition;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {CustomTaskExtensionCallbackConfiguration}
*/
// @ts-ignore
export function createCustomTaskExtensionCallbackConfigurationFromDiscriminatorValue(parseNode) {
return deserializeIntoCustomTaskExtensionCallbackConfiguration;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {CustomTaskExtensionCallbackData}
*/
// @ts-ignore
export function createCustomTaskExtensionCallbackDataFromDiscriminatorValue(parseNode) {
return deserializeIntoCustomTaskExtensionCallbackData;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {CustomTaskExtensionCalloutData}
*/
// @ts-ignore
export function createCustomTaskExtensionCalloutDataFromDiscriminatorValue(parseNode) {
return deserializeIntoCustomTaskExtensionCalloutData;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {CustomTaskExtensionCollectionResponse}
*/
// @ts-ignore
export function createCustomTaskExtensionCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoCustomTaskExtensionCollectionResponse;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {CustomTaskExtension}
*/
// @ts-ignore
export function createCustomTaskExtensionFromDiscriminatorValue(parseNode) {
return deserializeIntoCustomTaskExtension;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {GroupBasedSubjectSet}
*/
// @ts-ignore
export function createGroupBasedSubjectSetFromDiscriminatorValue(parseNode) {
return deserializeIntoGroupBasedSubjectSet;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {Insights}
*/
// @ts-ignore
export function createInsightsFromDiscriminatorValue(parseNode) {
return deserializeIntoInsights;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {LifecycleManagementSettings}
*/
// @ts-ignore
export function createLifecycleManagementSettingsFromDiscriminatorValue(parseNode) {
return deserializeIntoLifecycleManagementSettings;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {LifecycleWorkflowsContainer}
*/
// @ts-ignore
export function createLifecycleWorkflowsContainerFromDiscriminatorValue(parseNode) {
return deserializeIntoLifecycleWorkflowsContainer;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {MembershipChangeTrigger}
*/
// @ts-ignore
export function createMembershipChangeTriggerFromDiscriminatorValue(parseNode) {
return deserializeIntoMembershipChangeTrigger;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {OnDemandExecutionOnly}
*/
// @ts-ignore
export function createOnDemandExecutionOnlyFromDiscriminatorValue(parseNode) {
return deserializeIntoOnDemandExecutionOnly;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {Parameter}
*/
// @ts-ignore
export function createParameterFromDiscriminatorValue(parseNode) {
return deserializeIntoParameter;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {PercentageBasedQuarantineCondition}
*/
// @ts-ignore
export function createPercentageBasedQuarantineConditionFromDiscriminatorValue(parseNode) {
return deserializeIntoPercentageBasedQuarantineCondition;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {PreviewFailedTask}
*/
// @ts-ignore
export function createPreviewFailedTaskFromDiscriminatorValue(parseNode) {
return deserializeIntoPreviewFailedTask;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {QuarantineCondition}
*/
// @ts-ignore
export function createQuarantineConditionFromDiscriminatorValue(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.identityGovernance.countBasedQuarantineCondition":
return deserializeIntoCountBasedQuarantineCondition;
case "#microsoft.graph.identityGovernance.percentageBasedQuarantineCondition":
return deserializeIntoPercentageBasedQuarantineCondition;
}
}
}
return deserializeIntoQuarantineCondition;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {QuarantineConfiguration}
*/
// @ts-ignore
export function createQuarantineConfigurationFromDiscriminatorValue(parseNode) {
return deserializeIntoQuarantineConfiguration;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {QuarantineDetails}
*/
// @ts-ignore
export function createQuarantineDetailsFromDiscriminatorValue(parseNode) {
return deserializeIntoQuarantineDetails;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {RuleBasedSubjectSet}
*/
// @ts-ignore
export function createRuleBasedSubjectSetFromDiscriminatorValue(parseNode) {
return deserializeIntoRuleBasedSubjectSet;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {RunCollectionResponse}
*/
// @ts-ignore
export function createRunCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoRunCollectionResponse;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {Run}
*/
// @ts-ignore
export function createRunFromDiscriminatorValue(parseNode) {
return deserializeIntoRun;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {RunSummary}
*/
// @ts-ignore
export function createRunSummaryFromDiscriminatorValue(parseNode) {
return deserializeIntoRunSummary;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {TaskCollectionResponse}
*/
// @ts-ignore
export function createTaskCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoTaskCollectionResponse;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {TaskDefinitionCollectionResponse}
*/
// @ts-ignore
export function createTaskDefinitionCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoTaskDefinitionCollectionResponse;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {TaskDefinition}
*/
// @ts-ignore
export function createTaskDefinitionFromDiscriminatorValue(parseNode) {
return deserializeIntoTaskDefinition;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {Task}
*/
// @ts-ignore
export function createTaskFromDiscriminatorValue(parseNode) {
return deserializeIntoTask;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {TaskProcessingResultCollectionResponse}
*/
// @ts-ignore
export function createTaskProcessingResultCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoTaskProcessingResultCollectionResponse;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {TaskProcessingResult}
*/
// @ts-ignore
export function createTaskProcessingResultFromDiscriminatorValue(parseNode) {
return deserializeIntoTaskProcessingResult;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {TaskReportCollectionResponse}
*/
// @ts-ignore
export function createTaskReportCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoTaskReportCollectionResponse;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {TaskReport}
*/
// @ts-ignore
export function createTaskReportFromDiscriminatorValue(parseNode) {
return deserializeIntoTaskReport;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {TaskReportSummary}
*/
// @ts-ignore
export function createTaskReportSummaryFromDiscriminatorValue(parseNode) {
return deserializeIntoTaskReportSummary;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {TimeBasedAttributeTrigger}
*/
// @ts-ignore
export function createTimeBasedAttributeTriggerFromDiscriminatorValue(parseNode) {
return deserializeIntoTimeBasedAttributeTrigger;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {TopTasksInsightsSummary}
*/
// @ts-ignore
export function createTopTasksInsightsSummaryFromDiscriminatorValue(parseNode) {
return deserializeIntoTopTasksInsightsSummary;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {TopWorkflowsInsightsSummary}
*/
// @ts-ignore
export function createTopWorkflowsInsightsSummaryFromDiscriminatorValue(parseNode) {
return deserializeIntoTopWorkflowsInsightsSummary;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {TriggerAndScopeBasedConditions}
*/
// @ts-ignore
export function createTriggerAndScopeBasedConditionsFromDiscriminatorValue(parseNode) {
return deserializeIntoTriggerAndScopeBasedConditions;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {TriggerAttribute}
*/
// @ts-ignore
export function createTriggerAttributeFromDiscriminatorValue(parseNode) {
return deserializeIntoTriggerAttribute;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {UserInactivityTrigger}
*/
// @ts-ignore
export function createUserInactivityTriggerFromDiscriminatorValue(parseNode) {
return deserializeIntoUserInactivityTrigger;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {UserProcessingResultCollectionResponse}
*/
// @ts-ignore
export function createUserProcessingResultCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoUserProcessingResultCollectionResponse;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {UserProcessingResult}
*/
// @ts-ignore
export function createUserProcessingResultFromDiscriminatorValue(parseNode) {
return deserializeIntoUserProcessingResult;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {UserSummary}
*/
// @ts-ignore
export function createUserSummaryFromDiscriminatorValue(parseNode) {
return deserializeIntoUserSummary;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {WorkflowBase}
*/
// @ts-ignore
export function createWorkflowBaseFromDiscriminatorValue(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.identityGovernance.workflow":
return deserializeIntoWorkflow;
case "#microsoft.graph.identityGovernance.workflowVersion":
return deserializeIntoWorkflowVersion;
}
}
}
return deserializeIntoWorkflowBase;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {WorkflowCollectionResponse}
*/
// @ts-ignore
export function createWorkflowCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoWorkflowCollectionResponse;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {WorkflowExecutionConditions}
*/
// @ts-ignore
export function createWorkflowExecutionConditionsFromDiscriminatorValue(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.identityGovernance.onDemandExecutionOnly":
return deserializeIntoOnDemandExecutionOnly;
case "#microsoft.graph.identityGovernance.triggerAndScopeBasedConditions":
return deserializeIntoTriggerAndScopeBasedConditions;
}
}
}
return deserializeIntoWorkflowExecutionConditions;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {WorkflowExecutionTrigger}
*/
// @ts-ignore
export function createWorkflowExecutionTriggerFromDiscriminatorValue(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.identityGovernance.attributeChangeTrigger":
return deserializeIntoAttributeChangeTrigger;
case "#microsoft.graph.identityGovernance.membershipChangeTrigger":
return deserializeIntoMembershipChangeTrigger;
case "#microsoft.graph.identityGovernance.timeBasedAttributeTrigger":
return deserializeIntoTimeBasedAttributeTrigger;
case "#microsoft.graph.identityGovernance.userInactivityTrigger":
return deserializeIntoUserInactivityTrigger;
}
}
}
return deserializeIntoWorkflowExecutionTrigger;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {Workflow}
*/
// @ts-ignore
export function createWorkflowFromDiscriminatorValue(parseNode) {
return deserializeIntoWorkflow;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {WorkflowSetting}
*/
// @ts-ignore
export function createWorkflowSettingFromDiscriminatorValue(parseNode) {
return deserializeIntoWorkflowSetting;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {WorkflowsInsightsByCategory}
*/
// @ts-ignore
export function createWorkflowsInsightsByCategoryFromDiscriminatorValue(parseNode) {
return deserializeIntoWorkflowsInsightsByCategory;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {WorkflowsInsightsSummary}
*/
// @ts-ignore
export function createWorkflowsInsightsSummaryFromDiscriminatorValue(parseNode) {
return deserializeIntoWorkflowsInsightsSummary;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {WorkflowTemplateCollectionResponse}
*/
// @ts-ignore
export function createWorkflowTemplateCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoWorkflowTemplateCollectionResponse;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {WorkflowTemplate}
*/
// @ts-ignore
export function createWorkflowTemplateFromDiscriminatorValue(parseNode) {
return deserializeIntoWorkflowTemplate;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {WorkflowVersionCollectionResponse}
*/
// @ts-ignore
export function createWorkflowVersionCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoWorkflowVersionCollectionResponse;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {WorkflowVersion}
*/
// @ts-ignore
export function createWorkflowVersionFromDiscriminatorValue(parseNode) {
return deserializeIntoWorkflowVersion;
}
/**
* The deserialization information for the current model
* @param ActivateGroupScope The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoActivateGroupScope(activateGroupScope = {}) {
return Object.assign(Object.assign({}, deserializeIntoActivationScope(activateGroupScope)), { "group": n => { activateGroupScope.group = n.getObjectValue(createGroupFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param ActivateProcessingResultScope The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoActivateProcessingResultScope(activateProcessingResultScope = {}) {
return Object.assign(Object.assign({}, deserializeIntoActivationScope(activateProcessingResultScope)), { "processingResults": n => { activateProcessingResultScope.processingResults = n.getCollectionOfObjectValues(createUserProcessingResultFromDiscriminatorValue); }, "taskScope": n => { activateProcessingResultScope.taskScope = n.getEnumValue(ActivationTaskScopeTypeObject); } });
}
/**
* The deserialization information for the current model
* @param ActivateRunScope The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoActivateRunScope(activateRunScope = {}) {
return Object.assign(Object.assign({}, deserializeIntoActivationScope(activateRunScope)), { "run": n => { activateRunScope.run = n.getObjectValue(createRunFromDiscriminatorValue); }, "taskScope": n => { activateRunScope.taskScope = n.getEnumValue(ActivationTaskScopeTypeObject); }, "userScope": n => { activateRunScope.userScope = n.getEnumValue(ActivationUserScopeTypeObject); } });
}
/**
* The deserialization information for the current model
* @param ActivateUserScope The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoActivateUserScope(activateUserScope = {}) {
return Object.assign(Object.assign({}, deserializeIntoActivationScope(activateUserScope)), { "users": n => { activateUserScope.users = n.getCollectionOfObjectValues(createUserFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param ActivationScope The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoActivationScope(activationScope = {}) {
return {
"backingStoreEnabled": n => { activationScope.backingStoreEnabled = true; },
"@odata.type": n => { activationScope.odataType = n.getStringValue(); },
};
}
/**
* The deserialization information for the current model
* @param AttributeChangeTrigger The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoAttributeChangeTrigger(attributeChangeTrigger = {}) {
return Object.assign(Object.assign({}, deserializeIntoWorkflowExecutionTrigger(attributeChangeTrigger)), { "triggerAttributes": n => { attributeChangeTrigger.triggerAttributes = n.getCollectionOfObjectValues(createTriggerAttributeFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param CancelRunsScope The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoCancelRunsScope(cancelRunsScope = {}) {
return Object.assign(Object.assign({}, deserializeIntoCancelScope(cancelRunsScope)), { "runs": n => { cancelRunsScope.runs = n.getCollectionOfObjectValues(createRunFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param CancelScope The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoCancelScope(cancelScope = {}) {
return {
"backingStoreEnabled": n => { cancelScope.backingStoreEnabled = true; },
"@odata.type": n => { cancelScope.odataType = n.getStringValue(); },
};
}
/**
* The deserialization information for the current model
* @param CountBasedQuarantineCondition The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoCountBasedQuarantineCondition(countBasedQuarantineCondition = {}) {
return Object.assign(Object.assign({}, deserializeIntoQuarantineCondition(countBasedQuarantineCondition)), { "threshold": n => { countBasedQuarantineCondition.threshold = n.getNumberValue(); } });
}
/**
* The deserialization information for the current model
* @param CustomTaskExtension The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoCustomTaskExtension(customTaskExtension = {}) {
return Object.assign(Object.assign({}, deserializeIntoCustomCalloutExtension(customTaskExtension)), { "callbackConfiguration": n => { customTaskExtension.callbackConfiguration = n.getObjectValue(createCustomExtensionCallbackConfigurationFromDiscriminatorValue); }, "createdBy": n => { customTaskExtension.createdBy = n.getObjectValue(createUserFromDiscriminatorValue); }, "createdDateTime": n => { customTaskExtension.createdDateTime = n.getDateValue(); }, "lastModifiedBy": n => { customTaskExtension.lastModifiedBy = n.getObjectValue(createUserFromDiscriminatorValue); }, "lastModifiedDateTime": n => { customTaskExtension.lastModifiedDateTime = n.getDateValue(); } });
}
/**
* The deserialization information for the current model
* @param CustomTaskExtensionCallbackConfiguration The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoCustomTaskExtensionCallbackConfiguration(customTaskExtensionCallbackConfiguration = {}) {
return Object.assign(Object.assign({}, deserializeIntoCustomExtensionCallbackConfiguration(customTaskExtensionCallbackConfiguration)), { "authorizedApps": n => { customTaskExtensionCallbackConfiguration.authorizedApps = n.getCollectionOfObjectValues(createApplicationFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param CustomTaskExtensionCallbackData The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoCustomTaskExtensionCallbackData(customTaskExtensionCallbackData = {}) {
return Object.assign(Object.assign({}, deserializeIntoCustomExtensionData(customTaskExtensionCallbackData)), { "operationStatus": n => { customTaskExtensionCallbackData.operationStatus = n.getEnumValue(CustomTaskExtensionOperationStatusObject); } });
}
/**
* The deserialization information for the current model
* @param CustomTaskExtensionCalloutData The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoCustomTaskExtensionCalloutData(customTaskExtensionCalloutData = {}) {
return Object.assign(Object.assign({}, deserializeIntoCustomExtensionData(customTaskExtensionCalloutData)), { "subject": n => { customTaskExtensionCalloutData.subject = n.getObjectValue(createUserFromDiscriminatorValue); }, "task": n => { customTaskExtensionCalloutData.task = n.getObjectValue(createTaskFromDiscriminatorValue); }, "taskProcessingresult": n => { customTaskExtensionCalloutData.taskProcessingresult = n.getObjectValue(createTaskProcessingResultFromDiscriminatorValue); }, "workflow": n => { customTaskExtensionCalloutData.workflow = n.getObjectValue(createWorkflowFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param CustomTaskExtensionCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoCustomTaskExtensionCollectionResponse(customTaskExtensionCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(customTaskExtensionCollectionResponse)), { "value": n => { customTaskExtensionCollectionResponse.value = n.getCollectionOfObjectValues(createCustomTaskExtensionFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param GroupBasedSubjectSet The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoGroupBasedSubjectSet(groupBasedSubjectSet = {}) {
return Object.assign(Object.assign({}, deserializeIntoSubjectSet(groupBasedSubjectSet)), { "groups": n => { groupBasedSubjectSet.groups = n.getCollectionOfObjectValues(createGroupFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param Insights The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoInsights(insights = {}) {
return Object.assign({}, deserializeIntoEntity(insights));
}
/**
* The deserialization information for the current model
* @param LifecycleManagementSettings The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoLifecycleManagementSettings(lifecycleManagementSettings = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(lifecycleManagementSettings)), { "emailSettings": n => { lifecycleManagementSettings.emailSettings = n.getObjectValue(createEmailSettingsFromDiscriminatorValue); }, "quarantineConfiguration": n => { lifecycleManagementSettings.quarantineConfiguration = n.getObjectValue(createQuarantineConfigurationFromDiscriminatorValue); }, "workflowScheduleIntervalInHours": n => { lifecycleManagementSettings.workflowScheduleIntervalInHours = n.getNumberValue(); } });
}
/**
* The deserialization information for the current model
* @param LifecycleWorkflowsContainer The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoLifecycleWorkflowsContainer(lifecycleWorkflowsContainer = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(lifecycleWorkflowsContainer)), { "customTaskExtensions": n => { lifecycleWorkflowsContainer.customTaskExtensions = n.getCollectionOfObjectValues(createCustomTaskExtensionFromDiscriminatorValue); }, "deletedItems": n => { lifecycleWorkflowsContainer.deletedItems = n.getObjectValue(createDeletedItemContainerFromDiscriminatorValue); }, "insights": n => { lifecycleWorkflowsContainer.insights = n.getObjectValue(createInsightsFromDiscriminatorValue); }, "settings": n => { lifecycleWorkflowsContainer.settings = n.getObjectValue(createLifecycleManagementSettingsFromDiscriminatorValue); }, "taskDefinitions": n => { lifecycleWorkflowsContainer.taskDefinitions = n.getCollectionOfObjectValues(createTaskDefinitionFromDiscriminatorValue); }, "workflows": n => { lifecycleWorkflowsContainer.workflows = n.getCollectionOfObjectValues(createWorkflowFromDiscriminatorValue); }, "workflowTemplates": n => { lifecycleWorkflowsContainer.workflowTemplates = n.getCollectionOfObjectValues(createWorkflowTemplateFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param MembershipChangeTrigger The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoMembershipChangeTrigger(membershipChangeTrigger = {}) {
return Object.assign(Object.assign({}, deserializeIntoWorkflowExecutionTrigger(membershipChangeTrigger)), { "changeType": n => { membershipChangeTrigger.changeType = n.getEnumValue(MembershipChangeTypeObject); } });
}
/**
* The deserialization information for the current model
* @param OnDemandExecutionOnly The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoOnDemandExecutionOnly(onDemandExecutionOnly = {}) {
return Object.assign({}, deserializeIntoWorkflowExecutionConditions(onDemandExecutionOnly));
}
/**
* The deserialization information for the current model
* @param Parameter The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoParameter(parameter = {}) {
return {
"backingStoreEnabled": n => { parameter.backingStoreEnabled = true; },
"name": n => { parameter.name = n.getStringValue(); },
"@odata.type": n => { parameter.odataType = n.getStringValue(); },
"values": n => { parameter.values = n.getCollectionOfPrimitiveValues("string"); },
"valueType": n => { parameter.valueType = n.getEnumValue(ValueTypeObject); },
};
}
/**
* The deserialization information for the current model
* @param PercentageBasedQuarantineCondition The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoPercentageBasedQuarantineCondition(percentageBasedQuarantineCondition = {}) {
return Object.assign(Object.assign({}, deserializeIntoQuarantineCondition(percentageBasedQuarantineCondition)), { "percentage": n => { percentageBasedQuarantineCondition.percentage = n.getNumberValue(); } });
}
/**
* The deserialization information for the current model
* @param PreviewFailedTask The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoPreviewFailedTask(previewFailedTask = {}) {
return {
"backingStoreEnabled": n => { previewFailedTask.backingStoreEnabled = true; },
"definitionId": n => { previewFailedTask.definitionId = n.getStringValue(); },
"failureReason": n => { previewFailedTask.failureReason = n.getStringValue(); },
"name": n => { previewFailedTask.name = n.getStringValue(); },
"@odata.type": n => { previewFailedTask.odataType = n.getStringValue(); },
"taskId": n => { previewFailedTask.taskId = n.getStringValue(); },
};
}
/**
* The deserialization information for the current model
* @param QuarantineCondition The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoQuarantineCondition(quarantineCondition = {}) {
return {
"backingStoreEnabled": n => { quarantineCondition.backingStoreEnabled = true; },
"@odata.type": n => { quarantineCondition.odataType = n.getStringValue(); },
};
}
/**
* The deserialization information for the current model
* @param QuarantineConfiguration The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoQuarantineConfiguration(quarantineConfiguration = {}) {
return {
"backingStoreEnabled": n => { quarantineConfiguration.backingStoreEnabled = true; },
"conditions": n => { quarantineConfiguration.conditions = n.getCollectionOfObjectValues(createQuarantineConditionFromDiscriminatorValue); },
"matchMode": n => { quarantineConfiguration.matchMode = n.getEnumValue(MatchModeObject); },
"@odata.type": n => { quarantineConfiguration.odataType = n.getStringValue(); },
};
}
/**
* The deserialization information for the current model
* @param QuarantineDetails The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoQuarantineDetails(quarantineDetails = {}) {
return {
"backingStoreEnabled": n => { quarantineDetails.backingStoreEnabled = true; },
"@odata.type": n => { quarantineDetails.odataType = n.getStringValue(); },
"quarantinedDateTime": n => { quarantineDetails.quarantinedDateTime = n.getDateValue(); },
"quarantineReason": n => { quarantineDetails.quarantineReason = n.getStringValue(); },
"quarantineType": n => { quarantineDetails.quarantineType = n.getEnumValue(QuarantineTypeObject); },
};
}
/**
* The deserialization information for the current model
* @param RuleBasedSubjectSet The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoRuleBasedSubjectSet(ruleBasedSubjectSet = {}) {
return Object.assign(Object.assign({}, deserializeIntoSubjectSet(ruleBasedSubjectSet)), { "rule": n => { ruleBasedSubjectSet.rule = n.getStringValue(); } });
}
/**
* The deserialization information for the current model
* @param Run The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoRun(run = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(run)), { "activatedOnScope": n => { run.activatedOnScope = n.getObjectValue(createActivationScopeFromDiscriminatorValue); }, "completedDateTime": n => { run.completedDateTime = n.getDateValue(); }, "failedTasksCount": n => { run.failedTasksCount = n.getNumberValue(); }, "failedUsersCount": n => { run.failedUsersCount = n.getNumberValue(); }, "lastUpdatedDateTime": n => { run.lastUpdatedDateTime = n.getDateValue(); }, "processingStatus": n => { run.processingStatus = n.getEnumValue(LifecycleWorkflowProcessingStatusObject); }, "reprocessedRuns": n => { run.reprocessedRuns = n.getCollectionOfObjectValues(createRunFromDiscriminatorValue); }, "scheduledDateTime": n => { run.scheduledDateTime = n.getDateValue(); }, "startedDateTime": n => { run.startedDateTime = n.getDateValue(); }, "successfulUsersCount": n => { run.successfulUsersCount = n.getNumberValue(); }, "taskProcessingResults": n => { run.taskProcessingResults = n.getCollectionOfObjectValues(createTaskProcessingResultFromDiscriminatorValue); }, "totalTasksCount": n => { run.totalTasksCount = n.getNumberValue(); }, "totalUnprocessedTasksCount": n => { run.totalUnprocessedTasksCount = n.getNumberValue(); }, "totalUsersCount": n => { run.totalUsersCount = n.getNumberValue(); }, "userProcessingResults": n => { run.userProcessingResults = n.getCollectionOfObjectValues(createUserProcessingResultFromDiscriminatorValue); }, "workflowExecutionType": n => { run.workflowExecutionType = n.getEnumValue(WorkflowExecutionTypeObject); } });
}
/**
* The deserialization information for the current model
* @param RunCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoRunCollectionResponse(runCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(runCollectionResponse)), { "value": n => { runCollectionResponse.value = n.getCollectionOfObjectValues(createRunFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param RunSummary The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoRunSummary(runSummary = {}) {
return {
"backingStoreEnabled": n => { runSummary.backingStoreEnabled = true; },
"failedRuns": n => { runSummary.failedRuns = n.getNumberValue(); },
"failedTasks": n => { runSummary.failedTasks = n.getNumberValue(); },
"@odata.type": n => { runSummary.odataType = n.getStringValue(); },
"successfulRuns": n => { runSummary.successfulRuns = n.getNumberValue(); },
"totalRuns": n => { runSummary.totalRuns = n.getNumberValue(); },
"totalTasks": n => { runSummary.totalTasks = n.getNumberValue(); },
"totalUsers": n => { runSummary.totalUsers = n.getNumberValue(); },
};
}
/**
* The deserialization information for the current model
* @param Task The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoTask(task = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(task)), { "arguments": n => { task.arguments = n.getCollectionOfObjectValues(createKeyValuePairFromDiscriminatorValue); }, "category": n => { task.category = n.getCollectionOfEnumValues(LifecycleTaskCategoryObject); }, "continueOnError": n => { task.continueOnError = n.getBooleanValue(); }, "description": n => { task.description = n.getStringValue(); }, "displayName": n => { task.displayName = n.getStringValue(); }, "executionSequence": n => { task.executionSequence = n.getNumberValue(); }, "isEnabled": n => { task.isEnabled = n.getBooleanValue(); }, "taskDefinitionId": n => { task.taskDefinitionId = n.getStringValue(); }, "taskProcessingResults": n => { task.taskProcessingResults = n.getCollectionOfObjectValues(createTaskProcessingResultFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param TaskCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoTaskCollectionResponse(taskCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(taskCollectionResponse)), { "value": n => { taskCollectionResponse.value = n.getCollectionOfObjectValues(createTaskFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param TaskDefinition The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoTaskDefinition(taskDefinition = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(taskDefinition)), { "category": n => { taskDefinition.category = n.getCollectionOfEnumValues(LifecycleTaskCategoryObject); }, "continueOnError": n => { taskDefinition.continueOnError = n.getBooleanValue(); }, "description": n => { taskDefinition.description = n.getStringValue(); }, "displayName": n => { taskDefinition.displayName = n.getStringValue(); }, "parameters": n => { taskDefinition.parameters = n.getCollectionOfObjectValues(createParameterFromDiscriminatorValue); }, "version": n => { ta