/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 69653bb19882 */ import * as z from "zod/v4"; import { remap as remap$ } from "../../lib/primitives.js"; export type DeploymentResourceConfigUpdate = { replicas?: number | null | undefined; cpuRequest?: string | null | undefined; cpuLimit?: string | null | undefined; memoryRequest?: string | null | undefined; memoryLimit?: string | null | undefined; }; /** @internal */ export type DeploymentResourceConfigUpdate$Outbound = { replicas?: number | null | undefined; cpu_request?: string | null | undefined; cpu_limit?: string | null | undefined; memory_request?: string | null | undefined; memory_limit?: string | null | undefined; }; /** @internal */ export const DeploymentResourceConfigUpdate$outboundSchema: z.ZodType< DeploymentResourceConfigUpdate$Outbound, DeploymentResourceConfigUpdate > = z.object({ replicas: z.nullable(z.int()).optional(), cpuRequest: z.nullable(z.string()).optional(), cpuLimit: z.nullable(z.string()).optional(), memoryRequest: z.nullable(z.string()).optional(), memoryLimit: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { cpuRequest: "cpu_request", cpuLimit: "cpu_limit", memoryRequest: "memory_request", memoryLimit: "memory_limit", }); }); export function deploymentResourceConfigUpdateToJSON( deploymentResourceConfigUpdate: DeploymentResourceConfigUpdate, ): string { return JSON.stringify( DeploymentResourceConfigUpdate$outboundSchema.parse( deploymentResourceConfigUpdate, ), ); }