@microsoft/msgraph-beta-sdk
Version:
Microsoft Graph Beta JavaScript client library
1,065 lines • 140 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createLongRunningOperationFromDiscriminatorValue, createPublicErrorFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, deserializeIntoEntity, deserializeIntoLongRunningOperation, serializeBaseCollectionPaginationCountResponse, serializeEntity, serializeLongRunningOperation } 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 {AdditionalClassGroupOptions}
*/
// @ts-ignore
export function createAdditionalClassGroupOptionsFromDiscriminatorValue(parseNode) {
return deserializeIntoAdditionalClassGroupOptions;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {AdditionalUserOptions}
*/
// @ts-ignore
export function createAdditionalUserOptionsFromDiscriminatorValue(parseNode) {
return deserializeIntoAdditionalUserOptions;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {AdministrativeUnitProvisioningFlow}
*/
// @ts-ignore
export function createAdministrativeUnitProvisioningFlowFromDiscriminatorValue(parseNode) {
return deserializeIntoAdministrativeUnitProvisioningFlow;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {AdminUnitCreationOptions}
*/
// @ts-ignore
export function createAdminUnitCreationOptionsFromDiscriminatorValue(parseNode) {
return deserializeIntoAdminUnitCreationOptions;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {AggregatedInboundStatistics}
*/
// @ts-ignore
export function createAggregatedInboundStatisticsFromDiscriminatorValue(parseNode) {
return deserializeIntoAggregatedInboundStatistics;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {ApiDataConnector}
*/
// @ts-ignore
export function createApiDataConnectorFromDiscriminatorValue(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.industryData.oneRosterApiDataConnector":
return deserializeIntoOneRosterApiDataConnector;
}
}
}
return deserializeIntoApiDataConnector;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {AzureDataLakeConnector}
*/
// @ts-ignore
export function createAzureDataLakeConnectorFromDiscriminatorValue(parseNode) {
return deserializeIntoAzureDataLakeConnector;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {BasicFilter}
*/
// @ts-ignore
export function createBasicFilterFromDiscriminatorValue(parseNode) {
return deserializeIntoBasicFilter;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {ClassGroupConfiguration}
*/
// @ts-ignore
export function createClassGroupConfigurationFromDiscriminatorValue(parseNode) {
return deserializeIntoClassGroupConfiguration;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {ClassGroupProvisioningFlow}
*/
// @ts-ignore
export function createClassGroupProvisioningFlowFromDiscriminatorValue(parseNode) {
return deserializeIntoClassGroupProvisioningFlow;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {Credential}
*/
// @ts-ignore
export function createCredentialFromDiscriminatorValue(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.industryData.oAuth1ClientCredential":
return deserializeIntoOAuth1ClientCredential;
case "#microsoft.graph.industryData.oAuth2ClientCredential":
return deserializeIntoOAuth2ClientCredential;
case "#microsoft.graph.industryData.oAuthClientCredential":
return deserializeIntoOAuthClientCredential;
}
}
}
return deserializeIntoCredential;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {EnrollmentMappings}
*/
// @ts-ignore
export function createEnrollmentMappingsFromDiscriminatorValue(parseNode) {
return deserializeIntoEnrollmentMappings;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {FileDataConnector}
*/
// @ts-ignore
export function createFileDataConnectorFromDiscriminatorValue(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.industryData.azureDataLakeConnector":
return deserializeIntoAzureDataLakeConnector;
}
}
}
return deserializeIntoFileDataConnector;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {FileFormatReferenceValue}
*/
// @ts-ignore
export function createFileFormatReferenceValueFromDiscriminatorValue(parseNode) {
return deserializeIntoFileFormatReferenceValue;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {FileValidateOperation}
*/
// @ts-ignore
export function createFileValidateOperationFromDiscriminatorValue(parseNode) {
return deserializeIntoFileValidateOperation;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {Filter}
*/
// @ts-ignore
export function createFilterFromDiscriminatorValue(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.industryData.basicFilter":
return deserializeIntoBasicFilter;
}
}
}
return deserializeIntoFilter;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {IdentifierTypeReferenceValue}
*/
// @ts-ignore
export function createIdentifierTypeReferenceValueFromDiscriminatorValue(parseNode) {
return deserializeIntoIdentifierTypeReferenceValue;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {InboundActivityResults}
*/
// @ts-ignore
export function createInboundActivityResultsFromDiscriminatorValue(parseNode) {
return deserializeIntoInboundActivityResults;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {InboundApiFlow}
*/
// @ts-ignore
export function createInboundApiFlowFromDiscriminatorValue(parseNode) {
return deserializeIntoInboundApiFlow;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {InboundFileFlow}
*/
// @ts-ignore
export function createInboundFileFlowFromDiscriminatorValue(parseNode) {
return deserializeIntoInboundFileFlow;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {InboundFlowActivity}
*/
// @ts-ignore
export function createInboundFlowActivityFromDiscriminatorValue(parseNode) {
return deserializeIntoInboundFlowActivity;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {InboundFlowCollectionResponse}
*/
// @ts-ignore
export function createInboundFlowCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoInboundFlowCollectionResponse;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {InboundFlow}
*/
// @ts-ignore
export function createInboundFlowFromDiscriminatorValue(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.industryData.inboundApiFlow":
return deserializeIntoInboundApiFlow;
case "#microsoft.graph.industryData.inboundFileFlow":
return deserializeIntoInboundFileFlow;
}
}
}
return deserializeIntoInboundFlow;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {IndustryDataActivity}
*/
// @ts-ignore
export function createIndustryDataActivityFromDiscriminatorValue(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.industryData.inboundApiFlow":
return deserializeIntoInboundApiFlow;
case "#microsoft.graph.industryData.inboundFileFlow":
return deserializeIntoInboundFileFlow;
case "#microsoft.graph.industryData.inboundFlow":
return deserializeIntoInboundFlow;
}
}
}
return deserializeIntoIndustryDataActivity;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {IndustryDataActivityStatistics}
*/
// @ts-ignore
export function createIndustryDataActivityStatisticsFromDiscriminatorValue(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.industryData.inboundActivityResults":
return deserializeIntoInboundActivityResults;
}
}
}
return deserializeIntoIndustryDataActivityStatistics;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {IndustryDataConnectorCollectionResponse}
*/
// @ts-ignore
export function createIndustryDataConnectorCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoIndustryDataConnectorCollectionResponse;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {IndustryDataConnector}
*/
// @ts-ignore
export function createIndustryDataConnectorFromDiscriminatorValue(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.industryData.apiDataConnector":
return deserializeIntoApiDataConnector;
case "#microsoft.graph.industryData.azureDataLakeConnector":
return deserializeIntoAzureDataLakeConnector;
case "#microsoft.graph.industryData.fileDataConnector":
return deserializeIntoFileDataConnector;
case "#microsoft.graph.industryData.oneRosterApiDataConnector":
return deserializeIntoOneRosterApiDataConnector;
}
}
}
return deserializeIntoIndustryDataConnector;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {IndustryDataRoot}
*/
// @ts-ignore
export function createIndustryDataRootFromDiscriminatorValue(parseNode) {
return deserializeIntoIndustryDataRoot;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {IndustryDataRunActivityCollectionResponse}
*/
// @ts-ignore
export function createIndustryDataRunActivityCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoIndustryDataRunActivityCollectionResponse;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {IndustryDataRunActivity}
*/
// @ts-ignore
export function createIndustryDataRunActivityFromDiscriminatorValue(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.industryData.inboundFlowActivity":
return deserializeIntoInboundFlowActivity;
case "#microsoft.graph.industryData.outboundFlowActivity":
return deserializeIntoOutboundFlowActivity;
}
}
}
return deserializeIntoIndustryDataRunActivity;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {IndustryDataRunCollectionResponse}
*/
// @ts-ignore
export function createIndustryDataRunCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoIndustryDataRunCollectionResponse;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {IndustryDataRunEntityCountMetric}
*/
// @ts-ignore
export function createIndustryDataRunEntityCountMetricFromDiscriminatorValue(parseNode) {
return deserializeIntoIndustryDataRunEntityCountMetric;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {IndustryDataRun}
*/
// @ts-ignore
export function createIndustryDataRunFromDiscriminatorValue(parseNode) {
return deserializeIntoIndustryDataRun;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {IndustryDataRunRoleCountMetric}
*/
// @ts-ignore
export function createIndustryDataRunRoleCountMetricFromDiscriminatorValue(parseNode) {
return deserializeIntoIndustryDataRunRoleCountMetric;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {IndustryDataRunStatistics}
*/
// @ts-ignore
export function createIndustryDataRunStatisticsFromDiscriminatorValue(parseNode) {
return deserializeIntoIndustryDataRunStatistics;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {OAuth1ClientCredential}
*/
// @ts-ignore
export function createOAuth1ClientCredentialFromDiscriminatorValue(parseNode) {
return deserializeIntoOAuth1ClientCredential;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {OAuth2ClientCredential}
*/
// @ts-ignore
export function createOAuth2ClientCredentialFromDiscriminatorValue(parseNode) {
return deserializeIntoOAuth2ClientCredential;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {OAuthClientCredential}
*/
// @ts-ignore
export function createOAuthClientCredentialFromDiscriminatorValue(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.industryData.oAuth1ClientCredential":
return deserializeIntoOAuth1ClientCredential;
case "#microsoft.graph.industryData.oAuth2ClientCredential":
return deserializeIntoOAuth2ClientCredential;
}
}
}
return deserializeIntoOAuthClientCredential;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {OneRosterApiDataConnector}
*/
// @ts-ignore
export function createOneRosterApiDataConnectorFromDiscriminatorValue(parseNode) {
return deserializeIntoOneRosterApiDataConnector;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {OutboundFlowActivity}
*/
// @ts-ignore
export function createOutboundFlowActivityFromDiscriminatorValue(parseNode) {
return deserializeIntoOutboundFlowActivity;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {OutboundProvisioningFlowSetCollectionResponse}
*/
// @ts-ignore
export function createOutboundProvisioningFlowSetCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoOutboundProvisioningFlowSetCollectionResponse;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {OutboundProvisioningFlowSet}
*/
// @ts-ignore
export function createOutboundProvisioningFlowSetFromDiscriminatorValue(parseNode) {
return deserializeIntoOutboundProvisioningFlowSet;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {PasswordSettings}
*/
// @ts-ignore
export function createPasswordSettingsFromDiscriminatorValue(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.industryData.simplePasswordSettings":
return deserializeIntoSimplePasswordSettings;
}
}
}
return deserializeIntoPasswordSettings;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {ProvisioningFlowCollectionResponse}
*/
// @ts-ignore
export function createProvisioningFlowCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoProvisioningFlowCollectionResponse;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {ProvisioningFlow}
*/
// @ts-ignore
export function createProvisioningFlowFromDiscriminatorValue(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.industryData.administrativeUnitProvisioningFlow":
return deserializeIntoAdministrativeUnitProvisioningFlow;
case "#microsoft.graph.industryData.classGroupProvisioningFlow":
return deserializeIntoClassGroupProvisioningFlow;
case "#microsoft.graph.industryData.securityGroupProvisioningFlow":
return deserializeIntoSecurityGroupProvisioningFlow;
case "#microsoft.graph.industryData.userProvisioningFlow":
return deserializeIntoUserProvisioningFlow;
}
}
}
return deserializeIntoProvisioningFlow;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {ReferenceDefinitionCollectionResponse}
*/
// @ts-ignore
export function createReferenceDefinitionCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoReferenceDefinitionCollectionResponse;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {ReferenceDefinition}
*/
// @ts-ignore
export function createReferenceDefinitionFromDiscriminatorValue(parseNode) {
return deserializeIntoReferenceDefinition;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {ReferenceValue}
*/
// @ts-ignore
export function createReferenceValueFromDiscriminatorValue(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.industryData.fileFormatReferenceValue":
return deserializeIntoFileFormatReferenceValue;
case "#microsoft.graph.industryData.identifierTypeReferenceValue":
return deserializeIntoIdentifierTypeReferenceValue;
case "#microsoft.graph.industryData.roleReferenceValue":
return deserializeIntoRoleReferenceValue;
case "#microsoft.graph.industryData.sectionRoleReferenceValue":
return deserializeIntoSectionRoleReferenceValue;
case "#microsoft.graph.industryData.userMatchTargetReferenceValue":
return deserializeIntoUserMatchTargetReferenceValue;
case "#microsoft.graph.industryData.yearReferenceValue":
return deserializeIntoYearReferenceValue;
}
}
}
return deserializeIntoReferenceValue;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {RoleGroupCollectionResponse}
*/
// @ts-ignore
export function createRoleGroupCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoRoleGroupCollectionResponse;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {RoleGroup}
*/
// @ts-ignore
export function createRoleGroupFromDiscriminatorValue(parseNode) {
return deserializeIntoRoleGroup;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {RoleReferenceValue}
*/
// @ts-ignore
export function createRoleReferenceValueFromDiscriminatorValue(parseNode) {
return deserializeIntoRoleReferenceValue;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {SectionRoleReferenceValue}
*/
// @ts-ignore
export function createSectionRoleReferenceValueFromDiscriminatorValue(parseNode) {
return deserializeIntoSectionRoleReferenceValue;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {SecurityGroupCreationOptions}
*/
// @ts-ignore
export function createSecurityGroupCreationOptionsFromDiscriminatorValue(parseNode) {
return deserializeIntoSecurityGroupCreationOptions;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {SecurityGroupProvisioningFlow}
*/
// @ts-ignore
export function createSecurityGroupProvisioningFlowFromDiscriminatorValue(parseNode) {
return deserializeIntoSecurityGroupProvisioningFlow;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {SimplePasswordSettings}
*/
// @ts-ignore
export function createSimplePasswordSettingsFromDiscriminatorValue(parseNode) {
return deserializeIntoSimplePasswordSettings;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {SourceSystemDefinitionCollectionResponse}
*/
// @ts-ignore
export function createSourceSystemDefinitionCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoSourceSystemDefinitionCollectionResponse;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {SourceSystemDefinition}
*/
// @ts-ignore
export function createSourceSystemDefinitionFromDiscriminatorValue(parseNode) {
return deserializeIntoSourceSystemDefinition;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {UserConfiguration}
*/
// @ts-ignore
export function createUserConfigurationFromDiscriminatorValue(parseNode) {
return deserializeIntoUserConfiguration;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {UserCreationOptions}
*/
// @ts-ignore
export function createUserCreationOptionsFromDiscriminatorValue(parseNode) {
return deserializeIntoUserCreationOptions;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {UserManagementOptions}
*/
// @ts-ignore
export function createUserManagementOptionsFromDiscriminatorValue(parseNode) {
return deserializeIntoUserManagementOptions;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {UserMatchingSetting}
*/
// @ts-ignore
export function createUserMatchingSettingFromDiscriminatorValue(parseNode) {
return deserializeIntoUserMatchingSetting;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {UserMatchTargetReferenceValue}
*/
// @ts-ignore
export function createUserMatchTargetReferenceValueFromDiscriminatorValue(parseNode) {
return deserializeIntoUserMatchTargetReferenceValue;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {UserProvisioningFlow}
*/
// @ts-ignore
export function createUserProvisioningFlowFromDiscriminatorValue(parseNode) {
return deserializeIntoUserProvisioningFlow;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {ValidateOperation}
*/
// @ts-ignore
export function createValidateOperationFromDiscriminatorValue(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.industryData.fileValidateOperation":
return deserializeIntoFileValidateOperation;
}
}
}
return deserializeIntoValidateOperation;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {YearReferenceValue}
*/
// @ts-ignore
export function createYearReferenceValueFromDiscriminatorValue(parseNode) {
return deserializeIntoYearReferenceValue;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {YearTimePeriodDefinitionCollectionResponse}
*/
// @ts-ignore
export function createYearTimePeriodDefinitionCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoYearTimePeriodDefinitionCollectionResponse;
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {YearTimePeriodDefinition}
*/
// @ts-ignore
export function createYearTimePeriodDefinitionFromDiscriminatorValue(parseNode) {
return deserializeIntoYearTimePeriodDefinition;
}
/**
* The deserialization information for the current model
* @param AdditionalClassGroupOptions The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoAdditionalClassGroupOptions(additionalClassGroupOptions = {}) {
return {
"backingStoreEnabled": n => { additionalClassGroupOptions.backingStoreEnabled = true; },
"createTeam": n => { additionalClassGroupOptions.createTeam = n.getBooleanValue(); },
"@odata.type": n => { additionalClassGroupOptions.odataType = n.getStringValue(); },
"writeDisplayNameOnCreateOnly": n => { additionalClassGroupOptions.writeDisplayNameOnCreateOnly = n.getBooleanValue(); },
};
}
/**
* The deserialization information for the current model
* @param AdditionalUserOptions The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoAdditionalUserOptions(additionalUserOptions = {}) {
return {
"allowStudentContactAssociation": n => { additionalUserOptions.allowStudentContactAssociation = n.getBooleanValue(); },
"backingStoreEnabled": n => { additionalUserOptions.backingStoreEnabled = true; },
"markAllStudentsAsMinors": n => { additionalUserOptions.markAllStudentsAsMinors = n.getBooleanValue(); },
"@odata.type": n => { additionalUserOptions.odataType = n.getStringValue(); },
"studentAgeGroup": n => { additionalUserOptions.studentAgeGroup = n.getEnumValue(StudentAgeGroupObject); },
};
}
/**
* The deserialization information for the current model
* @param AdministrativeUnitProvisioningFlow The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoAdministrativeUnitProvisioningFlow(administrativeUnitProvisioningFlow = {}) {
return Object.assign(Object.assign({}, deserializeIntoProvisioningFlow(administrativeUnitProvisioningFlow)), { "creationOptions": n => { administrativeUnitProvisioningFlow.creationOptions = n.getObjectValue(createAdminUnitCreationOptionsFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param AdminUnitCreationOptions The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoAdminUnitCreationOptions(adminUnitCreationOptions = {}) {
return {
"backingStoreEnabled": n => { adminUnitCreationOptions.backingStoreEnabled = true; },
"createBasedOnOrg": n => { adminUnitCreationOptions.createBasedOnOrg = n.getBooleanValue(); },
"createBasedOnOrgPlusRoleGroup": n => { adminUnitCreationOptions.createBasedOnOrgPlusRoleGroup = n.getBooleanValue(); },
"@odata.type": n => { adminUnitCreationOptions.odataType = n.getStringValue(); },
};
}
/**
* The deserialization information for the current model
* @param AggregatedInboundStatistics The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoAggregatedInboundStatistics(aggregatedInboundStatistics = {}) {
return {
"backingStoreEnabled": n => { aggregatedInboundStatistics.backingStoreEnabled = true; },
"errors": n => { aggregatedInboundStatistics.errors = n.getNumberValue(); },
"groups": n => { aggregatedInboundStatistics.groups = n.getNumberValue(); },
"matchedPeopleByRole": n => { aggregatedInboundStatistics.matchedPeopleByRole = n.getCollectionOfObjectValues(createIndustryDataRunRoleCountMetricFromDiscriminatorValue); },
"memberships": n => { aggregatedInboundStatistics.memberships = n.getNumberValue(); },
"@odata.type": n => { aggregatedInboundStatistics.odataType = n.getStringValue(); },
"organizations": n => { aggregatedInboundStatistics.organizations = n.getNumberValue(); },
"people": n => { aggregatedInboundStatistics.people = n.getNumberValue(); },
"unmatchedPeopleByRole": n => { aggregatedInboundStatistics.unmatchedPeopleByRole = n.getCollectionOfObjectValues(createIndustryDataRunRoleCountMetricFromDiscriminatorValue); },
"warnings": n => { aggregatedInboundStatistics.warnings = n.getNumberValue(); },
};
}
/**
* The deserialization information for the current model
* @param ApiDataConnector The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoApiDataConnector(apiDataConnector = {}) {
return Object.assign(Object.assign({}, deserializeIntoIndustryDataConnector(apiDataConnector)), { "apiFormat": n => { apiDataConnector.apiFormat = n.getEnumValue(ApiFormatObject); }, "baseUrl": n => { apiDataConnector.baseUrl = n.getStringValue(); }, "credential": n => { apiDataConnector.credential = n.getObjectValue(createCredentialFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param AzureDataLakeConnector The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoAzureDataLakeConnector(azureDataLakeConnector = {}) {
return Object.assign(Object.assign({}, deserializeIntoFileDataConnector(azureDataLakeConnector)), { "fileFormat": n => { azureDataLakeConnector.fileFormat = n.getObjectValue(createFileFormatReferenceValueFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param BasicFilter The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoBasicFilter(basicFilter = {}) {
return Object.assign(Object.assign({}, deserializeIntoFilter(basicFilter)), { "attribute": n => { basicFilter.attribute = n.getEnumValue(FilterOptionsObject); }, "in": n => { basicFilter.inEscaped = n.getCollectionOfPrimitiveValues(); } });
}
/**
* The deserialization information for the current model
* @param ClassGroupConfiguration The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoClassGroupConfiguration(classGroupConfiguration = {}) {
return {
"additionalAttributes": n => { classGroupConfiguration.additionalAttributes = n.getCollectionOfEnumValues(AdditionalClassGroupAttributesObject); },
"additionalOptions": n => { classGroupConfiguration.additionalOptions = n.getObjectValue(createAdditionalClassGroupOptionsFromDiscriminatorValue); },
"backingStoreEnabled": n => { classGroupConfiguration.backingStoreEnabled = true; },
"enrollmentMappings": n => { classGroupConfiguration.enrollmentMappings = n.getObjectValue(createEnrollmentMappingsFromDiscriminatorValue); },
"@odata.type": n => { classGroupConfiguration.odataType = n.getStringValue(); },
};
}
/**
* The deserialization information for the current model
* @param ClassGroupProvisioningFlow The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoClassGroupProvisioningFlow(classGroupProvisioningFlow = {}) {
return Object.assign(Object.assign({}, deserializeIntoProvisioningFlow(classGroupProvisioningFlow)), { "configuration": n => { classGroupProvisioningFlow.configuration = n.getObjectValue(createClassGroupConfigurationFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param Credential The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoCredential(credential = {}) {
return {
"backingStoreEnabled": n => { credential.backingStoreEnabled = true; },
"displayName": n => { credential.displayName = n.getStringValue(); },
"isValid": n => { credential.isValid = n.getBooleanValue(); },
"lastValidDateTime": n => { credential.lastValidDateTime = n.getDateValue(); },
"@odata.type": n => { credential.odataType = n.getStringValue(); },
};
}
/**
* The deserialization information for the current model
* @param EnrollmentMappings The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoEnrollmentMappings(enrollmentMappings = {}) {
return {
"backingStoreEnabled": n => { enrollmentMappings.backingStoreEnabled = true; },
"memberEnrollmentMappings": n => { enrollmentMappings.memberEnrollmentMappings = n.getCollectionOfObjectValues(createSectionRoleReferenceValueFromDiscriminatorValue); },
"@odata.type": n => { enrollmentMappings.odataType = n.getStringValue(); },
"ownerEnrollmentMappings": n => { enrollmentMappings.ownerEnrollmentMappings = n.getCollectionOfObjectValues(createSectionRoleReferenceValueFromDiscriminatorValue); },
};
}
/**
* The deserialization information for the current model
* @param FileDataConnector The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoFileDataConnector(fileDataConnector = {}) {
return Object.assign({}, deserializeIntoIndustryDataConnector(fileDataConnector));
}
/**
* The deserialization information for the current model
* @param FileFormatReferenceValue The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoFileFormatReferenceValue(fileFormatReferenceValue = {}) {
return Object.assign({}, deserializeIntoReferenceValue(fileFormatReferenceValue));
}
/**
* The deserialization information for the current model
* @param FileValidateOperation The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoFileValidateOperation(fileValidateOperation = {}) {
return Object.assign(Object.assign({}, deserializeIntoValidateOperation(fileValidateOperation)), { "validatedFiles": n => { fileValidateOperation.validatedFiles = n.getCollectionOfPrimitiveValues(); } });
}
/**
* The deserialization information for the current model
* @param Filter The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoFilter(filter = {}) {
return {
"backingStoreEnabled": n => { filter.backingStoreEnabled = true; },
"@odata.type": n => { filter.odataType = n.getStringValue(); },
};
}
/**
* The deserialization information for the current model
* @param IdentifierTypeReferenceValue The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoIdentifierTypeReferenceValue(identifierTypeReferenceValue = {}) {
return Object.assign({}, deserializeIntoReferenceValue(identifierTypeReferenceValue));
}
/**
* The deserialization information for the current model
* @param InboundActivityResults The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoInboundActivityResults(inboundActivityResults = {}) {
return Object.assign(Object.assign({}, deserializeIntoIndustryDataActivityStatistics(inboundActivityResults)), { "errors": n => { inboundActivityResults.errors = n.getNumberValue(); }, "groups": n => { inboundActivityResults.groups = n.getObjectValue(createIndustryDataRunEntityCountMetricFromDiscriminatorValue); }, "matchedPeopleByRole": n => { inboundActivityResults.matchedPeopleByRole = n.getCollectionOfObjectValues(createIndustryDataRunRoleCountMetricFromDiscriminatorValue); }, "memberships": n => { inboundActivityResults.memberships = n.getObjectValue(createIndustryDataRunEntityCountMetricFromDiscriminatorValue); }, "organizations": n => { inboundActivityResults.organizations = n.getObjectValue(createIndustryDataRunEntityCountMetricFromDiscriminatorValue); }, "people": n => { inboundActivityResults.people = n.getObjectValue(createIndustryDataRunEntityCountMetricFromDiscriminatorValue); }, "unmatchedPeopleByRole": n => { inboundActivityResults.unmatchedPeopleByRole = n.getCollectionOfObjectValues(createIndustryDataRunRoleCountMetricFromDiscriminatorValue); }, "warnings": n => { inboundActivityResults.warnings = n.getNumberValue(); } });
}
/**
* The deserialization information for the current model
* @param InboundApiFlow The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoInboundApiFlow(inboundApiFlow = {}) {
return Object.assign({}, deserializeIntoInboundFlow(inboundApiFlow));
}
/**
* The deserialization information for the current model
* @param InboundFileFlow The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoInboundFileFlow(inboundFileFlow = {}) {
return Object.assign({}, deserializeIntoInboundFlow(inboundFileFlow));
}
/**
* The deserialization information for the current model
* @param InboundFlow The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoInboundFlow(inboundFlow = {}) {
return Object.assign(Object.assign({}, deserializeIntoIndustryDataActivity(inboundFlow)), { "dataConnector": n => { inboundFlow.dataConnector = n.getObjectValue(createIndustryDataConnectorFromDiscriminatorValue); }, "dataDomain": n => { inboundFlow.dataDomain = n.getEnumValue(InboundDomainObject); }, "effectiveDateTime": n => { inboundFlow.effectiveDateTime = n.getDateValue(); }, "expirationDateTime": n => { inboundFlow.expirationDateTime = n.getDateValue(); }, "year": n => { inboundFlow.year = n.getObjectValue(createYearTimePeriodDefinitionFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param InboundFlowActivity The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoInboundFlowActivity(inboundFlowActivity = {}) {
return Object.assign({}, deserializeIntoIndustryDataRunActivity(inboundFlowActivity));
}
/**
* The deserialization information for the current model
* @param InboundFlowCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoInboundFlowCollectionResponse(inboundFlowCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(inboundFlowCollectionResponse)), { "value": n =>