/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: ef56dabd686b */ import * as z from "zod/v3"; import { DlpConfig, DlpConfig$Outbound, DlpConfig$outboundSchema, } from "./dlpconfig.js"; import { DlpFrequency, DlpFrequency$outboundSchema } from "./dlpfrequency.js"; import { DlpReportStatus, DlpReportStatus$outboundSchema, } from "./dlpreportstatus.js"; export type UpdateDlpReportRequest = { /** * Detailed configuration of what documents and sensitive content will be scanned. */ config?: DlpConfig | undefined; /** * Interval between scans. DAILY is deprecated. */ frequency?: DlpFrequency | undefined; /** * The status of the policy/report. Only ACTIVE status will be picked for scans. */ status?: DlpReportStatus | undefined; /** * The new autoHideDoc boolean the policy will be updated to if provided. */ autoHideDocs?: boolean | undefined; /** * The new name of the policy if provided. */ reportName?: string | undefined; }; /** @internal */ export type UpdateDlpReportRequest$Outbound = { config?: DlpConfig$Outbound | undefined; frequency?: string | undefined; status?: string | undefined; autoHideDocs?: boolean | undefined; reportName?: string | undefined; }; /** @internal */ export const UpdateDlpReportRequest$outboundSchema: z.ZodType< UpdateDlpReportRequest$Outbound, z.ZodTypeDef, UpdateDlpReportRequest > = z.object({ config: DlpConfig$outboundSchema.optional(), frequency: DlpFrequency$outboundSchema.optional(), status: DlpReportStatus$outboundSchema.optional(), autoHideDocs: z.boolean().optional(), reportName: z.string().optional(), }); export function updateDlpReportRequestToJSON( updateDlpReportRequest: UpdateDlpReportRequest, ): string { return JSON.stringify( UpdateDlpReportRequest$outboundSchema.parse(updateDlpReportRequest), ); }