Path: blob/master/src/packages/next/lib/api/schema/compute/set-template.ts
1451 views
import { z } from "../../framework";12import { FailedAPIOperationSchema, OkAPIOperationSchema } from "../common";34import { ComputeServerIdSchema } from "./common";5import { ComputeServerTemplateObjectSchema } from "./get-template";67// OpenAPI spec8//9export const SetComputeServerTemplateInputSchema = z10.object({11id: ComputeServerIdSchema.describe("Compute server template id."),12template: ComputeServerTemplateObjectSchema,13})14.describe(15"**Administrators only**. Set a specific compute server template by `id`.",16);1718export const SetComputeServerTemplateOutputSchema = z.union([19FailedAPIOperationSchema,20OkAPIOperationSchema,21]);2223export type SetComputeServerTemplateInput = z.infer<24typeof SetComputeServerTemplateInputSchema25>;26export type SetComputeServerTemplateOutput = z.infer<27typeof SetComputeServerTemplateOutputSchema28>;293031