/*
 * 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 ListResourceTagsGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const ListResourceTagsGlobals$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 ListResourceTagsGlobals$;
(function (ListResourceTagsGlobals$) {
    /** @deprecated use `ListResourceTagsGlobals$inboundSchema` instead. */
    ListResourceTagsGlobals$.inboundSchema = ListResourceTagsGlobals$inboundSchema;
    /** @deprecated use `ListResourceTagsGlobals$outboundSchema` instead. */
    ListResourceTagsGlobals$.outboundSchema = ListResourceTagsGlobals$outboundSchema;
})(ListResourceTagsGlobals$ || (ListResourceTagsGlobals$ = {}));
export function listResourceTagsGlobalsToJSON(listResourceTagsGlobals) {
    return JSON.stringify(ListResourceTagsGlobals$outboundSchema.parse(listResourceTagsGlobals));
}
export function listResourceTagsGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListResourceTagsGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListResourceTagsGlobals' from JSON`);
}
/** @internal */
export const ListResourceTagsRequest$inboundSchema = z.object({
    resource_type: components.ResourceTypeParameter$inboundSchema,
    prefix: z.string().optional(),
    next_cursor: z.string().optional(),
    max_results: z.number().int().optional(),
}).transform((v) => {
    return remap$(v, {
        "resource_type": "resourceType",
        "next_cursor": "nextCursor",
        "max_results": "maxResults",
    });
});
/** @internal */
export const ListResourceTagsRequest$outboundSchema = z.object({
    resourceType: components.ResourceTypeParameter$outboundSchema,
    prefix: z.string().optional(),
    nextCursor: z.string().optional(),
    maxResults: z.number().int().optional(),
}).transform((v) => {
    return remap$(v, {
        resourceType: "resource_type",
        nextCursor: "next_cursor",
        maxResults: "max_results",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var ListResourceTagsRequest$;
(function (ListResourceTagsRequest$) {
    /** @deprecated use `ListResourceTagsRequest$inboundSchema` instead. */
    ListResourceTagsRequest$.inboundSchema = ListResourceTagsRequest$inboundSchema;
    /** @deprecated use `ListResourceTagsRequest$outboundSchema` instead. */
    ListResourceTagsRequest$.outboundSchema = ListResourceTagsRequest$outboundSchema;
})(ListResourceTagsRequest$ || (ListResourceTagsRequest$ = {}));
export function listResourceTagsRequestToJSON(listResourceTagsRequest) {
    return JSON.stringify(ListResourceTagsRequest$outboundSchema.parse(listResourceTagsRequest));
}
export function listResourceTagsRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListResourceTagsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListResourceTagsRequest' from JSON`);
}
/** @internal */
export const ListResourceTagsResponse$inboundSchema = z.object({
    tags: z.array(z.string()).optional(),
    next_cursor: z.nullable(z.string()).optional(),
}).transform((v) => {
    return remap$(v, {
        "next_cursor": "nextCursor",
    });
});
/** @internal */
export const ListResourceTagsResponse$outboundSchema = z.object({
    tags: z.array(z.string()).optional(),
    nextCursor: z.nullable(z.string()).optional(),
}).transform((v) => {
    return remap$(v, {
        nextCursor: "next_cursor",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var ListResourceTagsResponse$;
(function (ListResourceTagsResponse$) {
    /** @deprecated use `ListResourceTagsResponse$inboundSchema` instead. */
    ListResourceTagsResponse$.inboundSchema = ListResourceTagsResponse$inboundSchema;
    /** @deprecated use `ListResourceTagsResponse$outboundSchema` instead. */
    ListResourceTagsResponse$.outboundSchema = ListResourceTagsResponse$outboundSchema;
})(ListResourceTagsResponse$ || (ListResourceTagsResponse$ = {}));
export function listResourceTagsResponseToJSON(listResourceTagsResponse) {
    return JSON.stringify(ListResourceTagsResponse$outboundSchema.parse(listResourceTagsResponse));
}
export function listResourceTagsResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListResourceTagsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListResourceTagsResponse' from JSON`);
}
//# sourceMappingURL=listresourcetags.js.map