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/delete-server.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 DeleteComputeServerInputSchema = z
10
.object({
11
id: ComputeServerIdSchema,
12
})
13
.describe("Deletes and deprovisions a compute server.");
14
15
export const DeleteComputeServerOutputSchema = z.union([
16
FailedAPIOperationSchema,
17
OkAPIOperationSchema,
18
]);
19
20
export type DeleteComputeServerInput = z.infer<
21
typeof DeleteComputeServerInputSchema
22
>;
23
export type DeleteComputeServerOutput = z.infer<
24
typeof DeleteComputeServerOutputSchema
25
>;
26
27