17914: Replaces deprecated substr() with substring().
[arvados.git] / src / models / container-request.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { Resource, ResourceKind, ResourceWithProperties } from "./resource";
6 import { MountType } from "models/mount-types";
7 import { RuntimeConstraints } from './runtime-constraints';
8 import { SchedulingParameters } from './scheduling-parameters';
9
10 export enum ContainerRequestState {
11     UNCOMMITTED = "Uncommitted",
12     COMMITTED = "Committed",
13     FINAL = "Final"
14 }
15
16 export interface ContainerRequestResource extends Resource, ResourceWithProperties {
17     kind: ResourceKind.CONTAINER_REQUEST;
18     name: string;
19     description: string;
20     state: ContainerRequestState;
21     requestingContainerUuid: string | null;
22     containerUuid: string | null;
23     containerCountMax: number;
24     mounts: {[path: string]: MountType};
25     runtimeConstraints: RuntimeConstraints;
26     schedulingParameters: SchedulingParameters;
27     containerImage: string;
28     environment: any;
29     cwd: string;
30     command: string[];
31     outputPath: string;
32     outputName: string;
33     outputTtl: number;
34     priority: number | null;
35     expiresAt: string;
36     useExisting: boolean;
37     logUuid: string | null;
38     outputUuid: string | null;
39     filters: string;
40     containerCount: number;
41 }