UNPKG

aruba-admin

Version:

A TypeScript/Node.js library for interacting with Aruba Cloud's SOAP API with full type support and multi-region connectivity.

24 lines (23 loc) 1.31 kB
import { DataCenter } from "../constants"; /** * Downloads the WSDL file for the specified data center and returns the path to it. * First tries to use pre-packaged WSDL files, only downloads if not found. * @param dc Data center object containing URL and name * @return Promise<string> The path to the WSDL file * @throws Error if the WSDL download fails or if there is an issue accessing the file */ export declare const downloadWSDL: (dc: DataCenter) => Promise<string>; /** * Generates TypeScript API from the WSDL file located in the generated SOAP API directory. * It removes the existing generated SOAP API directory if it exists, creates a new one, * downloads the WSDL, and then generates the TypeScript API. * @returns {Promise<void>} A promise that resolves when the TypeScript API generation is complete. * @throws {Error} If there is an error removing the directory or generating the API. */ export declare const generateTypescriptApi: () => Promise<void>; /** * Downloads WSDL files for all specified data centers except the default one. * @param dataCenters Array of DataCenter objects to download WSDLs for * @returns {Promise<void>} A promise that resolves when all WSDLs are downloaded */ export declare const downloadWSDLs: (dataCenters: DataCenter[]) => Promise<void>;