@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/avp/datasource/index.js~
packages/ari/avp/datasource/index.jsModified+2−5
Index: package/packages/ari/avp/datasource/index.js
===================================================================
--- package/packages/ari/avp/datasource/index.js
+++ package/packages/ari/avp/datasource/index.js
@@ -284,25 +284,22 @@
var avpDatasourceAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
- // eslint-disable-line no-useless-escape
- resourceOwner: AvpDatasourceAriResourceOwner,
+ resourceOwner: "avp",
resourceType: AvpDatasourceAriResourceType,
resourceIdSlug: "activation/{activationId}/{datasourceId}",
resourceIdSegmentFormats: {
activationId: /[a-zA-Z0-9\-]+/,
// eslint-disable-line no-useless-escape
datasourceId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
- // eslint-disable-line no-useless-escape
}
};
// src/avp/datasource/index.ts
var AvpDatasourceAri = class _AvpDatasourceAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._datasourceId = opts.resourceIdSegmentValues.datasourceId;
+ super(opts), this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._datasourceId = opts.resourceIdSegmentValues.datasourceId;
}
get siteId() {
return this._siteId;
}