"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CleanWindowsDeviceRequestBuilderRequestsMetadata = exports.CleanWindowsDeviceRequestBuilderUriTemplate = exports.serializeCleanWindowsDevicePostRequestBody = exports.deserializeIntoCleanWindowsDevicePostRequestBody = exports.createCleanWindowsDevicePostRequestBodyFromDiscriminatorValue = 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 {CleanWindowsDevicePostRequestBody}
 */
function createCleanWindowsDevicePostRequestBodyFromDiscriminatorValue(parseNode) {
    return deserializeIntoCleanWindowsDevicePostRequestBody;
}
exports.createCleanWindowsDevicePostRequestBodyFromDiscriminatorValue = createCleanWindowsDevicePostRequestBodyFromDiscriminatorValue;
/**
 * The deserialization information for the current model
 * @returns {Record<string, (node: ParseNode) => void>}
 */
function deserializeIntoCleanWindowsDevicePostRequestBody(cleanWindowsDevicePostRequestBody = {}) {
    return {
        "backingStoreEnabled": n => { cleanWindowsDevicePostRequestBody.backingStoreEnabled = true; },
        "keepUserData": n => { cleanWindowsDevicePostRequestBody.keepUserData = n.getBooleanValue(); },
    };
}
exports.deserializeIntoCleanWindowsDevicePostRequestBody = deserializeIntoCleanWindowsDevicePostRequestBody;
/**
 * Serializes information the current object
 * @param writer Serialization writer to use to serialize this model
 */
function serializeCleanWindowsDevicePostRequestBody(writer, cleanWindowsDevicePostRequestBody = {}) {
    writer.writeBooleanValue("keepUserData", cleanWindowsDevicePostRequestBody.keepUserData);
    writer.writeAdditionalData(cleanWindowsDevicePostRequestBody.additionalData);
}
exports.serializeCleanWindowsDevicePostRequestBody = serializeCleanWindowsDevicePostRequestBody;
/**
 * Uri template for the request builder.
 */
exports.CleanWindowsDeviceRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/managedDevices/{managedDevice%2Did}/cleanWindowsDevice";
/**
 * Metadata for all the requests in the request builder.
 */
exports.CleanWindowsDeviceRequestBuilderRequestsMetadata = {
    post: {
        uriTemplate: exports.CleanWindowsDeviceRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendNoResponseContent",
        requestBodyContentType: "application/json",
        requestBodySerializer: serializeCleanWindowsDevicePostRequestBody,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/* tslint:enable */
/* eslint-enable */
