"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InformationProtectionRequestBuilderUriTemplate = exports.InformationProtectionRequestBuilderRequestsMetadata = exports.InformationProtectionRequestBuilderNavigationMetadata = 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/");
const labelPolicySettings_1 = require("./labelPolicySettings/");
const sensitivityLabels_1 = require("./sensitivityLabels/");
/**
 * Mapper for query parameters from symbol name to serialization name represented as a constant.
 */
const InformationProtectionRequestBuilderGetQueryParametersMapper = {
    "expand": "%24expand",
    "select": "%24select",
};
/**
 * Metadata for all the navigation properties in the request builder.
 */
exports.InformationProtectionRequestBuilderNavigationMetadata = {
    labelPolicySettings: {
        uriTemplate: labelPolicySettings_1.LabelPolicySettingsRequestBuilderUriTemplate,
        requestsMetadata: labelPolicySettings_1.LabelPolicySettingsRequestBuilderRequestsMetadata,
    },
    sensitivityLabels: {
        uriTemplate: sensitivityLabels_1.SensitivityLabelsRequestBuilderUriTemplate,
        requestsMetadata: sensitivityLabels_1.SensitivityLabelsRequestBuilderRequestsMetadata,
        navigationMetadata: sensitivityLabels_1.SensitivityLabelsRequestBuilderNavigationMetadata,
    },
};
/**
 * Metadata for all the requests in the request builder.
 */
exports.InformationProtectionRequestBuilderRequestsMetadata = {
    delete: {
        responseBodyContentType: "application/json",
        errorMappings: {
            _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
            _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendNoResponseContentAsync",
    },
    get: {
        responseBodyContentType: "application/json",
        errorMappings: {
            _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
            _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendAsync",
        responseBodyFactory: security_1.createInformationProtectionFromDiscriminatorValue,
        queryParametersMapper: InformationProtectionRequestBuilderGetQueryParametersMapper,
    },
    patch: {
        responseBodyContentType: "application/json",
        errorMappings: {
            _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
            _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendAsync",
        responseBodyFactory: security_1.createInformationProtectionFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: security_1.serializeInformationProtection,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/**
 * Uri template for the request builder.
 */
exports.InformationProtectionRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/security/informationProtection{?%24select,%24expand}";
/* tslint:enable */
/* eslint-enable */
