/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createContentInfoFromDiscriminatorValue, createDowngradeJustificationFromDiscriminatorValue, createInformationProtectionActionFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeContentInfo, serializeDowngradeJustification, 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 {EvaluateRemovalPostRequestBody}
 */
// @ts-ignore
export function createEvaluateRemovalPostRequestBodyFromDiscriminatorValue(parseNode) {
    return deserializeIntoEvaluateRemovalPostRequestBody;
}
/**
 * Creates a new instance of the appropriate class based on discriminator value
 * @param parseNode The parse node to use to read the discriminator value and create the object
 * @returns {EvaluateRemovalPostResponse}
 */
// @ts-ignore
export function createEvaluateRemovalPostResponseFromDiscriminatorValue(parseNode) {
    return deserializeIntoEvaluateRemovalPostResponse;
}
/**
 * The deserialization information for the current model
 * @returns {Record<string, (node: ParseNode) => void>}
 */
// @ts-ignore
export function deserializeIntoEvaluateRemovalPostRequestBody(evaluateRemovalPostRequestBody = {}) {
    return {
        "backingStoreEnabled": n => { evaluateRemovalPostRequestBody.backingStoreEnabled = true; },
        "contentInfo": n => { evaluateRemovalPostRequestBody.contentInfo = n.getObjectValue(createContentInfoFromDiscriminatorValue); },
        "downgradeJustification": n => { evaluateRemovalPostRequestBody.downgradeJustification = n.getObjectValue(createDowngradeJustificationFromDiscriminatorValue); },
    };
}
/**
 * The deserialization information for the current model
 * @returns {Record<string, (node: ParseNode) => void>}
 */
// @ts-ignore
export function deserializeIntoEvaluateRemovalPostResponse(evaluateRemovalPostResponse = {}) {
    return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(evaluateRemovalPostResponse)), { "value": n => { evaluateRemovalPostResponse.value = n.getCollectionOfObjectValues(createInformationProtectionActionFromDiscriminatorValue); } });
}
/**
 * Serializes information the current object
 * @param writer Serialization writer to use to serialize this model
 */
// @ts-ignore
export function serializeEvaluateRemovalPostRequestBody(writer, evaluateRemovalPostRequestBody = {}) {
    if (evaluateRemovalPostRequestBody) {
        writer.writeObjectValue("contentInfo", evaluateRemovalPostRequestBody.contentInfo, serializeContentInfo);
        writer.writeObjectValue("downgradeJustification", evaluateRemovalPostRequestBody.downgradeJustification, serializeDowngradeJustification);
        writer.writeAdditionalData(evaluateRemovalPostRequestBody.additionalData);
    }
}
/**
 * Serializes information the current object
 * @param writer Serialization writer to use to serialize this model
 */
// @ts-ignore
export function serializeEvaluateRemovalPostResponse(writer, evaluateRemovalPostResponse = {}) {
    if (evaluateRemovalPostResponse) {
        serializeBaseCollectionPaginationCountResponse(writer, evaluateRemovalPostResponse);
        writer.writeCollectionOfObjectValues("value", evaluateRemovalPostResponse.value, serializeInformationProtectionAction);
    }
}
/**
 * Uri template for the request builder.
 */
export const EvaluateRemovalRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/informationProtection/policy/labels/evaluateRemoval";
/**
 * Metadata for all the requests in the request builder.
 */
export const EvaluateRemovalRequestBuilderRequestsMetadata = {
    post: {
        uriTemplate: EvaluateRemovalRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: createEvaluateRemovalPostResponseFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: serializeEvaluateRemovalPostRequestBody,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/* tslint:enable */
/* eslint-enable */
//# sourceMappingURL=index.js.map