"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DeviceItemRequestBuilderRequestsMetadata = exports.DeviceItemRequestBuilderNavigationMetadata = exports.DeviceItemRequestBuilderUriTemplate = 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/");
/**
 * Uri template for the request builder.
 */
exports.DeviceItemRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/devices/{device%2Did}{?%24expand,%24select}";
/**
 * 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: {
        requestsMetadata: commands_1.CommandsRequestBuilderRequestsMetadata,
        navigationMetadata: commands_1.CommandsRequestBuilderNavigationMetadata,
    },
    extensions: {
        requestsMetadata: extensions_1.ExtensionsRequestBuilderRequestsMetadata,
        navigationMetadata: extensions_1.ExtensionsRequestBuilderNavigationMetadata,
    },
    memberOf: {
        requestsMetadata: memberOf_1.MemberOfRequestBuilderRequestsMetadata,
        navigationMetadata: memberOf_1.MemberOfRequestBuilderNavigationMetadata,
    },
    registeredOwners: {
        requestsMetadata: registeredOwners_1.RegisteredOwnersRequestBuilderRequestsMetadata,
        navigationMetadata: registeredOwners_1.RegisteredOwnersRequestBuilderNavigationMetadata,
    },
    registeredUsers: {
        requestsMetadata: registeredUsers_1.RegisteredUsersRequestBuilderRequestsMetadata,
        navigationMetadata: registeredUsers_1.RegisteredUsersRequestBuilderNavigationMetadata,
    },
    transitiveMemberOf: {
        requestsMetadata: transitiveMemberOf_1.TransitiveMemberOfRequestBuilderRequestsMetadata,
        navigationMetadata: transitiveMemberOf_1.TransitiveMemberOfRequestBuilderNavigationMetadata,
    },
    usageRights: {
        requestsMetadata: usageRights_1.UsageRightsRequestBuilderRequestsMetadata,
        navigationMetadata: usageRights_1.UsageRightsRequestBuilderNavigationMetadata,
    },
};
/**
 * Metadata for all the requests in the request builder.
 */
exports.DeviceItemRequestBuilderRequestsMetadata = {
    delete: {
        uriTemplate: exports.DeviceItemRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendNoResponseContent",
    },
    get: {
        uriTemplate: exports.DeviceItemRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: models_1.createDeviceFromDiscriminatorValue,
        queryParametersMapper: DeviceItemRequestBuilderGetQueryParametersMapper,
    },
    patch: {
        uriTemplate: exports.DeviceItemRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: models_1.createDeviceFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: models_1.serializeDevice,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/* tslint:enable */
/* eslint-enable */
