@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/chunk-RPVHO2RX.mjs+
packages/ari/chunk-RPVHO2RX.mjsNew file+73
Index: package/packages/ari/chunk-RPVHO2RX.mjs
===================================================================
--- package/packages/ari/chunk-RPVHO2RX.mjs
+++ package/packages/ari/chunk-RPVHO2RX.mjs
@@ -0,0 +1,73 @@
+import {
+ GraphDeploymentHistoryAriResourceOwner,
+ GraphDeploymentHistoryAriResourceType
+} from "./chunk-LCOEZ74N.mjs";
+import {
+ RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+ AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/graph/deployment-history/manifest.ts
+var graphDeploymentHistoryAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^$"),
+ resourceOwner: GraphDeploymentHistoryAriResourceOwner,
+ resourceType: GraphDeploymentHistoryAriResourceType,
+ resourceIdSlug: "activation/{activationId}/{deploymentId}/{updateSequenceNumber}",
+ resourceIdSegmentFormats: {
+ activationId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ deploymentId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/,
+ updateSequenceNumber: /\d+/
+ }
+};
+
+// src/graph/deployment-history/index.ts
+var GraphDeploymentHistoryAri = class _GraphDeploymentHistoryAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._activationId = opts.resourceIdSegmentValues.activationId, this._deploymentId = opts.resourceIdSegmentValues.deploymentId, this._updateSequenceNumber = opts.resourceIdSegmentValues.updateSequenceNumber;
+ }
+ get activationId() {
+ return this._activationId;
+ }
+ get deploymentId() {
+ return this._deploymentId;
+ }
+ get updateSequenceNumber() {
+ return this._updateSequenceNumber;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: graphDeploymentHistoryAriStaticOpts.qualifier,
+ platformQualifier: graphDeploymentHistoryAriStaticOpts.platformQualifier,
+ cloudId: void 0,
+ resourceOwner: graphDeploymentHistoryAriStaticOpts.resourceOwner,
+ resourceType: graphDeploymentHistoryAriStaticOpts.resourceType,
+ resourceId: `activation/${opts.activationId}/${opts.deploymentId}/${opts.updateSequenceNumber}`,
+ resourceIdSegmentValues: {
+ activationId: opts.activationId,
+ deploymentId: opts.deploymentId,
+ updateSequenceNumber: opts.updateSequenceNumber
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, graphDeploymentHistoryAriStaticOpts);
+ return new _GraphDeploymentHistoryAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, graphDeploymentHistoryAriStaticOpts);
+ return new _GraphDeploymentHistoryAri(opts);
+ }
+ getVariables() {
+ return {
+ activationId: this.activationId,
+ deploymentId: this.deploymentId,
+ updateSequenceNumber: this.updateSequenceNumber
+ };
+ }
+};
+
+export {
+ GraphDeploymentHistoryAri
+};