"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GraphBetaServiceClientUriTemplate = exports.extendGraphBetaServiceClient = exports.createGraphBetaServiceClient = void 0;
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
const kiota_abstractions_1 = require("@microsoft/kiota-abstractions");
const kiota_serialization_form_1 = require("@microsoft/kiota-serialization-form");
const kiota_serialization_json_1 = require("@microsoft/kiota-serialization-json");
const kiota_serialization_multipart_1 = require("@microsoft/kiota-serialization-multipart");
const kiota_serialization_text_1 = require("@microsoft/kiota-serialization-text");
/**
 * Instantiates a new GraphBetaServiceClient and sets the default values.
 * @param requestAdapter The request adapter to use to execute the requests.
 */
function createGraphBetaServiceClient(requestAdapter) {
    (0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_json_1.JsonSerializationWriterFactory);
    (0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_text_1.TextSerializationWriterFactory);
    (0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_form_1.FormSerializationWriterFactory);
    (0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_multipart_1.MultipartSerializationWriterFactory);
    (0, kiota_abstractions_1.registerDefaultDeserializer)(kiota_serialization_json_1.JsonParseNodeFactory);
    (0, kiota_abstractions_1.registerDefaultDeserializer)(kiota_serialization_text_1.TextParseNodeFactory);
    (0, kiota_abstractions_1.registerDefaultDeserializer)(kiota_serialization_form_1.FormParseNodeFactory);
    if (requestAdapter.baseUrl === undefined || requestAdapter.baseUrl === "") {
        requestAdapter.baseUrl = "https://graph.microsoft.com/v1.0";
    }
    const pathParameters = {
        "baseurl": requestAdapter.baseUrl,
        "user%2Did": "TokenToReplace",
    };
    return (0, kiota_abstractions_1.apiClientProxifier)(requestAdapter, pathParameters, exports.GraphBetaServiceClientUriTemplate, GraphBetaServiceClientNavigationMetadata, GraphBetaServiceClientRequestsMetadata);
}
exports.createGraphBetaServiceClient = createGraphBetaServiceClient;
/**
 * Metadata for all the navigation properties in the request builder.
 */
let GraphBetaServiceClientNavigationMetadata = {};
/**
 * Metadata for all the requests in the request builder.
 */
let GraphBetaServiceClientRequestsMetadata = {};
function extendGraphBetaServiceClient(clientNavigationMetadata, clientRequestsMetadata) {
    GraphBetaServiceClientNavigationMetadata = Object.assign(Object.assign({}, GraphBetaServiceClientNavigationMetadata), clientNavigationMetadata);
    GraphBetaServiceClientRequestsMetadata = Object.assign(Object.assign({}, GraphBetaServiceClientRequestsMetadata), clientRequestsMetadata);
}
exports.extendGraphBetaServiceClient = extendGraphBetaServiceClient;
/**
 * Uri template for the request builder.
 */
exports.GraphBetaServiceClientUriTemplate = "{+baseurl}";
/* tslint:enable */
/* eslint-enable */
