Path: blob/master/src/packages/next/lib/api/schema/compute/set-image-tested.ts
1451 views
import { z } from "../../framework";12import { FailedAPIOperationSchema, OkAPIOperationSchema } from "../common";34import { ComputeServerIdSchema } from "./common";56// OpenAPI spec7//8export const SetComputeServerImageTestedInputSchema = z9.object({10id: ComputeServerIdSchema,11tested: z12.boolean()13.describe(14"Indicates whether the server image specified in the `id` field has been tested.",15),16})17.describe(18`Set whether or not the image a compute server with given id is using has been tested.19This is used by admins when manually doing final integration testing for a new image20on some cloud provider.`,21);2223export const SetComputeServerImageTestedOutputSchema = z.union([24FailedAPIOperationSchema,25OkAPIOperationSchema,26]);2728export type SetComputeServerImageTestedInput = z.infer<29typeof SetComputeServerImageTestedInputSchema30>;31export type SetComputeServerImageTestedOutput = z.infer<32typeof SetComputeServerImageTestedOutputSchema33>;343536