@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/chunk-BUH5AQQP.mjs+
packages/ari/chunk-BUH5AQQP.mjsNew file+67
Index: package/packages/ari/chunk-BUH5AQQP.mjs
===================================================================
--- package/packages/ari/chunk-BUH5AQQP.mjs
+++ package/packages/ari/chunk-BUH5AQQP.mjs
@@ -0,0 +1,67 @@
+import {
+ GraphPostIncidentReviewAriResourceOwner,
+ GraphPostIncidentReviewAriResourceType
+} from "./chunk-SNAPC4SA.mjs";
+import {
+ RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+ AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/graph/post-incident-review/manifest.ts
+var graphPostIncidentReviewAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^$"),
+ resourceOwner: GraphPostIncidentReviewAriResourceOwner,
+ resourceType: GraphPostIncidentReviewAriResourceType,
+ resourceIdSlug: "activation/{activationId}/{postIncidentReviewId}",
+ resourceIdSegmentFormats: {
+ activationId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ postIncidentReviewId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
+ }
+};
+
+// src/graph/post-incident-review/index.ts
+var GraphPostIncidentReviewAri = class _GraphPostIncidentReviewAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._activationId = opts.resourceIdSegmentValues.activationId, this._postIncidentReviewId = opts.resourceIdSegmentValues.postIncidentReviewId;
+ }
+ get activationId() {
+ return this._activationId;
+ }
+ get postIncidentReviewId() {
+ return this._postIncidentReviewId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: graphPostIncidentReviewAriStaticOpts.qualifier,
+ platformQualifier: graphPostIncidentReviewAriStaticOpts.platformQualifier,
+ cloudId: void 0,
+ resourceOwner: graphPostIncidentReviewAriStaticOpts.resourceOwner,
+ resourceType: graphPostIncidentReviewAriStaticOpts.resourceType,
+ resourceId: `activation/${opts.activationId}/${opts.postIncidentReviewId}`,
+ resourceIdSegmentValues: {
+ activationId: opts.activationId,
+ postIncidentReviewId: opts.postIncidentReviewId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, graphPostIncidentReviewAriStaticOpts);
+ return new _GraphPostIncidentReviewAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, graphPostIncidentReviewAriStaticOpts);
+ return new _GraphPostIncidentReviewAri(opts);
+ }
+ getVariables() {
+ return {
+ activationId: this.activationId,
+ postIncidentReviewId: this.postIncidentReviewId
+ };
+ }
+};
+
+export {
+ GraphPostIncidentReviewAri
+};