@azure/arm-monitor
Version:
A generated SDK for MonitorClient.
43 lines • 1.39 kB
JavaScript
/*
* 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 Operations operations. */
export class OperationsImpl {
/**
* Initialize a new instance of the class Operations class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Lists all of the available operations from Microsoft.Insights provider.
* @param options The options parameters.
*/
list(options) {
return this.client.sendOperationRequest({ options }, listOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec = {
path: "/providers/Microsoft.Insights/operations",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.OperationListResult
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=operations.js.map