"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MicrosoftGraphSecurityExtractContentLabelRequestBuilderUriTemplate = exports.MicrosoftGraphSecurityExtractContentLabelRequestBuilderRequestsMetadata = exports.serializeExtractContentLabelPostRequestBody = exports.deserializeIntoExtractContentLabelPostRequestBody = exports.createExtractContentLabelPostRequestBodyFromDiscriminatorValue = void 0;
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
const oDataErrors_1 = require("@microsoft/msgraph-beta-sdk/models/oDataErrors/");
const security_1 = require("@microsoft/msgraph-beta-sdk/models/security/");
/**
 * 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 a extractContentLabelPostRequestBody
 */
function createExtractContentLabelPostRequestBodyFromDiscriminatorValue(parseNode) {
    return deserializeIntoExtractContentLabelPostRequestBody;
}
exports.createExtractContentLabelPostRequestBodyFromDiscriminatorValue = createExtractContentLabelPostRequestBodyFromDiscriminatorValue;
/**
 * The deserialization information for the current model
 * @returns a Record<string, (node: ParseNode) => void>
 */
function deserializeIntoExtractContentLabelPostRequestBody(extractContentLabelPostRequestBody = {}) {
    return {
        "backingStoreEnabled": n => { extractContentLabelPostRequestBody.backingStoreEnabled = true; },
        "contentInfo": n => { extractContentLabelPostRequestBody.contentInfo = n.getObjectValue(security_1.createContentInfoFromDiscriminatorValue); },
    };
}
exports.deserializeIntoExtractContentLabelPostRequestBody = deserializeIntoExtractContentLabelPostRequestBody;
/**
 * Serializes information the current object
 * @param writer Serialization writer to use to serialize this model
 */
function serializeExtractContentLabelPostRequestBody(writer, extractContentLabelPostRequestBody = {}) {
    writer.writeObjectValue("contentInfo", extractContentLabelPostRequestBody.contentInfo, security_1.serializeContentInfo);
    writer.writeAdditionalData(extractContentLabelPostRequestBody.additionalData);
}
exports.serializeExtractContentLabelPostRequestBody = serializeExtractContentLabelPostRequestBody;
/**
 * Metadata for all the requests in the request builder.
 */
exports.MicrosoftGraphSecurityExtractContentLabelRequestBuilderRequestsMetadata = {
    post: {
        responseBodyContentType: "application/json",
        errorMappings: {
            _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
            _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendAsync",
        responseBodyFactory: security_1.createContentLabelFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: serializeExtractContentLabelPostRequestBody,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/**
 * Uri template for the request builder.
 */
exports.MicrosoftGraphSecurityExtractContentLabelRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/security/informationProtection/sensitivityLabels/microsoft.graph.security.extractContentLabel";
/* tslint:enable */
/* eslint-enable */
