n8n-nodes-arubacentral
Version:
n8n community node for Aruba Central API integration with comprehensive monitoring, configuration, and management capabilities
77 lines (76 loc) • 5.6 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.switchOperations = void 0;
exports.hasSwitchOperation = hasSwitchOperation;
const logger_1 = require("../../../helpers/logger");
const listSwitches_methods_1 = require("./operations/listSwitches.methods");
const getSwitchVlanInfo_methods_1 = require("./operations/getSwitchVlanInfo.methods");
const getCxSwitchVlanInfo_methods_1 = require("./operations/getCxSwitchVlanInfo.methods");
const getSwitchStackVlanInfo_methods_1 = require("./operations/getSwitchStackVlanInfo.methods");
const getCxSwitchStackVlanInfo_methods_1 = require("./operations/getCxSwitchStackVlanInfo.methods");
const getSwitchPortPoeInfo_methods_1 = require("./operations/getSwitchPortPoeInfo.methods");
const getCxSwitchPortPoeInfo_methods_1 = require("./operations/getCxSwitchPortPoeInfo.methods");
const getSwitchPoeInfo_methods_1 = require("./operations/getSwitchPoeInfo.methods");
const getCxSwitchPoeInfo_methods_1 = require("./operations/getCxSwitchPoeInfo.methods");
const getCxSwitchVsxInfo_methods_1 = require("./operations/getCxSwitchVsxInfo.methods");
const getCxSwitchNeighborInfo_methods_1 = require("./operations/getCxSwitchNeighborInfo.methods");
const getCxSwitchStackNeighborInfo_methods_1 = require("./operations/getCxSwitchStackNeighborInfo.methods");
const getSwitchBandwidthUsage_methods_1 = require("./operations/getSwitchBandwidthUsage.methods");
const getTopNSwitches_methods_1 = require("./operations/getTopNSwitches.methods");
const getSwitchDetails_methods_1 = require("./operations/getSwitchDetails.methods");
const deleteSwitch_methods_1 = require("./operations/deleteSwitch.methods");
const getSwitchPortsDetails_methods_1 = require("./operations/getSwitchPortsDetails.methods");
const getCxSwitchPortsDetails_methods_1 = require("./operations/getCxSwitchPortsDetails.methods");
const getSwitchChassisDetails_methods_1 = require("./operations/getSwitchChassisDetails.methods");
const getSwitchPortsBandwidthUsage_methods_1 = require("./operations/getSwitchPortsBandwidthUsage.methods");
const getCxSwitchPortsBandwidthUsage_methods_1 = require("./operations/getCxSwitchPortsBandwidthUsage.methods");
const getSwitchPortsErrors_methods_1 = require("./operations/getSwitchPortsErrors.methods");
const getCxSwitchPortsErrors_methods_1 = require("./operations/getCxSwitchPortsErrors.methods");
const getSwitchStackPortDetails_methods_1 = require("./operations/getSwitchStackPortDetails.methods");
const getCxSwitchStackPortDetails_methods_1 = require("./operations/getCxSwitchStackPortDetails.methods");
const listSwitchStacks_methods_1 = require("./operations/listSwitchStacks.methods");
const getSwitchStackDetails_methods_1 = require("./operations/getSwitchStackDetails.methods");
const deleteSwitchStack_methods_1 = require("./operations/deleteSwitchStack.methods");
/**
* All operations available for the switch resource
*/
exports.switchOperations = {
listSwitches: listSwitches_methods_1.listSwitches,
getSwitchVlanInfo: getSwitchVlanInfo_methods_1.getSwitchVlanInfo,
getCxSwitchVlanInfo: getCxSwitchVlanInfo_methods_1.getCxSwitchVlanInfo,
getSwitchStackVlanInfo: getSwitchStackVlanInfo_methods_1.getSwitchStackVlanInfo,
getCxSwitchStackVlanInfo: getCxSwitchStackVlanInfo_methods_1.getCxSwitchStackVlanInfo,
getSwitchPortPoeInfo: getSwitchPortPoeInfo_methods_1.getSwitchPortPoeInfo,
getCxSwitchPortPoeInfo: getCxSwitchPortPoeInfo_methods_1.getCxSwitchPortPoeInfo,
getSwitchPoeInfo: getSwitchPoeInfo_methods_1.getSwitchPoeInfo,
getCxSwitchPoeInfo: getCxSwitchPoeInfo_methods_1.getCxSwitchPoeInfo,
getCxSwitchVsxInfo: getCxSwitchVsxInfo_methods_1.getCxSwitchVsxInfo,
getCxSwitchNeighborInfo: getCxSwitchNeighborInfo_methods_1.getCxSwitchNeighborInfo,
getCxSwitchStackNeighborInfo: getCxSwitchStackNeighborInfo_methods_1.getCxSwitchStackNeighborInfo,
getSwitchBandwidthUsage: getSwitchBandwidthUsage_methods_1.getSwitchBandwidthUsage,
getTopNSwitches: getTopNSwitches_methods_1.getTopNSwitches,
getSwitchDetails: getSwitchDetails_methods_1.getSwitchDetails,
deleteSwitch: deleteSwitch_methods_1.deleteSwitch,
getSwitchPortsDetails: getSwitchPortsDetails_methods_1.getSwitchPortsDetails,
getCxSwitchPortsDetails: getCxSwitchPortsDetails_methods_1.getCxSwitchPortsDetails,
getSwitchChassisDetails: getSwitchChassisDetails_methods_1.getSwitchChassisDetails,
getSwitchPortsBandwidthUsage: getSwitchPortsBandwidthUsage_methods_1.getSwitchPortsBandwidthUsage,
getCxSwitchPortsBandwidthUsage: getCxSwitchPortsBandwidthUsage_methods_1.getCxSwitchPortsBandwidthUsage,
getSwitchPortsErrors: getSwitchPortsErrors_methods_1.getSwitchPortsErrors,
getCxSwitchPortsErrors: getCxSwitchPortsErrors_methods_1.getCxSwitchPortsErrors,
getSwitchStackPortDetails: getSwitchStackPortDetails_methods_1.getSwitchStackPortDetails,
getCxSwitchStackPortDetails: getCxSwitchStackPortDetails_methods_1.getCxSwitchStackPortDetails,
listSwitchStacks: listSwitchStacks_methods_1.listSwitchStacks,
getSwitchStackDetails: getSwitchStackDetails_methods_1.getSwitchStackDetails,
deleteSwitchStack: deleteSwitchStack_methods_1.deleteSwitchStack,
};
/**
* Check if a switch operation exists
* @param operation Operation name to check
* @returns boolean indicating if the operation exists
*/
function hasSwitchOperation(operation) {
const exists = !!exports.switchOperations[operation];
logger_1.logger.debug('monitoring:switch:check', `Operation "${operation}" ${exists ? 'exists' : 'does not exist'}`);
return exists;
}