UNPKG

@azure/arm-monitor

Version:
48 lines 1.79 kB
/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; /** Class containing VMInsights operations. */ export class VMInsightsImpl { /** * Initialize a new instance of the class VMInsights class. * @param client Reference to the service client */ constructor(client) { this.client = client; } /** * Retrieves the VM Insights onboarding status for the specified resource or resource scope. * @param resourceUri The fully qualified Azure Resource manager identifier of the resource, or scope, * whose status to retrieve. * @param options The options parameters. */ getOnboardingStatus(resourceUri, options) { return this.client.sendOperationRequest({ resourceUri, options }, getOnboardingStatusOperationSpec); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOnboardingStatusOperationSpec = { path: "/{resourceUri}/providers/Microsoft.Insights/vmInsightsOnboardingStatuses/default", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.VMInsightsOnboardingStatus }, default: { bodyMapper: Mappers.ResponseWithError } }, queryParameters: [Parameters.apiVersion9], urlParameters: [Parameters.$host, Parameters.resourceUri], headerParameters: [Parameters.accept], serializer }; //# sourceMappingURL=vMInsights.js.map