@azure/web-pubsub
Version:
Azure client library for Azure Web PubSub
43 lines • 1.5 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.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.HealthApiImpl = void 0;
const tslib_1 = require("tslib");
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
/** Class containing HealthApi operations. */
class HealthApiImpl {
/**
* Initialize a new instance of the class HealthApi class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Get service health status.
* @param options The options parameters.
*/
getServiceStatus(options) {
return this.client.sendOperationRequest({ options }, getServiceStatusOperationSpec);
}
}
exports.HealthApiImpl = HealthApiImpl;
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const getServiceStatusOperationSpec = {
path: "/api/health",
httpMethod: "HEAD",
responses: { 200: {}, default: {} },
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.endpoint],
serializer,
};
//# sourceMappingURL=healthApi.js.map