reveal-sdk-node
Version:
RevealBI Node.js SDK
47 lines (46 loc) • 1.55 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RVGoogleDriveDataSourceItem = void 0;
const RVDataSourceItem_1 = require("../AbstractClasses/RVDataSourceItem");
const RVGoogleDriveDataSource_1 = require("./RVGoogleDriveDataSource");
/**
* Google Drive data source item, referencing a file in Google Drive
*/
class RVGoogleDriveDataSourceItem extends RVDataSourceItem_1.RVDataSourceItem {
/** @hidden */
constructor(arg) {
super(arg !== null && arg !== void 0 ? arg : new RVGoogleDriveDataSource_1.RVGoogleDriveDataSource());
this._identifier = null;
if (arg && !(arg instanceof RVGoogleDriveDataSource_1.RVGoogleDriveDataSource)) {
var props = arg.Properties;
this._identifier = props["Identifier"];
}
}
/** @hidden */
toJson() {
var json = super.toJson();
var props = json['Properties'];
props['Identifier'] = this._identifier;
return json;
}
/**
* Identifier of the file referenced by this item
*/
get identifier() {
return this._identifier;
}
set identifier(value) {
this._identifier = value;
}
/** @hidden */
getType() {
return "RVGoogleDriveDataSourceItem";
}
/** @hidden */
_getWrapper() {
var wrapper = super._getWrapper();
wrapper.identifier(this.identifier);
return wrapper;
}
}
exports.RVGoogleDriveDataSourceItem = RVGoogleDriveDataSourceItem;