/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const DerivedDestroyGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const DerivedDestroyGlobals$outboundSchema = z.object({
    cloudName: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        cloudName: "cloud_name",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var DerivedDestroyGlobals$;
(function (DerivedDestroyGlobals$) {
    /** @deprecated use `DerivedDestroyGlobals$inboundSchema` instead. */
    DerivedDestroyGlobals$.inboundSchema = DerivedDestroyGlobals$inboundSchema;
    /** @deprecated use `DerivedDestroyGlobals$outboundSchema` instead. */
    DerivedDestroyGlobals$.outboundSchema = DerivedDestroyGlobals$outboundSchema;
})(DerivedDestroyGlobals$ || (DerivedDestroyGlobals$ = {}));
export function derivedDestroyGlobalsToJSON(derivedDestroyGlobals) {
    return JSON.stringify(DerivedDestroyGlobals$outboundSchema.parse(derivedDestroyGlobals));
}
export function derivedDestroyGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => DerivedDestroyGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DerivedDestroyGlobals' from JSON`);
}
//# sourceMappingURL=deriveddestroy.js.map