1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 export interface Resource {
15 export enum ResourceKind {
17 COLLECTION = "collection",
18 PIPELINE = "pipeline",
22 export function getResourceKind(itemKind: string) {
24 case "arvados#project":
26 return ResourceKind.PROJECT;
27 case "arvados#collection":
28 return ResourceKind.COLLECTION;
29 case "arvados#pipeline":
30 return ResourceKind.PIPELINE;
32 return ResourceKind.UNKNOWN;