/* * 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 CreateFleet = { nodeShape: NodeShape; autoscalerConfig: AutoscalerConfig; /** * Readable name for a fleet. Must be unique within an organization. */ name: string; }; /** @internal */ export type CreateFleet$Outbound = { nodeShape: string; autoscalerConfig: AutoscalerConfig$Outbound; name: string; }; /** @internal */ export const CreateFleet$outboundSchema: z.ZodType< CreateFleet$Outbound, z.ZodTypeDef, CreateFleet > = z.object({ nodeShape: NodeShape$outboundSchema, autoscalerConfig: AutoscalerConfig$outboundSchema, name: z.string(), }); export function createFleetToJSON(createFleet: CreateFleet): string { return JSON.stringify(CreateFleet$outboundSchema.parse(createFleet)); }