1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
7 ResourceWithProperties,
13 export interface GroupResource extends TrashableResource, ResourceWithProperties {
14 kind: ResourceKind.GROUP;
16 groupClass: GroupClass | null;
19 ensure_unique_name: boolean;
22 export enum GroupClass {
28 export const BUILTIN_GROUP_IDS = [
34 export const isBuiltinGroup = (uuid: string) => {
35 const match = RESOURCE_UUID_REGEX.exec(uuid);
36 const parts = match ? match[0].split('-') : [];
37 return parts.length === 3 && parts[1] === ResourceObjectType.GROUP && BUILTIN_GROUP_IDS.includes(parts[2]);