n8n-nodes-arubacentral
Version:
n8n community node for Aruba Central API integration with comprehensive monitoring, configuration, and management capabilities
26 lines (25 loc) • 893 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.vpnOperations = void 0;
exports.hasVpnOperation = hasVpnOperation;
const logger_1 = require("../../../helpers/logger");
const getInfo_methods_1 = require("./operations/getInfo.methods");
const postUsage_methods_1 = require("./operations/postUsage.methods");
/**
* All operations available for the vpn resource
*/
exports.vpnOperations = {
getInfo: getInfo_methods_1.getInfo,
postUsage: postUsage_methods_1.postUsage,
};
/**
* Check if a vpn operation exists
*
* @param operation Operation name to check
* @returns boolean indicating if the operation exists
*/
function hasVpnOperation(operation) {
const exists = !!exports.vpnOperations[operation];
logger_1.logger.debug('monitoring:vpn:check', `Operation "${operation}" ${exists ? 'exists' : 'does not exist'}`);
return exists;
}