1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { ResourceKind, TrashableResource } from "./resource";
7 export interface CollectionResource extends TrashableResource {
8 kind: ResourceKind.COLLECTION;
12 portableDataHash: string;
14 replicationDesired: number;
15 replicationConfirmed: number;
16 replicationConfirmedAt: string;
17 storageClassesDesired: string[];
18 storageClassesConfirmed: string[];
19 storageClassesConfirmedAt: string;
20 currentVersionUuid: string;
22 preserveVersion: boolean;
23 unsignedManifestText?: string;
25 fileSizeTotal: number;
28 export const getCollectionUrl = (uuid: string) => {
29 return `/collections/${uuid}`;
32 export enum CollectionType {