UNPKG

@broadcom/sysview-for-zowe-cli

Version:

Zowe CLI plugin for SYSVIEW

126 lines 6.11 kB
"use strict"; /* * Copyright (c) 2020 Broadcom. All Rights Reserved. The term * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. * * This software and all information contained therein is * confidential and proprietary and shall not be duplicated, * used, disclosed, or disseminated in any way except as * authorized by the applicable license agreement, without the * express written permission of Broadcom. All authorized * reproductions must be marked with this language. * * EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO * THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS * SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT * LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM * BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR * DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE, * INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS * INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS * EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE. * */ const SysviewSession_1 = require("./api/SysviewSession"); const CommandDefinitionOptions_1 = require("./cli/CommandDefinitionOptions"); const config = { name: "sysview", pluginAliases: ["sv"], productDisplayName: "Zowe CLI SYSVIEW Plug-in", pluginSummary: "Integration with SYSVIEW", rootCommandDescription: "Zowe CLI plugin for SYSVIEW", commandModuleGlobs: ["**/cli/*/*.definition!(.d).*s"], profiles: [ { type: "sysview", schema: { type: "object", title: "SYSVIEW REST API connection details", description: "The SYSVIEW session profile schema, where you specify your session information and credentials", properties: { host: { optionDefinition: SysviewSession_1.SysviewSession.HOST_OPTION, type: SysviewSession_1.SysviewSession.HOST_OPTION.type, }, port: { optionDefinition: SysviewSession_1.SysviewSession.PORT_OPTION, type: SysviewSession_1.SysviewSession.PORT_OPTION.type, includeInTemplate: true, }, user: { optionDefinition: SysviewSession_1.SysviewSession.USER_OPTION, type: SysviewSession_1.SysviewSession.USER_OPTION.type, secure: true, }, password: { optionDefinition: SysviewSession_1.SysviewSession.PASSWORD_OPTION, type: SysviewSession_1.SysviewSession.PASSWORD_OPTION.type, secure: true, }, rejectUnauthorized: { optionDefinition: SysviewSession_1.SysviewSession.REJECT_UNAUTHORIZED_OPTION, type: SysviewSession_1.SysviewSession.REJECT_UNAUTHORIZED_OPTION.type, }, ssid: { optionDefinition: SysviewSession_1.SysviewSession.SSID_OPTION, type: SysviewSession_1.SysviewSession.SSID_OPTION.type, includeInTemplate: true, }, basePath: { optionDefinition: SysviewSession_1.SysviewSession.BASE_PATH_OPTION, type: SysviewSession_1.SysviewSession.BASE_PATH_OPTION.type, } }, // to support base profiles, fields are no longer required // required: ["host", "port", "user", "password"] required: [] }, }, { type: "sysview-format", schema: { type: "object", title: "SYSVIEW display format details", description: "The SYSVIEW format profile schema, where you specify display settings", properties: { contextFields: { optionDefinition: CommandDefinitionOptions_1.CommandDefinitionOptions.CONTEXT_FIELDS_OPTION, type: CommandDefinitionOptions_1.CommandDefinitionOptions.CONTEXT_FIELDS_OPTION.type, }, overview: { optionDefinition: CommandDefinitionOptions_1.CommandDefinitionOptions.OVERVIEW_OPTION, type: CommandDefinitionOptions_1.CommandDefinitionOptions.OVERVIEW_OPTION.type, }, info: { optionDefinition: CommandDefinitionOptions_1.CommandDefinitionOptions.INFO_OPTION, type: CommandDefinitionOptions_1.CommandDefinitionOptions.INFO_OPTION.type, }, pretty: { optionDefinition: CommandDefinitionOptions_1.CommandDefinitionOptions.PRETTY_OPTION, type: CommandDefinitionOptions_1.CommandDefinitionOptions.PRETTY_OPTION.type, }, blankIfZero: { optionDefinition: CommandDefinitionOptions_1.CommandDefinitionOptions.BLANK_IF_ZERO_OPTION, type: CommandDefinitionOptions_1.CommandDefinitionOptions.BLANK_IF_ZERO_OPTION.type, }, truncate: { optionDefinition: CommandDefinitionOptions_1.CommandDefinitionOptions.TRUNCATE_OPTION, type: CommandDefinitionOptions_1.CommandDefinitionOptions.TRUNCATE_OPTION.type, } }, }, } ], apimlConnLookup: [ { apiId: "bcm.sysview", // after sdk v2.0.0 gatewayUrl: "api/v1", }, { apiId: "com.broadcom.sysview.rest", // before sdk v2.0.0 gatewayUrl: "api/v1", }, ], }; module.exports = config; //# sourceMappingURL=imperative.js.map