Skip to main content

clientapi_pbs/models/
admin_datastore_create_prune_datastore_request.rs

1/*
2 * Proxmox Backup Server API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/docs/api-viewer/ for the upstream documentation.
5 *
6 * The version of the OpenAPI document: 9.x
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AdminDatastoreCreatePruneDatastoreRequest {
16
17    /// Just show what prune would do, but do not delete anything.
18    #[serde(rename = "dry-run", skip_serializing_if = "Option::is_none")]
19    pub dry_run: Option<bool>,
20
21    /// Number of daily backups to keep.
22    #[serde(rename = "keep-daily", skip_serializing_if = "Option::is_none")]
23    pub keep_daily: Option<i64>,
24
25    /// Number of hourly backups to keep.
26    #[serde(rename = "keep-hourly", skip_serializing_if = "Option::is_none")]
27    pub keep_hourly: Option<i64>,
28
29    /// Number of backups to keep.
30    #[serde(rename = "keep-last", skip_serializing_if = "Option::is_none")]
31    pub keep_last: Option<i64>,
32
33    /// Number of monthly backups to keep.
34    #[serde(rename = "keep-monthly", skip_serializing_if = "Option::is_none")]
35    pub keep_monthly: Option<i64>,
36
37    /// Number of weekly backups to keep.
38    #[serde(rename = "keep-weekly", skip_serializing_if = "Option::is_none")]
39    pub keep_weekly: Option<i64>,
40
41    /// Number of yearly backups to keep.
42    #[serde(rename = "keep-yearly", skip_serializing_if = "Option::is_none")]
43    pub keep_yearly: Option<i64>,
44
45    /// How many levels of namespaces should be operated on (0 == no recursion, empty == automatic full recursion, namespace depths reduce maximum allowed value)
46    #[serde(rename = "max-depth", skip_serializing_if = "Option::is_none")]
47    pub max_depth: Option<i32>,
48
49    /// Namespace.
50    #[serde(rename = "ns", skip_serializing_if = "Option::is_none")]
51    pub ns: Option<String>,
52
53
54}
55
56impl AdminDatastoreCreatePruneDatastoreRequest {
57    pub fn new() -> AdminDatastoreCreatePruneDatastoreRequest {
58        AdminDatastoreCreatePruneDatastoreRequest {
59            
60            dry_run: None,
61            
62            keep_daily: None,
63            
64            keep_hourly: None,
65            
66            keep_last: None,
67            
68            keep_monthly: None,
69            
70            keep_weekly: None,
71            
72            keep_yearly: None,
73            
74            max_depth: None,
75            
76            ns: None,
77            
78        }
79    }
80}
81
82