Path: blob/master/src/packages/next/lib/api/schema/compute/set-server-configuration.ts
1451 views
import { z } from "../../framework";12import { FailedAPIOperationSchema, OkAPIOperationSchema } from "../common";34import {5ComputeServerIdSchema,6GoogleCloudServerConfigurationSchema,7HyperstackServerConfigurationSchema,8} from "./common";910// OpenAPI spec11//12export const SetServerConfigurationInputSchema = z13.object({14id: ComputeServerIdSchema,15configuration: z16.union([17GoogleCloudServerConfigurationSchema.partial(),18HyperstackServerConfigurationSchema.partial(),19])20.describe(21`Server configuration to change. Note that only a subset of the22configuration is necessary so that configuration fields may be individually23changed.`,24),25})26.describe("Create a new compute server with the provided configuration.");2728export const SetServerConfigurationOutputSchema = z.union([29FailedAPIOperationSchema,30OkAPIOperationSchema,31]);3233export type SetServerConfigurationInput = z.infer<34typeof SetServerConfigurationInputSchema35>;36export type SetServerConfigurationOutput = z.infer<37typeof SetServerConfigurationOutputSchema38>;394041