CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/lib/api/schema/compute/set-image-tested.ts
Views: 688
1
import { z } from "../../framework";
2
3
import { FailedAPIOperationSchema, OkAPIOperationSchema } from "../common";
4
5
import { ComputeServerIdSchema } from "./common";
6
7
// OpenAPI spec
8
//
9
export const SetComputeServerImageTestedInputSchema = z
10
.object({
11
id: ComputeServerIdSchema,
12
tested: z
13
.boolean()
14
.describe(
15
"Indicates whether the server image specified in the `id` field has been tested.",
16
),
17
})
18
.describe(
19
`Set whether or not the image a compute server with given id is using has been tested.
20
This is used by admins when manually doing final integration testing for a new image
21
on some cloud provider.`,
22
);
23
24
export const SetComputeServerImageTestedOutputSchema = z.union([
25
FailedAPIOperationSchema,
26
OkAPIOperationSchema,
27
]);
28
29
export type SetComputeServerImageTestedInput = z.infer<
30
typeof SetComputeServerImageTestedInputSchema
31
>;
32
export type SetComputeServerImageTestedOutput = z.infer<
33
typeof SetComputeServerImageTestedOutputSchema
34
>;
35
36