Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/src/packages/next/lib/api/schema/compute/get-images-google.ts
Views: 688
import { z } from "../../framework";12import { FailedAPIOperationSchema } from "../common";34import { RequestNoCacheSchema } from "../common";56// OpenAPI spec7//8export const GetComputeServerGoogleImagesInputSchema = z9.object({10noCache: RequestNoCacheSchema.optional(),11})12.describe(13"Used to get available compute server images for deployment to GCP.",14);1516export const GetComputeServerGoogleImagesOutputSchema = z.union([17FailedAPIOperationSchema,18z.record(19z.string().describe("Image name"),20z21.object({22labels: z23.object({24image: z.string().describe("CoCalc image name"),25tag: z.string().describe("Image tag"),26arch: z.enum(["x86-64", "arm64"]).describe("Image architecture"),27tested: z.string().describe("`true` if the image has been tested."),28})29.describe(30"Map of server image labels to values (e.g. architecture, etc.)",31),32diskSizeGb: z.number().min(0).describe("Disk size in GB"),33creationTimestamp: z34.string()35.describe("ISO 8601 timestamp indicating image creation time."),36})37.describe(38`Map of server image keys to detailed JSON information about the server image (e.g.,39image architecture, disk size, etc.`,40),41),42]);4344export type GetComputeServerGoogleImagesInput = z.infer<45typeof GetComputeServerGoogleImagesInputSchema46>;47export type GetComputeServerGoogleImagesOutput = z.infer<48typeof GetComputeServerGoogleImagesOutputSchema49>;505152