projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into 13864-Virtual-machines
[arvados.git]
/
src
/
models
/
resource.ts
diff --git
a/src/models/resource.ts
b/src/models/resource.ts
index 520520f76eb1d39c65c04378968b9c4de3093e5e..7e2127b2813dad8076881b8fc69a03bb82184633 100644
(file)
--- a/
src/models/resource.ts
+++ b/
src/models/resource.ts
@@
-29,7
+29,9
@@
export enum ResourceKind {
PROCESS = "arvados#containerRequest",
PROJECT = "arvados#group",
REPOSITORY = "arvados#repository",
PROCESS = "arvados#containerRequest",
PROJECT = "arvados#group",
REPOSITORY = "arvados#repository",
+ SSH_KEY = "arvados#authorizedKeys",
USER = "arvados#user",
USER = "arvados#user",
+ VIRTUAL_MACHINE = "arvados#virtualMachine",
WORKFLOW = "arvados#workflow",
NONE = "arvados#none"
}
WORKFLOW = "arvados#workflow",
NONE = "arvados#none"
}
@@
-42,7
+44,9
@@
export enum ResourceObjectType {
LOG = '57u5n',
REPOSITORY = 's0uqq',
USER = 'tpzed',
LOG = '57u5n',
REPOSITORY = 's0uqq',
USER = 'tpzed',
+ VIRTUAL_MACHINE = '2x53u',
WORKFLOW = '7fd4e',
WORKFLOW = '7fd4e',
+ SSH_KEY = 'fngyi'
}
export const RESOURCE_UUID_PATTERN = '.{5}-.{5}-.{15}';
}
export const RESOURCE_UUID_PATTERN = '.{5}-.{5}-.{15}';
@@
-75,8
+79,12
@@
export const extractUuidKind = (uuid: string = '') => {
return ResourceKind.LOG;
case ResourceObjectType.WORKFLOW:
return ResourceKind.WORKFLOW;
return ResourceKind.LOG;
case ResourceObjectType.WORKFLOW:
return ResourceKind.WORKFLOW;
+ case ResourceObjectType.VIRTUAL_MACHINE:
+ return ResourceKind.VIRTUAL_MACHINE;
case ResourceObjectType.REPOSITORY:
return ResourceKind.REPOSITORY;
case ResourceObjectType.REPOSITORY:
return ResourceKind.REPOSITORY;
+ case ResourceObjectType.SSH_KEY:
+ return ResourceKind.SSH_KEY;
default:
return undefined;
}
default:
return undefined;
}