UNPKG

reveal-sdk-node

Version:

RevealBI Node.js SDK

63 lines (62 loc) 1.82 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RVAthenaDataSourceItem = void 0; const RVDataSourceItem_1 = require("../AbstractClasses/RVDataSourceItem"); const RVAthenaDataSource_1 = require("./RVAthenaDataSource"); /** * Amazon Athena data source item. */ class RVAthenaDataSourceItem extends RVDataSourceItem_1.RVDataSourceItem { /** @hidden */ constructor(arg) { super(arg); this._table = null; // @if SERVER_SDK this._customQuery = null; this._customQueryParameters = null; if (!(arg instanceof RVAthenaDataSource_1.RVAthenaDataSource)) { var props = arg.Properties; this._table = props["Table"]; // @if SERVER_SDK this.deserializeCustomQuerySupport(arg, true); // @endif } } /** @hidden */ toJson() { var json = super.toJson(); var props = json['Properties']; props['Table'] = this._table; // @if SERVER_SDK this.serializeCustomQuerySupport(json, true); // @endif return json; } /** * Table or view for this datasource item. */ get table() { return this._table; } set table(value) { this._table = value; } get customQuery() { return this._customQuery; } set customQuery(value) { this._customQuery = value; } get customQueryParameters() { return this._customQueryParameters; } set customQueryParameters(value) { this._customQueryParameters = value; } // @endif /** @hidden */ getType() { return "RVAthenaDataSourceItem"; } } exports.RVAthenaDataSourceItem = RVAthenaDataSourceItem;