1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* 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,
}
}
}