@zowe/core-for-zowe-sdk
Version:
Core libraries shared by Zowe SDK packages
30 lines • 1.19 kB
TypeScript
import { IImperativeError, Logger, RestClient } from "@zowe/imperative";
/**
* Wrapper for invoke z/OSMF API through the RestClient to perform common error
* handling and checking and resolve promises according to generic types
* @export
* @class ZosmfRestClient
* @extends {RestClient}
*/
export declare class ZosmfRestClient extends RestClient {
/**
* Use the Zowe logger instead of the imperative logger
* @type {Logger}
*/
get log(): Logger;
/**
* Append z/OSMF specific headers to the callers headers for cases
* where a header is common to every request.
* @param {any[] | undefined} headers - current header array
* @memberof ZosmfRestClient
*/
protected appendHeaders(headers: any[] | undefined): any[];
/**
* Process an error encountered in the rest client
* @param {IImperativeError} original - the original error automatically built by the abstract rest client
* @returns {IImperativeError} - the processed error with details added
* @memberof ZosmfRestClient
*/
protected processError(original: IImperativeError): IImperativeError;
}
//# sourceMappingURL=ZosmfRestClient.d.ts.map