@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/chunk-7HDZGWLL.mjs+
packages/ari/chunk-7HDZGWLL.mjsNew file+60
Index: package/packages/ari/chunk-7HDZGWLL.mjs
===================================================================
--- package/packages/ari/chunk-7HDZGWLL.mjs
+++ package/packages/ari/chunk-7HDZGWLL.mjs
@@ -0,0 +1,60 @@
+import {
+ IdentityGroupAriResourceOwner,
+ IdentityGroupAriResourceType
+} from "./chunk-IZPJNHZU.mjs";
+import {
+ RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+ AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/identity/group/manifest.ts
+var identityGroupAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^$"),
+ resourceOwner: IdentityGroupAriResourceOwner,
+ resourceType: IdentityGroupAriResourceType,
+ resourceIdSlug: "{groupId}",
+ resourceIdSegmentFormats: {
+ groupId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
+ }
+};
+
+// src/identity/group/index.ts
+var IdentityGroupAri = class _IdentityGroupAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._groupId = opts.resourceIdSegmentValues.groupId;
+ }
+ get groupId() {
+ return this._groupId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: identityGroupAriStaticOpts.qualifier,
+ platformQualifier: identityGroupAriStaticOpts.platformQualifier,
+ cloudId: void 0,
+ resourceOwner: identityGroupAriStaticOpts.resourceOwner,
+ resourceType: identityGroupAriStaticOpts.resourceType,
+ resourceId: `${opts.groupId}`,
+ resourceIdSegmentValues: {
+ groupId: opts.groupId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, identityGroupAriStaticOpts);
+ return new _IdentityGroupAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, identityGroupAriStaticOpts);
+ return new _IdentityGroupAri(opts);
+ }
+ getVariables() {
+ return {
+ groupId: this.groupId
+ };
+ }
+};
+
+export {
+ IdentityGroupAri
+};