windmill-api 1.748.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.748.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// DucklakeSettingsDucklakesValueMaintenance : Scheduled maintenance (enterprise) - snapshot expiry, adjacent-file compaction and orphaned-file cleanup, run as a managed per-lake schedule
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DucklakeSettingsDucklakesValueMaintenance {
    #[serde(rename = "enabled")]
    pub enabled: bool,
    /// cron cadence (v2, UTC); defaults to daily at 03h with a per-lake minute offset
    #[serde(rename = "schedule", skip_serializing_if = "Option::is_none")]
    pub schedule: Option<String>,
    /// snapshot retention window in days (default 7); time-travel older than this stops working
    #[serde(rename = "retention_days", skip_serializing_if = "Option::is_none")]
    pub retention_days: Option<i32>,
    /// merge adjacent small parquet files (default true)
    #[serde(rename = "compaction", skip_serializing_if = "Option::is_none")]
    pub compaction: Option<bool>,
    /// delete orphaned files older than max(retention, 1 day) (default true)
    #[serde(rename = "orphan_cleanup", skip_serializing_if = "Option::is_none")]
    pub orphan_cleanup: Option<bool>,
}

impl DucklakeSettingsDucklakesValueMaintenance {
    /// Scheduled maintenance (enterprise) - snapshot expiry, adjacent-file compaction and orphaned-file cleanup, run as a managed per-lake schedule
    pub fn new(enabled: bool) -> DucklakeSettingsDucklakesValueMaintenance {
        DucklakeSettingsDucklakesValueMaintenance {
            enabled,
            schedule: None,
            retention_days: None,
            compaction: None,
            orphan_cleanup: None,
        }
    }
}