/* * 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 { NodeShapeId, NodeShapeId$outboundSchema } from "./nodeshapeid.js"; export type CreateFleetV2 = { nodeShapeId: NodeShapeId; autoscalerConfig: AutoscalerConfig; /** * Readable name for a fleet. Must be unique within an organization. */ name: string; }; /** @internal */ export type CreateFleetV2$Outbound = { nodeShapeId: string; autoscalerConfig: AutoscalerConfig$Outbound; name: string; }; /** @internal */ export const CreateFleetV2$outboundSchema: z.ZodType< CreateFleetV2$Outbound, z.ZodTypeDef, CreateFleetV2 > = z.object({ nodeShapeId: NodeShapeId$outboundSchema, autoscalerConfig: AutoscalerConfig$outboundSchema, name: z.string(), }); export function createFleetV2ToJSON(createFleetV2: CreateFleetV2): string { return JSON.stringify(CreateFleetV2$outboundSchema.parse(createFleetV2)); }