aruba-admin
Version:
A TypeScript/Node.js library for interacting with Aruba Cloud's SOAP API with full type support and multi-region connectivity.
55 lines • 2.11 kB
JavaScript
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.DATA_CENTERS = void 0;
const path_1 = __importDefault(require("path"));
// Get the directory of this constants file to build absolute paths
const LIBRARY_ROOT = path_1.default.resolve(__dirname, '..');
exports.DATA_CENTERS = Object.freeze({
DEFAULT: {
url: "https://api.dc1.computing.cloud.it/WsEndUser/v2.9/WsEndUser.svc?wsdl",
name: "Arubacloud.svc"
},
ITALY1: {
url: "https://api.dc1.computing.cloud.it/WsEndUser/v2.9/WsEndUser.svc?wsdl",
name: "Italy 1"
},
ITALY2: {
url: "https://api.dc2.computing.cloud.it/WsEndUser/v2.9/WsEndUser.svc?wsdl",
name: "Italy 2"
},
CZECH: {
url: "https://api.dc3.computing.cloud.it/WsEndUser/v2.9/WsEndUser.svc?wsdl",
name: "Czech"
},
FRANCE: {
url: "https://api.dc4.computing.cloud.it/WsEndUser/v2.9/WsEndUser.svc?wsdl",
name: "France"
},
GERMANY: {
url: "https://api.dc5.computing.cloud.it/WsEndUser/v2.9/WsEndUser.svc?wsdl",
name: "Germany"
},
UK: {
url: "https://api.dc6.computing.cloud.it/WsEndUser/v2.9/WsEndUser.svc?wsdl",
name: "UK"
},
ITALY3: {
url: "https://api.dc7.computing.cloud.it/WsEndUser/v2.9/WsEndUser.svc?wsdl",
name: "Italy 3"
},
POLAND: {
url: "https://api.dc8.computing.cloud.it/WsEndUser/v2.9/WsEndUser.svc?wsdl",
name: "Poland"
},
});
exports.default = {
// Use absolute paths relative to the library installation
WSDL_LOCATION: path_1.default.join(LIBRARY_ROOT, "generatedSoapApi", "Arubacloud.svc.wsdl"),
GENERATED_SOAP_API_DIR: path_1.default.join(LIBRARY_ROOT, "generatedSoapApi"),
GENERATED_SOAP_API_FILE: path_1.default.join(LIBRARY_ROOT, "generatedSoapApi", "Arubacloud.svc.ts"),
BROKEN_NAMESPACE: "https://api.computing.cloud.it/WsEndUser/json"
};
//# sourceMappingURL=constants.js.map