/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createContentInfoFromDiscriminatorValue, createInformationProtectionActionFromDiscriminatorValue, createLabelingOptionsFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeContentInfo, serializeInformationProtectionAction, serializeLabelingOptions } 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 {EvaluateApplicationPostRequestBody}
 */
// @ts-ignore
export function createEvaluateApplicationPostRequestBodyFromDiscriminatorValue(parseNode) {
    return deserializeIntoEvaluateApplicationPostRequestBody;
}
/**
 * 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 {EvaluateApplicationPostResponse}
 */
// @ts-ignore
export function createEvaluateApplicationPostResponseFromDiscriminatorValue(parseNode) {
    return deserializeIntoEvaluateApplicationPostResponse;
}
/**
 * The deserialization information for the current model
 * @returns {Record<string, (node: ParseNode) => void>}
 */
// @ts-ignore
export function deserializeIntoEvaluateApplicationPostRequestBody(evaluateApplicationPostRequestBody = {}) {
    return {
        "backingStoreEnabled": n => { evaluateApplicationPostRequestBody.backingStoreEnabled = true; },
        "contentInfo": n => { evaluateApplicationPostRequestBody.contentInfo = n.getObjectValue(createContentInfoFromDiscriminatorValue); },
        "labelingOptions": n => { evaluateApplicationPostRequestBody.labelingOptions = n.getObjectValue(createLabelingOptionsFromDiscriminatorValue); },
    };
}
/**
 * The deserialization information for the current model
 * @returns {Record<string, (node: ParseNode) => void>}
 */
// @ts-ignore
export function deserializeIntoEvaluateApplicationPostResponse(evaluateApplicationPostResponse = {}) {
    return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(evaluateApplicationPostResponse)), { "value": n => { evaluateApplicationPostResponse.value = n.getCollectionOfObjectValues(createInformationProtectionActionFromDiscriminatorValue); } });
}
/**
 * Serializes information the current object
 * @param writer Serialization writer to use to serialize this model
 */
// @ts-ignore
export function serializeEvaluateApplicationPostRequestBody(writer, evaluateApplicationPostRequestBody = {}) {
    if (evaluateApplicationPostRequestBody) {
        writer.writeObjectValue("contentInfo", evaluateApplicationPostRequestBody.contentInfo, serializeContentInfo);
        writer.writeObjectValue("labelingOptions", evaluateApplicationPostRequestBody.labelingOptions, serializeLabelingOptions);
        writer.writeAdditionalData(evaluateApplicationPostRequestBody.additionalData);
    }
}
/**
 * Serializes information the current object
 * @param writer Serialization writer to use to serialize this model
 */
// @ts-ignore
export function serializeEvaluateApplicationPostResponse(writer, evaluateApplicationPostResponse = {}) {
    if (evaluateApplicationPostResponse) {
        serializeBaseCollectionPaginationCountResponse(writer, evaluateApplicationPostResponse);
        writer.writeCollectionOfObjectValues("value", evaluateApplicationPostResponse.value, serializeInformationProtectionAction);
    }
}
/**
 * Uri template for the request builder.
 */
export const EvaluateApplicationRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/informationProtection/policy/labels/evaluateApplication";
/**
 * Metadata for all the requests in the request builder.
 */
export const EvaluateApplicationRequestBuilderRequestsMetadata = {
    post: {
        uriTemplate: EvaluateApplicationRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: createEvaluateApplicationPostResponseFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: serializeEvaluateApplicationPostRequestBody,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/* tslint:enable */
/* eslint-enable */
//# sourceMappingURL=index.js.map