UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

76 lines 2.7 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NamespaceSettings = void 0; class NamespaceSettings { constructor(data) { let appDefault = ""; this.app = typeof data.app !== "undefined" ? data.app : appDefault; let clusterDefault = ""; this.cluster = typeof (data === null || data === void 0 ? void 0 : data.cluster) !== "undefined" ? data === null || data === void 0 ? void 0 : data.cluster : clusterDefault; let envDefault = ""; this.env = typeof (data === null || data === void 0 ? void 0 : data.env) !== "undefined" ? data === null || data === void 0 ? void 0 : data.env : envDefault; let orgDefault = "webpdf"; this.org = typeof (data === null || data === void 0 ? void 0 : data.org) !== "undefined" ? data === null || data === void 0 ? void 0 : data.org : orgDefault; let regionDefault = ""; this.region = typeof (data === null || data === void 0 ? void 0 : data.region) !== "undefined" ? data === null || data === void 0 ? void 0 : data.region : regionDefault; let versionDefault = "v10.0"; this.version = typeof data.version !== "undefined" ? data.version : versionDefault; } static getAppDefault() { return ""; } static getAppDescription() { return "Application identifier"; } static getClusterDefault() { return ""; } static getClusterDescription() { return "Optional cluster discriminator for blue\/green or canary"; } static getEnvDefault() { return ""; } static getEnvDescription() { return "Optional environment name"; } static getOrgDefault() { return "webpdf"; } static getOrgDescription() { return "Optional organization\/vendor identifier"; } static getRegionDefault() { return ""; } static getRegionDescription() { return "Optional region identifier"; } static getVersionDefault() { return "v10.0"; } static getVersionDescription() { return "Key schema version"; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new NamespaceSettings(data); } toJson() { return { 'app': this.app, 'cluster': this.cluster, 'env': this.env, 'org': this.org, 'region': this.region, 'version': this.version, }; } clone() { return NamespaceSettings.fromJson(this.toJson()); } } exports.NamespaceSettings = NamespaceSettings; //# sourceMappingURL=NamespaceSettings.js.map