Skip to main content

clientapi_pbs/models/
config_datastore_update_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 ConfigDatastoreUpdateDatastoreRequest {
16
17    /// Comment.
18    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
19    pub comment: Option<String>,
20
21    /// Reset notification threshold related counters at specified schedule.
22    #[serde(rename = "counter-reset-schedule", skip_serializing_if = "Option::is_none")]
23    pub counter_reset_schedule: Option<String>,
24
25    /// List of properties to delete.
26    #[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
27    pub delete: Option<Vec<models::PbsConfigDatastoreInlineEnum>>,
28
29    /// Prevent changes if current configuration file has different SHA256 digest. This can be used to prevent concurrent modifications.
30    #[serde(rename = "digest", skip_serializing_if = "Option::is_none")]
31    pub digest: Option<String>,
32
33    /// Run garbage collection before unmounting a removable datastore.
34    #[serde(rename = "gc-on-unmount", skip_serializing_if = "Option::is_none")]
35    pub gc_on_unmount: Option<bool>,
36
37    /// Run garbage collection job at specified schedule.
38    #[serde(rename = "gc-schedule", skip_serializing_if = "Option::is_none")]
39    pub gc_schedule: Option<String>,
40
41    /// Number of daily backups to keep.
42    #[serde(rename = "keep-daily", skip_serializing_if = "Option::is_none")]
43    pub keep_daily: Option<i64>,
44
45    /// Number of hourly backups to keep.
46    #[serde(rename = "keep-hourly", skip_serializing_if = "Option::is_none")]
47    pub keep_hourly: Option<i64>,
48
49    /// Number of backups to keep.
50    #[serde(rename = "keep-last", skip_serializing_if = "Option::is_none")]
51    pub keep_last: Option<i64>,
52
53    /// Number of monthly backups to keep.
54    #[serde(rename = "keep-monthly", skip_serializing_if = "Option::is_none")]
55    pub keep_monthly: Option<i64>,
56
57    /// Number of weekly backups to keep.
58    #[serde(rename = "keep-weekly", skip_serializing_if = "Option::is_none")]
59    pub keep_weekly: Option<i64>,
60
61    /// Number of yearly backups to keep.
62    #[serde(rename = "keep-yearly", skip_serializing_if = "Option::is_none")]
63    pub keep_yearly: Option<i64>,
64
65    /// Maintenance mode, type is either 'offline' or 'read-only', message should be enclosed in \"
66    #[serde(rename = "maintenance-mode", skip_serializing_if = "Option::is_none")]
67    pub maintenance_mode: Option<Box<models::PbsMaintenanceField>>,
68
69    /// Configure how notifications for this datastore should be sent. `legacy-sendmail` sends email notifications to the user configured in `notify-user` via the system's `sendmail` executable. `notification-system` emits matchable notification events to the notification system.
70    #[serde(rename = "notification-mode", skip_serializing_if = "Option::is_none")]
71    pub notification_mode: Option<models::PbsNotificationModeEnum>,
72
73    /// Threshold values for notifications
74    #[serde(rename = "notification-thresholds", skip_serializing_if = "Option::is_none")]
75    pub notification_thresholds: Option<Box<models::PbsNotificationThresholdsField>>,
76
77    /// Datastore notification setting, enum can be one of 'always', 'never', or 'error'.
78    #[serde(rename = "notify", skip_serializing_if = "Option::is_none")]
79    pub notify: Option<Box<models::PbsNotifyField>>,
80
81    /// User ID
82    #[serde(rename = "notify-user", skip_serializing_if = "Option::is_none")]
83    pub notify_user: Option<String>,
84
85    /// Run prune job at specified schedule.
86    #[serde(rename = "prune-schedule", skip_serializing_if = "Option::is_none")]
87    pub prune_schedule: Option<String>,
88
89    /// Datastore tuning options
90    #[serde(rename = "tuning", skip_serializing_if = "Option::is_none")]
91    pub tuning: Option<Box<models::PbsTuningField>>,
92
93    /// If enabled, all new backups will be verified right after completion.
94    #[serde(rename = "verify-new", skip_serializing_if = "Option::is_none")]
95    pub verify_new: Option<bool>,
96
97
98}
99
100impl ConfigDatastoreUpdateDatastoreRequest {
101    pub fn new() -> ConfigDatastoreUpdateDatastoreRequest {
102        ConfigDatastoreUpdateDatastoreRequest {
103            
104            comment: None,
105            
106            counter_reset_schedule: None,
107            
108            delete: None,
109            
110            digest: None,
111            
112            gc_on_unmount: None,
113            
114            gc_schedule: None,
115            
116            keep_daily: None,
117            
118            keep_hourly: None,
119            
120            keep_last: None,
121            
122            keep_monthly: None,
123            
124            keep_weekly: None,
125            
126            keep_yearly: None,
127            
128            maintenance_mode: None,
129            
130            notification_mode: None,
131            
132            notification_thresholds: None,
133            
134            notify: None,
135            
136            notify_user: None,
137            
138            prune_schedule: None,
139            
140            tuning: None,
141            
142            verify_new: None,
143            
144        }
145    }
146}
147
148