"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DeviceItemRequestBuilderUriTemplate = exports.DeviceItemRequestBuilderRequestsMetadata = exports.DeviceItemRequestBuilderNavigationMetadata = void 0;
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
const models_1 = require("@microsoft/msgraph-beta-sdk/models/");
const oDataErrors_1 = require("@microsoft/msgraph-beta-sdk/models/oDataErrors/");
const commands_1 = require("./commands/");
const extensions_1 = require("./extensions/");
const memberOf_1 = require("./memberOf/");
const registeredOwners_1 = require("./registeredOwners/");
const registeredUsers_1 = require("./registeredUsers/");
const transitiveMemberOf_1 = require("./transitiveMemberOf/");
const usageRights_1 = require("./usageRights/");
/**
 * Mapper for query parameters from symbol name to serialization name represented as a constant.
 */
const DeviceItemRequestBuilderGetQueryParametersMapper = {
    "expand": "%24expand",
    "select": "%24select",
};
/**
 * Metadata for all the navigation properties in the request builder.
 */
exports.DeviceItemRequestBuilderNavigationMetadata = {
    commands: {
        uriTemplate: commands_1.CommandsRequestBuilderUriTemplate,
        requestsMetadata: commands_1.CommandsRequestBuilderRequestsMetadata,
        navigationMetadata: commands_1.CommandsRequestBuilderNavigationMetadata,
    },
    extensions: {
        uriTemplate: extensions_1.ExtensionsRequestBuilderUriTemplate,
        requestsMetadata: extensions_1.ExtensionsRequestBuilderRequestsMetadata,
        navigationMetadata: extensions_1.ExtensionsRequestBuilderNavigationMetadata,
    },
    memberOf: {
        uriTemplate: memberOf_1.MemberOfRequestBuilderUriTemplate,
        requestsMetadata: memberOf_1.MemberOfRequestBuilderRequestsMetadata,
        navigationMetadata: memberOf_1.MemberOfRequestBuilderNavigationMetadata,
    },
    registeredOwners: {
        uriTemplate: registeredOwners_1.RegisteredOwnersRequestBuilderUriTemplate,
        requestsMetadata: registeredOwners_1.RegisteredOwnersRequestBuilderRequestsMetadata,
        navigationMetadata: registeredOwners_1.RegisteredOwnersRequestBuilderNavigationMetadata,
    },
    registeredUsers: {
        uriTemplate: registeredUsers_1.RegisteredUsersRequestBuilderUriTemplate,
        requestsMetadata: registeredUsers_1.RegisteredUsersRequestBuilderRequestsMetadata,
        navigationMetadata: registeredUsers_1.RegisteredUsersRequestBuilderNavigationMetadata,
    },
    transitiveMemberOf: {
        uriTemplate: transitiveMemberOf_1.TransitiveMemberOfRequestBuilderUriTemplate,
        requestsMetadata: transitiveMemberOf_1.TransitiveMemberOfRequestBuilderRequestsMetadata,
        navigationMetadata: transitiveMemberOf_1.TransitiveMemberOfRequestBuilderNavigationMetadata,
    },
    usageRights: {
        uriTemplate: usageRights_1.UsageRightsRequestBuilderUriTemplate,
        requestsMetadata: usageRights_1.UsageRightsRequestBuilderRequestsMetadata,
        navigationMetadata: usageRights_1.UsageRightsRequestBuilderNavigationMetadata,
    },
};
/**
 * Metadata for all the requests in the request builder.
 */
exports.DeviceItemRequestBuilderRequestsMetadata = {
    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: models_1.createDeviceFromDiscriminatorValue,
        queryParametersMapper: DeviceItemRequestBuilderGetQueryParametersMapper,
    },
    patch: {
        responseBodyContentType: "application/json",
        errorMappings: {
            _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
            _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendAsync",
        responseBodyFactory: models_1.createDeviceFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: models_1.serializeDevice,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/**
 * Uri template for the request builder.
 */
exports.DeviceItemRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/devices/{device%2Did}{?%24select,%24expand}";
/* tslint:enable */
/* eslint-enable */
