@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/chunk-RP5G2JO7.mjs+
packages/ari/chunk-RP5G2JO7.mjsNew file+67
Index: package/packages/ari/chunk-RP5G2JO7.mjs
===================================================================
--- package/packages/ari/chunk-RP5G2JO7.mjs
+++ package/packages/ari/chunk-RP5G2JO7.mjs
@@ -0,0 +1,67 @@
+import {
+ AiopsSnrAlertGroupAriResourceOwner,
+ AiopsSnrAlertGroupAriResourceType
+} from "./chunk-DOWRVJOV.mjs";
+import {
+ RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+ AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/aiops/snr-alert-group/manifest.ts
+var aiopsSnrAlertGroupAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^$"),
+ resourceOwner: AiopsSnrAlertGroupAriResourceOwner,
+ resourceType: AiopsSnrAlertGroupAriResourceType,
+ 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}/
+ }
+};
+
+// src/aiops/snr-alert-group/index.ts
+var AiopsSnrAlertGroupAri = class _AiopsSnrAlertGroupAri 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: aiopsSnrAlertGroupAriStaticOpts.qualifier,
+ platformQualifier: aiopsSnrAlertGroupAriStaticOpts.platformQualifier,
+ cloudId: void 0,
+ resourceOwner: aiopsSnrAlertGroupAriStaticOpts.resourceOwner,
+ resourceType: aiopsSnrAlertGroupAriStaticOpts.resourceType,
+ resourceId: `activation/${opts.activationId}/${opts.resourceIdParam}`,
+ resourceIdSegmentValues: {
+ activationId: opts.activationId,
+ resourceIdParam: opts.resourceIdParam
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, aiopsSnrAlertGroupAriStaticOpts);
+ return new _AiopsSnrAlertGroupAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, aiopsSnrAlertGroupAriStaticOpts);
+ return new _AiopsSnrAlertGroupAri(opts);
+ }
+ getVariables() {
+ return {
+ activationId: this.activationId,
+ resourceIdParam: this.resourceIdParam
+ };
+ }
+};
+
+export {
+ AiopsSnrAlertGroupAri
+};