reveal-sdk-node
Version:
RevealBI Node.js SDK
50 lines (49 loc) • 1.45 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RVAzureAnalysisServicesDataSource = void 0;
const RVAnalysisServicesDataSource_1 = require("./RVAnalysisServicesDataSource");
/**
* Microsoft Azure Analysis Services data source
*/
class RVAzureAnalysisServicesDataSource extends RVAnalysisServicesDataSource_1.RVAnalysisServicesDataSource {
/** @hidden */
constructor(json) {
super(json);
this._serverUrl = null;
if (json) {
var props = json.Properties;
this._serverUrl = props['Url'];
}
}
/** @hidden */
toJson() {
var json = super.toJson();
var props = json.Properties;
props['Mode'] = 'HTTP';
props['Url'] = this._serverUrl;
return json;
}
getProviderKey() {
return "AZURE_ANALYSIS_SERVICES";
}
/**
* Server URL, including the 'asazure://' prefix (scheme).
*/
get serverUrl() {
return this._serverUrl;
}
set serverUrl(value) {
this._serverUrl = value;
}
/** @hidden */
getType() {
return "RVAzureAnalysisServicesDataSource";
}
/** @hidden */
_getWrapper() {
var wrapper = super._getWrapper();
wrapper.serverUrl(this.serverUrl);
return wrapper;
}
}
exports.RVAzureAnalysisServicesDataSource = RVAzureAnalysisServicesDataSource;