"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CloudPCItemRequestBuilderUriTemplate = exports.CloudPCItemRequestBuilderRequestsMetadata = exports.CloudPCItemRequestBuilderNavigationMetadata = 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 changeUserAccountType_1 = require("./changeUserAccountType/");
const createSnapshot_1 = require("./createSnapshot/");
const endGracePeriod_1 = require("./endGracePeriod/");
const getCloudPcConnectivityHistory_1 = require("./getCloudPcConnectivityHistory/");
const getCloudPcLaunchInfo_1 = require("./getCloudPcLaunchInfo/");
const getSupportedCloudPcRemoteActions_1 = require("./getSupportedCloudPcRemoteActions/");
const powerOff_1 = require("./powerOff/");
const powerOn_1 = require("./powerOn/");
const reboot_1 = require("./reboot/");
const rename_1 = require("./rename/");
const reprovision_1 = require("./reprovision/");
const resize_1 = require("./resize/");
const restore_1 = require("./restore/");
const retryPartnerAgentInstallation_1 = require("./retryPartnerAgentInstallation/");
const start_1 = require("./start/");
const stop_1 = require("./stop/");
const troubleshoot_1 = require("./troubleshoot/");
/**
 * Mapper for query parameters from symbol name to serialization name represented as a constant.
 */
const CloudPCItemRequestBuilderGetQueryParametersMapper = {
    "expand": "%24expand",
    "select": "%24select",
};
/**
 * Metadata for all the navigation properties in the request builder.
 */
exports.CloudPCItemRequestBuilderNavigationMetadata = {
    changeUserAccountType: {
        uriTemplate: changeUserAccountType_1.ChangeUserAccountTypeRequestBuilderUriTemplate,
        requestsMetadata: changeUserAccountType_1.ChangeUserAccountTypeRequestBuilderRequestsMetadata,
    },
    createSnapshot: {
        uriTemplate: createSnapshot_1.CreateSnapshotRequestBuilderUriTemplate,
        requestsMetadata: createSnapshot_1.CreateSnapshotRequestBuilderRequestsMetadata,
    },
    endGracePeriod: {
        uriTemplate: endGracePeriod_1.EndGracePeriodRequestBuilderUriTemplate,
        requestsMetadata: endGracePeriod_1.EndGracePeriodRequestBuilderRequestsMetadata,
    },
    getCloudPcConnectivityHistory: {
        uriTemplate: getCloudPcConnectivityHistory_1.GetCloudPcConnectivityHistoryRequestBuilderUriTemplate,
        requestsMetadata: getCloudPcConnectivityHistory_1.GetCloudPcConnectivityHistoryRequestBuilderRequestsMetadata,
    },
    getCloudPcLaunchInfo: {
        uriTemplate: getCloudPcLaunchInfo_1.GetCloudPcLaunchInfoRequestBuilderUriTemplate,
        requestsMetadata: getCloudPcLaunchInfo_1.GetCloudPcLaunchInfoRequestBuilderRequestsMetadata,
    },
    getSupportedCloudPcRemoteActions: {
        uriTemplate: getSupportedCloudPcRemoteActions_1.GetSupportedCloudPcRemoteActionsRequestBuilderUriTemplate,
        requestsMetadata: getSupportedCloudPcRemoteActions_1.GetSupportedCloudPcRemoteActionsRequestBuilderRequestsMetadata,
    },
    powerOff: {
        uriTemplate: powerOff_1.PowerOffRequestBuilderUriTemplate,
        requestsMetadata: powerOff_1.PowerOffRequestBuilderRequestsMetadata,
    },
    powerOn: {
        uriTemplate: powerOn_1.PowerOnRequestBuilderUriTemplate,
        requestsMetadata: powerOn_1.PowerOnRequestBuilderRequestsMetadata,
    },
    reboot: {
        uriTemplate: reboot_1.RebootRequestBuilderUriTemplate,
        requestsMetadata: reboot_1.RebootRequestBuilderRequestsMetadata,
    },
    rename: {
        uriTemplate: rename_1.RenameRequestBuilderUriTemplate,
        requestsMetadata: rename_1.RenameRequestBuilderRequestsMetadata,
    },
    reprovision: {
        uriTemplate: reprovision_1.ReprovisionRequestBuilderUriTemplate,
        requestsMetadata: reprovision_1.ReprovisionRequestBuilderRequestsMetadata,
    },
    resize: {
        uriTemplate: resize_1.ResizeRequestBuilderUriTemplate,
        requestsMetadata: resize_1.ResizeRequestBuilderRequestsMetadata,
    },
    restore: {
        uriTemplate: restore_1.RestoreRequestBuilderUriTemplate,
        requestsMetadata: restore_1.RestoreRequestBuilderRequestsMetadata,
    },
    retryPartnerAgentInstallation: {
        uriTemplate: retryPartnerAgentInstallation_1.RetryPartnerAgentInstallationRequestBuilderUriTemplate,
        requestsMetadata: retryPartnerAgentInstallation_1.RetryPartnerAgentInstallationRequestBuilderRequestsMetadata,
    },
    start: {
        uriTemplate: start_1.StartRequestBuilderUriTemplate,
        requestsMetadata: start_1.StartRequestBuilderRequestsMetadata,
    },
    stop: {
        uriTemplate: stop_1.StopRequestBuilderUriTemplate,
        requestsMetadata: stop_1.StopRequestBuilderRequestsMetadata,
    },
    troubleshoot: {
        uriTemplate: troubleshoot_1.TroubleshootRequestBuilderUriTemplate,
        requestsMetadata: troubleshoot_1.TroubleshootRequestBuilderRequestsMetadata,
    },
};
/**
 * Metadata for all the requests in the request builder.
 */
exports.CloudPCItemRequestBuilderRequestsMetadata = {
    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.createCloudPCFromDiscriminatorValue,
        queryParametersMapper: CloudPCItemRequestBuilderGetQueryParametersMapper,
    },
    patch: {
        responseBodyContentType: "application/json",
        errorMappings: {
            _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
            _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendAsync",
        responseBodyFactory: models_1.createCloudPCFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: models_1.serializeCloudPC,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/**
 * Uri template for the request builder.
 */
exports.CloudPCItemRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/cloudPCs/{cloudPC%2Did}{?%24select,%24expand}";
/* tslint:enable */
/* eslint-enable */
