projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into 13864-Virtual-machines
[arvados-workbench2.git]
/
src
/
models
/
collection.ts
diff --git
a/src/models/collection.ts
b/src/models/collection.ts
index 8ab319991cc91a0f130576f1d4f72f4292be48c0..2b16ea2523a4de9d4cb4a776e402fc6ce2e7168e 100644
(file)
--- a/
src/models/collection.ts
+++ b/
src/models/collection.ts
@@
-2,10
+2,10
@@
//
// SPDX-License-Identifier: AGPL-3.0
//
// SPDX-License-Identifier: AGPL-3.0
-import { Resource
, ResourceKind
} from "./resource";
+import { Resource
Kind, TrashableResource
} from "./resource";
-export interface CollectionResource extends Resource {
- kind: ResourceKind.C
ollection
;
+export interface CollectionResource extends
Trashable
Resource {
+ kind: ResourceKind.C
OLLECTION
;
name: string;
description: string;
properties: any;
name: string;
description: string;
properties: any;
@@
-14,11
+14,17
@@
export interface CollectionResource extends Resource {
replicationDesired: number;
replicationConfirmed: number;
replicationConfirmedAt: string;
replicationDesired: number;
replicationConfirmed: number;
replicationConfirmedAt: string;
-
trashAt: string
;
-
deleteAt: string
;
-
isTrashed: boolean
;
+
storageClassesDesired: string[]
;
+
storageClassesConfirmed: string[]
;
+
storageClassesConfirmedAt: string
;
}
export const getCollectionUrl = (uuid: string) => {
return `/collections/${uuid}`;
}
export const getCollectionUrl = (uuid: string) => {
return `/collections/${uuid}`;
-};
\ No newline at end of file
+};
+
+export enum CollectionType {
+ GENERAL = 'nil',
+ OUTPUT = 'output',
+ LOG = 'log',
+}