f5-conx-core
Version:
F5 SDK for JavaScript with Typescript type definitions
31 lines (30 loc) • 1.03 kB
TypeScript
import { AdcDeclaration, As3AppMap, Target } from "./as3Models";
import { As3Declaration } from "..";
/**
* extracts tenant name and target from declaration
* used for crafting tenant delete calls
* @param dec AS3/ADC declaration
* @returns { tenant, schemaVersion, target}
*/
export declare function tenantFromDec(dec: As3Declaration | AdcDeclaration): Promise<{
tenant: string;
schemaVersion: string;
target: Target;
}>;
/**
* returns true if working with targets
* @param declare /declare endpoint output
*/
export declare function targetDecsBool(declare: AdcDeclaration | AdcDeclaration[]): Promise<boolean>;
/**
* returns as3 application index of target?/tenant/app/app-stats
*
* ```ts
*
* ```
*
* @param declare /declare endpoint output
*/
export declare function mapAs3(declare: AdcDeclaration | AdcDeclaration[]): Promise<As3AppMap>;
export declare function as3AppsInTenant(as3Tenant: object): Promise<string[]>;
export declare function as3AppStats(as3App: object): Promise<object | undefined>;