"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SetPriorityRequestBuilderRequestsMetadata = exports.SetPriorityRequestBuilderUriTemplate = exports.serializeSetPriorityPostRequestBody = exports.deserializeIntoSetPriorityPostRequestBody = exports.createSetPriorityPostRequestBodyFromDiscriminatorValue = void 0;
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
const oDataErrors_1 = require("@microsoft/msgraph-beta-sdk/models/oDataErrors/");
/**
 * 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 {SetPriorityPostRequestBody}
 */
function createSetPriorityPostRequestBodyFromDiscriminatorValue(parseNode) {
    return deserializeIntoSetPriorityPostRequestBody;
}
exports.createSetPriorityPostRequestBodyFromDiscriminatorValue = createSetPriorityPostRequestBodyFromDiscriminatorValue;
/**
 * The deserialization information for the current model
 * @returns {Record<string, (node: ParseNode) => void>}
 */
function deserializeIntoSetPriorityPostRequestBody(setPriorityPostRequestBody = {}) {
    return {
        "backingStoreEnabled": n => { setPriorityPostRequestBody.backingStoreEnabled = true; },
        "priority": n => { setPriorityPostRequestBody.priority = n.getNumberValue(); },
    };
}
exports.deserializeIntoSetPriorityPostRequestBody = deserializeIntoSetPriorityPostRequestBody;
/**
 * Serializes information the current object
 * @param writer Serialization writer to use to serialize this model
 */
function serializeSetPriorityPostRequestBody(writer, setPriorityPostRequestBody = {}) {
    writer.writeNumberValue("priority", setPriorityPostRequestBody.priority);
    writer.writeAdditionalData(setPriorityPostRequestBody.additionalData);
}
exports.serializeSetPriorityPostRequestBody = serializeSetPriorityPostRequestBody;
/**
 * Uri template for the request builder.
 */
exports.SetPriorityRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}/setPriority";
/**
 * Metadata for all the requests in the request builder.
 */
exports.SetPriorityRequestBuilderRequestsMetadata = {
    post: {
        uriTemplate: exports.SetPriorityRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendNoResponseContent",
        requestBodyContentType: "application/json",
        requestBodySerializer: serializeSetPriorityPostRequestBody,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/* tslint:enable */
/* eslint-enable */
