/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { AutoscalerConfig, AutoscalerConfig$Outbound, AutoscalerConfig$outboundSchema, } from "./autoscalerconfig.js"; import { NodeShape, NodeShape$outboundSchema } from "./nodeshape.js"; export type UpdateFleet = { nodeShape?: NodeShape | undefined; autoscalerConfig: AutoscalerConfig; /** * Readable name for a fleet. Must be unique within an organization. */ name?: string | undefined; }; /** @internal */ export type UpdateFleet$Outbound = { nodeShape?: string | undefined; autoscalerConfig: AutoscalerConfig$Outbound; name?: string | undefined; }; /** @internal */ export const UpdateFleet$outboundSchema: z.ZodType< UpdateFleet$Outbound, z.ZodTypeDef, UpdateFleet > = z.object({ nodeShape: NodeShape$outboundSchema.optional(), autoscalerConfig: AutoscalerConfig$outboundSchema, name: z.string().optional(), }); export function updateFleetToJSON(updateFleet: UpdateFleet): string { return JSON.stringify(UpdateFleet$outboundSchema.parse(updateFleet)); }