"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ValidatePropertiesRequestBuilderUriTemplate = exports.ValidatePropertiesRequestBuilderRequestsMetadata = exports.serializeValidatePropertiesPostRequestBody = exports.deserializeIntoValidatePropertiesPostRequestBody = exports.createValidatePropertiesPostRequestBodyFromDiscriminatorValue = 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 a validatePropertiesPostRequestBody
 */
function createValidatePropertiesPostRequestBodyFromDiscriminatorValue(parseNode) {
    return deserializeIntoValidatePropertiesPostRequestBody;
}
exports.createValidatePropertiesPostRequestBodyFromDiscriminatorValue = createValidatePropertiesPostRequestBodyFromDiscriminatorValue;
/**
 * The deserialization information for the current model
 * @returns a Record<string, (node: ParseNode) => void>
 */
function deserializeIntoValidatePropertiesPostRequestBody(validatePropertiesPostRequestBody = {}) {
    return {
        "backingStoreEnabled": n => { validatePropertiesPostRequestBody.backingStoreEnabled = true; },
        "displayName": n => { validatePropertiesPostRequestBody.displayName = n.getStringValue(); },
        "entityType": n => { validatePropertiesPostRequestBody.entityType = n.getStringValue(); },
        "mailNickname": n => { validatePropertiesPostRequestBody.mailNickname = n.getStringValue(); },
        "onBehalfOfUserId": n => { validatePropertiesPostRequestBody.onBehalfOfUserId = n.getGuidValue(); },
    };
}
exports.deserializeIntoValidatePropertiesPostRequestBody = deserializeIntoValidatePropertiesPostRequestBody;
/**
 * Serializes information the current object
 * @param writer Serialization writer to use to serialize this model
 */
function serializeValidatePropertiesPostRequestBody(writer, validatePropertiesPostRequestBody = {}) {
    writer.writeStringValue("displayName", validatePropertiesPostRequestBody.displayName);
    writer.writeStringValue("entityType", validatePropertiesPostRequestBody.entityType);
    writer.writeStringValue("mailNickname", validatePropertiesPostRequestBody.mailNickname);
    writer.writeGuidValue("onBehalfOfUserId", validatePropertiesPostRequestBody.onBehalfOfUserId);
    writer.writeAdditionalData(validatePropertiesPostRequestBody.additionalData);
}
exports.serializeValidatePropertiesPostRequestBody = serializeValidatePropertiesPostRequestBody;
/**
 * Metadata for all the requests in the request builder.
 */
exports.ValidatePropertiesRequestBuilderRequestsMetadata = {
    post: {
        responseBodyContentType: "application/json",
        errorMappings: {
            _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
            _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendNoResponseContentAsync",
        requestBodyContentType: "application/json",
        requestBodySerializer: serializeValidatePropertiesPostRequestBody,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/**
 * Uri template for the request builder.
 */
exports.ValidatePropertiesRequestBuilderUriTemplate = "{+baseurl}/users/validateProperties";
/* tslint:enable */
/* eslint-enable */
