n8n-nodes-arubacentral
Version:
n8n community node for Aruba Central API integration with comprehensive monitoring, configuration, and management capabilities
250 lines (249 loc) • 14 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.switchDescriptions = exports.switchOperationSelector = void 0;
const deduplicate_1 = require("../../../helpers/deduplicate");
const listSwitches_descriptions_1 = require("./operations/listSwitches.descriptions");
const getSwitchVlanInfo_descriptions_1 = require("./operations/getSwitchVlanInfo.descriptions");
const getCxSwitchVlanInfo_descriptions_1 = require("./operations/getCxSwitchVlanInfo.descriptions");
const getSwitchStackVlanInfo_descriptions_1 = require("./operations/getSwitchStackVlanInfo.descriptions");
const getCxSwitchStackVlanInfo_descriptions_1 = require("./operations/getCxSwitchStackVlanInfo.descriptions");
const getSwitchPortPoeInfo_descriptions_1 = require("./operations/getSwitchPortPoeInfo.descriptions");
const getCxSwitchPortPoeInfo_descriptions_1 = require("./operations/getCxSwitchPortPoeInfo.descriptions");
const getSwitchPoeInfo_descriptions_1 = require("./operations/getSwitchPoeInfo.descriptions");
const getCxSwitchPoeInfo_descriptions_1 = require("./operations/getCxSwitchPoeInfo.descriptions");
const getCxSwitchVsxInfo_descriptions_1 = require("./operations/getCxSwitchVsxInfo.descriptions");
const getCxSwitchNeighborInfo_descriptions_1 = require("./operations/getCxSwitchNeighborInfo.descriptions");
const getCxSwitchStackNeighborInfo_descriptions_1 = require("./operations/getCxSwitchStackNeighborInfo.descriptions");
const getSwitchBandwidthUsage_descriptions_1 = require("./operations/getSwitchBandwidthUsage.descriptions");
const getTopNSwitches_descriptions_1 = require("./operations/getTopNSwitches.descriptions");
const getSwitchDetails_descriptions_1 = require("./operations/getSwitchDetails.descriptions");
const deleteSwitch_descriptions_1 = require("./operations/deleteSwitch.descriptions");
const getSwitchPortsDetails_descriptions_1 = require("./operations/getSwitchPortsDetails.descriptions");
const getCxSwitchPortsDetails_descriptions_1 = require("./operations/getCxSwitchPortsDetails.descriptions");
const getSwitchChassisDetails_descriptions_1 = require("./operations/getSwitchChassisDetails.descriptions");
const getSwitchPortsBandwidthUsage_descriptions_1 = require("./operations/getSwitchPortsBandwidthUsage.descriptions");
const getCxSwitchPortsBandwidthUsage_descriptions_1 = require("./operations/getCxSwitchPortsBandwidthUsage.descriptions");
const getSwitchPortsErrors_descriptions_1 = require("./operations/getSwitchPortsErrors.descriptions");
const getCxSwitchPortsErrors_descriptions_1 = require("./operations/getCxSwitchPortsErrors.descriptions");
const getSwitchStackPortDetails_descriptions_1 = require("./operations/getSwitchStackPortDetails.descriptions");
const getCxSwitchStackPortDetails_descriptions_1 = require("./operations/getCxSwitchStackPortDetails.descriptions");
const listSwitchStacks_descriptions_1 = require("./operations/listSwitchStacks.descriptions");
const getSwitchStackDetails_descriptions_1 = require("./operations/getSwitchStackDetails.descriptions");
const deleteSwitchStack_descriptions_1 = require("./operations/deleteSwitchStack.descriptions");
/**
* Operation selector for the switch resource
*/
exports.switchOperationSelector = {
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['switch'],
domain: ['monitoring'],
},
},
options: [
{
name: 'List Switches',
value: 'listSwitches',
description: 'Get a list of switches in the network',
action: 'List switches',
},
{
name: 'Get VLAN Info of the Switch',
value: 'getSwitchVlanInfo',
description: 'Get VLAN information for a switch',
action: 'Get VLAN info of the switch',
},
{
name: 'Get VLAN Info for CX Switch',
value: 'getCxSwitchVlanInfo',
description: 'Get VLAN information for a CX switch',
action: 'Get VLAN info for CX switch',
},
{
name: 'Get VLAN Info of the Switch Stack',
value: 'getSwitchStackVlanInfo',
description: 'Get VLAN information for a switch stack',
action: 'Get VLAN info of the switch stack',
},
{
name: 'Get VLAN Info of the CX Switch Stack',
value: 'getCxSwitchStackVlanInfo',
description: 'Get VLAN information for a CX switch stack',
action: 'Get VLAN info of the CX switch stack',
},
{
name: 'Get Switch Port PoE Info',
value: 'getSwitchPortPoeInfo',
description: 'Get PoE information for a switch port',
action: 'Get switch port poe info',
},
{
name: 'Get Switch Port PoE Info for CX Switch',
value: 'getCxSwitchPortPoeInfo',
description: 'Get PoE information for a CX switch port',
action: 'Get switch port poe info for CX switch',
},
{
name: 'Get Switch PoE Info',
value: 'getSwitchPoeInfo',
description: 'Get PoE information for a switch',
action: 'Get switch poe info',
},
{
name: 'Get Switch PoE Info for CX Switch',
value: 'getCxSwitchPoeInfo',
description: 'Get PoE information for a CX switch',
action: 'Get switch poe info for CX switch',
},
{
name: 'Get Switch VSX Info for CX Switch',
value: 'getCxSwitchVsxInfo',
description: 'Get VSX information for a CX switch',
action: 'Get switch vsx info for CX switch',
},
{
name: 'Get LLDP Device Neighbor Info for CX Switch',
value: 'getCxSwitchNeighborInfo',
description: 'Get LLDP neighbor information for a CX switch',
action: 'Get lldp device neighbor info for CX switch',
},
{
name: 'Get LLDP Device Neighbor Info for CX Switch Stack',
value: 'getCxSwitchStackNeighborInfo',
description: 'Get LLDP neighbor information for a CX switch stack',
action: 'Get lldp device neighbor info for CX switch stack',
},
{
name: 'Switch Bandwidth Usage',
value: 'getSwitchBandwidthUsage',
description: 'Get bandwidth usage for switches over a time period',
action: 'Get switch bandwidth usage',
},
{
name: 'Top N Switches',
value: 'getTopNSwitches',
description: 'Get top N switches by bandwidth usage',
action: 'Get top n switches',
},
{
name: 'Switch Details',
value: 'getSwitchDetails',
description: 'Get detailed information for a switch',
action: 'Get switch details',
},
{
name: 'Delete Switch',
value: 'deleteSwitch',
description: 'Delete a switch from the network',
action: 'Delete switch',
},
{
name: 'Switch Ports Details',
value: 'getSwitchPortsDetails',
description: 'Get detailed information for switch ports',
action: 'Get switch ports details',
},
{
name: 'Get Ports Details for CX Switch',
value: 'getCxSwitchPortsDetails',
description: 'Get detailed information for CX switch ports',
action: 'Get ports details for CX switch',
},
{
name: 'Switch Chassis Details',
value: 'getSwitchChassisDetails',
description: 'Get chassis details for a switch',
action: 'Get switch chassis details',
},
{
name: 'Switch Ports Bandwidth Usage',
value: 'getSwitchPortsBandwidthUsage',
description: 'Get bandwidth usage for switch ports over a time period',
action: 'Get switch ports bandwidth usage',
},
{
name: 'Ports Bandwidth Usage for CX Switch',
value: 'getCxSwitchPortsBandwidthUsage',
description: 'Get bandwidth usage for CX switch ports over a time period',
action: 'Get ports bandwidth usage for CX switch',
},
{
name: 'Switch Ports Errors',
value: 'getSwitchPortsErrors',
description: 'Get error information for switch ports',
action: 'Get switch ports errors',
},
{
name: 'CX Switch Ports Errors',
value: 'getCxSwitchPortsErrors',
description: 'Get error information for CX switch ports',
action: 'Get CX switch ports errors',
},
{
name: 'Switch Stack Port Details',
value: 'getSwitchStackPortDetails',
description: 'Get port details for a switch stack',
action: 'Get switch stack port details',
},
{
name: 'CX Switch Stack Port Details',
value: 'getCxSwitchStackPortDetails',
description: 'Get port details for a CX switch stack',
action: 'Get CX switch stack port details',
},
{
name: 'List Switch Stacks',
value: 'listSwitchStacks',
description: 'Get a list of switch stacks in the network',
action: 'List switch stacks',
},
{
name: 'Switch Stack Details',
value: 'getSwitchStackDetails',
description: 'Get detailed information for a switch stack',
action: 'Get switch stack details',
},
{
name: 'Delete Switch Stack',
value: 'deleteSwitchStack',
description: 'Delete a switch stack from the network',
action: 'Delete switch stack',
},
],
default: 'listSwitches',
};
// Combined descriptions for all operations in this resource
exports.switchDescriptions = [exports.switchOperationSelector];
// Add each operation's descriptions
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, listSwitches_descriptions_1.listSwitchesDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, getSwitchVlanInfo_descriptions_1.getSwitchVlanInfoDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, getCxSwitchVlanInfo_descriptions_1.getCxSwitchVlanInfoDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, getSwitchStackVlanInfo_descriptions_1.getSwitchStackVlanInfoDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, getCxSwitchStackVlanInfo_descriptions_1.getCxSwitchStackVlanInfoDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, getSwitchPortPoeInfo_descriptions_1.getSwitchPortPoeInfoDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, getCxSwitchPortPoeInfo_descriptions_1.getCxSwitchPortPoeInfoDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, getSwitchPoeInfo_descriptions_1.getSwitchPoeInfoDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, getCxSwitchPoeInfo_descriptions_1.getCxSwitchPoeInfoDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, getCxSwitchVsxInfo_descriptions_1.getCxSwitchVsxInfoDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, getCxSwitchNeighborInfo_descriptions_1.getCxSwitchNeighborInfoDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, getCxSwitchStackNeighborInfo_descriptions_1.getCxSwitchStackNeighborInfoDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, getSwitchBandwidthUsage_descriptions_1.getSwitchBandwidthUsageDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, getTopNSwitches_descriptions_1.getTopNSwitchesDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, getSwitchDetails_descriptions_1.getSwitchDetailsDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, deleteSwitch_descriptions_1.deleteSwitchDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, getSwitchPortsDetails_descriptions_1.getSwitchPortsDetailsDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, getCxSwitchPortsDetails_descriptions_1.getCxSwitchPortsDetailsDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, getSwitchChassisDetails_descriptions_1.getSwitchChassisDetailsDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, getSwitchPortsBandwidthUsage_descriptions_1.getSwitchPortsBandwidthUsageDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, getCxSwitchPortsBandwidthUsage_descriptions_1.getCxSwitchPortsBandwidthUsageDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, getSwitchPortsErrors_descriptions_1.getSwitchPortsErrorsDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, getCxSwitchPortsErrors_descriptions_1.getCxSwitchPortsErrorsDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, getSwitchStackPortDetails_descriptions_1.getSwitchStackPortDetailsDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, getCxSwitchStackPortDetails_descriptions_1.getCxSwitchStackPortDetailsDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, listSwitchStacks_descriptions_1.listSwitchStacksDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, getSwitchStackDetails_descriptions_1.getSwitchStackDetailsDescription);
(0, deduplicate_1.addDescriptions)(exports.switchDescriptions, deleteSwitchStack_descriptions_1.deleteSwitchStackDescription);