@forge/util

2.0.12.0.1-experimental-7890858
packages/ari/chunk-UGUJOTKP.mjs
+packages/ari/chunk-UGUJOTKP.mjsNew file
+67
Index: package/packages/ari/chunk-UGUJOTKP.mjs
===================================================================
--- package/packages/ari/chunk-UGUJOTKP.mjs
+++ package/packages/ari/chunk-UGUJOTKP.mjs
@@ -0,0 +1,67 @@
+import {
+  AiopsSnrAlertAriResourceOwner,
+  AiopsSnrAlertAriResourceType
+} from "./chunk-FB7VQO77.mjs";
+import {
+  RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+  AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/aiops/snr-alert/manifest.ts
+var aiopsSnrAlertAriStaticOpts = {
+  qualifier: "ari",
+  platformQualifier: "cloud",
+  cloudId: new RegExp("^$"),
+  resourceOwner: AiopsSnrAlertAriResourceOwner,
+  resourceType: AiopsSnrAlertAriResourceType,
+  resourceIdSlug: "activation/{activationId}/{resourceIdParam}",
+  resourceIdSegmentFormats: {
+    activationId: /[a-zA-Z0-9\-]+/,
+    // eslint-disable-line no-useless-escape
+    resourceIdParam: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}(-[0-9]*)?/
+  }
+};
+
+// src/aiops/snr-alert/index.ts
+var AiopsSnrAlertAri = class _AiopsSnrAlertAri extends RegisteredAri {
+  constructor(opts) {
+    super(opts), this._activationId = opts.resourceIdSegmentValues.activationId, this._resourceIdParam = opts.resourceIdSegmentValues.resourceIdParam;
+  }
+  get activationId() {
+    return this._activationId;
+  }
+  get resourceIdParam() {
+    return this._resourceIdParam;
+  }
+  static create(opts) {
+    let derivedOpts = {
+      qualifier: aiopsSnrAlertAriStaticOpts.qualifier,
+      platformQualifier: aiopsSnrAlertAriStaticOpts.platformQualifier,
+      cloudId: void 0,
+      resourceOwner: aiopsSnrAlertAriStaticOpts.resourceOwner,
+      resourceType: aiopsSnrAlertAriStaticOpts.resourceType,
+      resourceId: `activation/${opts.activationId}/${opts.resourceIdParam}`,
+      resourceIdSegmentValues: {
+        activationId: opts.activationId,
+        resourceIdParam: opts.resourceIdParam
+      }
+    }, ariOpts = AriParser.fromOpts(derivedOpts, aiopsSnrAlertAriStaticOpts);
+    return new _AiopsSnrAlertAri(ariOpts);
+  }
+  static parse(maybeAri) {
+    let opts = AriParser.fromString(maybeAri, aiopsSnrAlertAriStaticOpts);
+    return new _AiopsSnrAlertAri(opts);
+  }
+  getVariables() {
+    return {
+      activationId: this.activationId,
+      resourceIdParam: this.resourceIdParam
+    };
+  }
+};
+
+export {
+  AiopsSnrAlertAri
+};