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