UNPKG

reveal-sdk-node

Version:

RevealBI Node.js SDK

60 lines (59 loc) 1.79 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RVAnalysisServicesDataSourceItem = void 0; const RVDataSourceItem_1 = require("../AbstractClasses/RVDataSourceItem"); const RVAnalysisServicesDataSource_1 = require("./RVAnalysisServicesDataSource"); /** * Microsoft Analysis Services (MS SSAS) item, specifies the cube to get data from. */ class RVAnalysisServicesDataSourceItem extends RVDataSourceItem_1.RVDataSourceItem { /** @hidden */ constructor(arg) { super(arg); this._catalog = null; this._cube = null; if (!(arg instanceof RVAnalysisServicesDataSource_1.RVAnalysisServicesDataSource)) { var props = arg.Properties; this._catalog = props["Catalog"]; this._cube = props["Cube"]; } } /** @hidden */ toJson() { var json = super.toJson(); var props = json['Properties']; props["Catalog"] = this._catalog; props["Cube"] = this._cube; return json; } /** * The name of the catalog (database) containing the cube. */ get catalog() { return this._catalog; } set catalog(value) { this._catalog = value; } /** * Name of the cube to use */ get cube() { return this._cube; } set cube(value) { this._cube = value; } /** @hidden */ getType() { return "RVAnalysisServicesDataSourceItem"; } /** @hidden */ _getWrapper() { var wrapper = super._getWrapper(); wrapper.catalog(this.catalog); wrapper.cube(this.cube); return wrapper; } } exports.RVAnalysisServicesDataSourceItem = RVAnalysisServicesDataSourceItem;