/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createClassificationResultFromDiscriminatorValue, createContentInfoFromDiscriminatorValue, createInformationProtectionActionFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeClassificationResult, serializeContentInfo, serializeInformationProtectionAction } from '@microsoft/msgraph-beta-sdk/models/index.js';
// @ts-ignore
import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-beta-sdk/models/oDataErrors/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 {EvaluateClassificationResultsPostRequestBody}
 */
// @ts-ignore
export function createEvaluateClassificationResultsPostRequestBodyFromDiscriminatorValue(parseNode) {
    return deserializeIntoEvaluateClassificationResultsPostRequestBody;
}
/**
 * Creates a new instance of the appropriate class based on discriminator value
 * @param parseNode The parse node to use to read the discriminator value and create the object
 * @returns {EvaluateClassificationResultsPostResponse}
 */
// @ts-ignore
export function createEvaluateClassificationResultsPostResponseFromDiscriminatorValue(parseNode) {
    return deserializeIntoEvaluateClassificationResultsPostResponse;
}
/**
 * The deserialization information for the current model
 * @returns {Record<string, (node: ParseNode) => void>}
 */
// @ts-ignore
export function deserializeIntoEvaluateClassificationResultsPostRequestBody(evaluateClassificationResultsPostRequestBody = {}) {
    return {
        "backingStoreEnabled": n => { evaluateClassificationResultsPostRequestBody.backingStoreEnabled = true; },
        "classificationResults": n => { evaluateClassificationResultsPostRequestBody.classificationResults = n.getCollectionOfObjectValues(createClassificationResultFromDiscriminatorValue); },
        "contentInfo": n => { evaluateClassificationResultsPostRequestBody.contentInfo = n.getObjectValue(createContentInfoFromDiscriminatorValue); },
    };
}
/**
 * The deserialization information for the current model
 * @returns {Record<string, (node: ParseNode) => void>}
 */
// @ts-ignore
export function deserializeIntoEvaluateClassificationResultsPostResponse(evaluateClassificationResultsPostResponse = {}) {
    return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(evaluateClassificationResultsPostResponse)), { "value": n => { evaluateClassificationResultsPostResponse.value = n.getCollectionOfObjectValues(createInformationProtectionActionFromDiscriminatorValue); } });
}
/**
 * Serializes information the current object
 * @param writer Serialization writer to use to serialize this model
 */
// @ts-ignore
export function serializeEvaluateClassificationResultsPostRequestBody(writer, evaluateClassificationResultsPostRequestBody = {}) {
    if (evaluateClassificationResultsPostRequestBody) {
        writer.writeCollectionOfObjectValues("classificationResults", evaluateClassificationResultsPostRequestBody.classificationResults, serializeClassificationResult);
        writer.writeObjectValue("contentInfo", evaluateClassificationResultsPostRequestBody.contentInfo, serializeContentInfo);
        writer.writeAdditionalData(evaluateClassificationResultsPostRequestBody.additionalData);
    }
}
/**
 * Serializes information the current object
 * @param writer Serialization writer to use to serialize this model
 */
// @ts-ignore
export function serializeEvaluateClassificationResultsPostResponse(writer, evaluateClassificationResultsPostResponse = {}) {
    if (evaluateClassificationResultsPostResponse) {
        serializeBaseCollectionPaginationCountResponse(writer, evaluateClassificationResultsPostResponse);
        writer.writeCollectionOfObjectValues("value", evaluateClassificationResultsPostResponse.value, serializeInformationProtectionAction);
    }
}
/**
 * Uri template for the request builder.
 */
export const EvaluateClassificationResultsRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/informationProtection/policy/labels/evaluateClassificationResults";
/**
 * Metadata for all the requests in the request builder.
 */
export const EvaluateClassificationResultsRequestBuilderRequestsMetadata = {
    post: {
        uriTemplate: EvaluateClassificationResultsRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: createEvaluateClassificationResultsPostResponseFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: serializeEvaluateClassificationResultsPostRequestBody,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/* tslint:enable */
/* eslint-enable */
//# sourceMappingURL=index.js.map