@broadcom/sysview-for-zowe-cli
Version:
Zowe CLI plugin for SYSVIEW
28 lines (27 loc) • 1.42 kB
TypeScript
import { ICommandArguments, ICommandOptionDefinition, IProfile, Session } from "@zowe/imperative";
export declare class SysviewSession extends Session {
static HOST_OPTION: ICommandOptionDefinition;
static PORT_OPTION: ICommandOptionDefinition;
static USER_OPTION: ICommandOptionDefinition;
static PASSWORD_OPTION: ICommandOptionDefinition;
static REJECT_UNAUTHORIZED_OPTION: ICommandOptionDefinition;
static SSID_OPTION: ICommandOptionDefinition;
static BASE_PATH_OPTION: ICommandOptionDefinition;
static SYSVIEW_CONNECTION_OPTIONS: ICommandOptionDefinition[];
/**
* Given a SYSVIEW profile, create a SYSVIEW REST Session.
* @static
* @param {IProfile} profile - The SYSVIEW profile contents
* @returns {Session} - A session for usage in the SYSVIEW REST Client
*/
static createSysviewSession(profile: IProfile): Session;
/**
* Given command line arguments, create a SYSVIEW REST Session.
* @static
* @param {ICommandArguments} args - The arguments specified by the user
* @param {boolean} [doPrompting=true] - Indicates that we want imperative to prompt for user name and password
* when no form of credentials are supplied.
* @returns {Session} - A session for usage in the SYSVIEW REST Client
*/
static createSysviewSessionFromArguments(args: ICommandArguments, doPrompting?: boolean): Promise<Session>;
}