@forge/util

2.0.12.0.1-experimental-7890858
packages/ari/chunk-Y3OPPOOW.mjs
+packages/ari/chunk-Y3OPPOOW.mjsNew file
+67
Index: package/packages/ari/chunk-Y3OPPOOW.mjs
===================================================================
--- package/packages/ari/chunk-Y3OPPOOW.mjs
+++ package/packages/ari/chunk-Y3OPPOOW.mjs
@@ -0,0 +1,67 @@
+import {
+  OpsgenieIncidentStatusUpdateAriResourceOwner,
+  OpsgenieIncidentStatusUpdateAriResourceType
+} from "./chunk-RO4YS42G.mjs";
+import {
+  RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+  AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/opsgenie/incident-status-update/manifest.ts
+var opsgenieIncidentStatusUpdateAriStaticOpts = {
+  qualifier: "ari",
+  platformQualifier: "cloud",
+  cloudId: new RegExp("^$"),
+  resourceOwner: OpsgenieIncidentStatusUpdateAriResourceOwner,
+  resourceType: OpsgenieIncidentStatusUpdateAriResourceType,
+  resourceIdSlug: "{workspaceId}/{incidentStatusUpdateId}",
+  resourceIdSegmentFormats: {
+    workspaceId: /[a-zA-Z0-9\-]+/,
+    // eslint-disable-line no-useless-escape
+    incidentStatusUpdateId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
+  }
+};
+
+// src/opsgenie/incident-status-update/index.ts
+var OpsgenieIncidentStatusUpdateAri = class _OpsgenieIncidentStatusUpdateAri extends RegisteredAri {
+  constructor(opts) {
+    super(opts), this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._incidentStatusUpdateId = opts.resourceIdSegmentValues.incidentStatusUpdateId;
+  }
+  get workspaceId() {
+    return this._workspaceId;
+  }
+  get incidentStatusUpdateId() {
+    return this._incidentStatusUpdateId;
+  }
+  static create(opts) {
+    let derivedOpts = {
+      qualifier: opsgenieIncidentStatusUpdateAriStaticOpts.qualifier,
+      platformQualifier: opsgenieIncidentStatusUpdateAriStaticOpts.platformQualifier,
+      cloudId: void 0,
+      resourceOwner: opsgenieIncidentStatusUpdateAriStaticOpts.resourceOwner,
+      resourceType: opsgenieIncidentStatusUpdateAriStaticOpts.resourceType,
+      resourceId: `${opts.workspaceId}/${opts.incidentStatusUpdateId}`,
+      resourceIdSegmentValues: {
+        workspaceId: opts.workspaceId,
+        incidentStatusUpdateId: opts.incidentStatusUpdateId
+      }
+    }, ariOpts = AriParser.fromOpts(derivedOpts, opsgenieIncidentStatusUpdateAriStaticOpts);
+    return new _OpsgenieIncidentStatusUpdateAri(ariOpts);
+  }
+  static parse(maybeAri) {
+    let opts = AriParser.fromString(maybeAri, opsgenieIncidentStatusUpdateAriStaticOpts);
+    return new _OpsgenieIncidentStatusUpdateAri(opts);
+  }
+  getVariables() {
+    return {
+      workspaceId: this.workspaceId,
+      incidentStatusUpdateId: this.incidentStatusUpdateId
+    };
+  }
+};
+
+export {
+  OpsgenieIncidentStatusUpdateAri
+};