Merge branch 'master' into 13969-advanced-tab
[arvados-workbench2.git] / src / models / collection.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { ResourceKind, TrashableResource } from "./resource";
6
7 export interface CollectionResource extends TrashableResource {
8     kind: ResourceKind.COLLECTION;
9     name: string;
10     description: string;
11     properties: any;
12     portableDataHash: string;
13     manifestText: string;
14     replicationDesired: number;
15     replicationConfirmed: number;
16     replicationConfirmedAt: string;
17     fileNames: string;
18     storageClassesDesired: string[];
19     storageClassesConfirmed: string[];
20     storageClassesConfirmedAt: string;
21 }
22
23 export const getCollectionUrl = (uuid: string) => {
24     return `/collections/${uuid}`;
25 };