/*
 * 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";
import * as components from "../components/index.js";
/** @internal */
export const UpdateResourceByAssetIdGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const UpdateResourceByAssetIdGlobals$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 UpdateResourceByAssetIdGlobals$;
(function (UpdateResourceByAssetIdGlobals$) {
    /** @deprecated use `UpdateResourceByAssetIdGlobals$inboundSchema` instead. */
    UpdateResourceByAssetIdGlobals$.inboundSchema = UpdateResourceByAssetIdGlobals$inboundSchema;
    /** @deprecated use `UpdateResourceByAssetIdGlobals$outboundSchema` instead. */
    UpdateResourceByAssetIdGlobals$.outboundSchema = UpdateResourceByAssetIdGlobals$outboundSchema;
})(UpdateResourceByAssetIdGlobals$ || (UpdateResourceByAssetIdGlobals$ = {}));
export function updateResourceByAssetIdGlobalsToJSON(updateResourceByAssetIdGlobals) {
    return JSON.stringify(UpdateResourceByAssetIdGlobals$outboundSchema.parse(updateResourceByAssetIdGlobals));
}
export function updateResourceByAssetIdGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateResourceByAssetIdGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateResourceByAssetIdGlobals' from JSON`);
}
/** @internal */
export const UpdateResourceByAssetIdRequest$inboundSchema = z.object({
    asset_id: z.string(),
    ResourceUpdateRequest: components.ResourceUpdateRequest$inboundSchema,
}).transform((v) => {
    return remap$(v, {
        "asset_id": "assetId",
        "ResourceUpdateRequest": "resourceUpdateRequest",
    });
});
/** @internal */
export const UpdateResourceByAssetIdRequest$outboundSchema = z.object({
    assetId: z.string(),
    resourceUpdateRequest: components.ResourceUpdateRequest$outboundSchema,
}).transform((v) => {
    return remap$(v, {
        assetId: "asset_id",
        resourceUpdateRequest: "ResourceUpdateRequest",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var UpdateResourceByAssetIdRequest$;
(function (UpdateResourceByAssetIdRequest$) {
    /** @deprecated use `UpdateResourceByAssetIdRequest$inboundSchema` instead. */
    UpdateResourceByAssetIdRequest$.inboundSchema = UpdateResourceByAssetIdRequest$inboundSchema;
    /** @deprecated use `UpdateResourceByAssetIdRequest$outboundSchema` instead. */
    UpdateResourceByAssetIdRequest$.outboundSchema = UpdateResourceByAssetIdRequest$outboundSchema;
})(UpdateResourceByAssetIdRequest$ || (UpdateResourceByAssetIdRequest$ = {}));
export function updateResourceByAssetIdRequestToJSON(updateResourceByAssetIdRequest) {
    return JSON.stringify(UpdateResourceByAssetIdRequest$outboundSchema.parse(updateResourceByAssetIdRequest));
}
export function updateResourceByAssetIdRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateResourceByAssetIdRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateResourceByAssetIdRequest' from JSON`);
}
//# sourceMappingURL=updateresourcebyassetid.js.map