/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
import { apiClientProxifier, registerDefaultDeserializer, registerDefaultSerializer } from '@microsoft/kiota-abstractions';
import { FormParseNodeFactory, FormSerializationWriterFactory } from '@microsoft/kiota-serialization-form';
import { JsonParseNodeFactory, JsonSerializationWriterFactory } from '@microsoft/kiota-serialization-json';
import { MultipartSerializationWriterFactory } from '@microsoft/kiota-serialization-multipart';
import { TextParseNodeFactory, TextSerializationWriterFactory } from '@microsoft/kiota-serialization-text';
/**
 * Instantiates a new GraphServiceClient and sets the default values.
 * @param requestAdapter The request adapter to use to execute the requests.
 */
export function createGraphServiceClient(requestAdapter) {
    registerDefaultSerializer(JsonSerializationWriterFactory);
    registerDefaultSerializer(TextSerializationWriterFactory);
    registerDefaultSerializer(FormSerializationWriterFactory);
    registerDefaultSerializer(MultipartSerializationWriterFactory);
    registerDefaultDeserializer(JsonParseNodeFactory);
    registerDefaultDeserializer(TextParseNodeFactory);
    registerDefaultDeserializer(FormParseNodeFactory);
    if (requestAdapter.baseUrl === undefined || requestAdapter.baseUrl === "") {
        requestAdapter.baseUrl = "https://graph.microsoft.com/v1.0";
    }
    const pathParameters = {
        "baseurl": requestAdapter.baseUrl,
        "user%2Did": "TokenToReplace",
    };
    return apiClientProxifier(requestAdapter, pathParameters, GraphServiceClientNavigationMetadata, GraphServiceClientRequestsMetadata);
}
/**
 * Metadata for all the navigation properties in the request builder.
 */
let GraphServiceClientNavigationMetadata = {};
/**
 * Metadata for all the requests in the request builder.
 */
let GraphServiceClientRequestsMetadata = {};
export function extendGraphServiceClient(clientNavigationMetadata, clientRequestsMetadata) {
    GraphServiceClientNavigationMetadata = Object.assign(Object.assign({}, GraphServiceClientNavigationMetadata), clientNavigationMetadata);
    GraphServiceClientRequestsMetadata = Object.assign(Object.assign({}, GraphServiceClientRequestsMetadata), clientRequestsMetadata);
}
/**
 * Uri template for the request builder.
 */
export const GraphServiceClientUriTemplate = "{+baseurl}";
/* tslint:enable */
/* eslint-enable */
//# sourceMappingURL=graphServiceClient.js.map