Skip to main content

clientapi_pbs/models/
config_verify_update_verify_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 ConfigVerifyUpdateVerifyRequest {
16
17    /// Comment.
18    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
19    pub comment: Option<String>,
20
21    /// List of properties to delete.
22    #[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
23    pub delete: Option<Vec<models::PbsConfigVerifyInlineEnum>>,
24
25    /// Prevent changes if current configuration file has different SHA256 digest. This can be used to prevent concurrent modifications.
26    #[serde(rename = "digest", skip_serializing_if = "Option::is_none")]
27    pub digest: Option<String>,
28
29    /// Do not verify backups that are already verified if their verification is not outdated.
30    #[serde(rename = "ignore-verified", skip_serializing_if = "Option::is_none")]
31    pub ignore_verified: Option<bool>,
32
33    /// How many levels of namespaces should be operated on (0 == no recursion)
34    #[serde(rename = "max-depth", skip_serializing_if = "Option::is_none")]
35    pub max_depth: Option<i32>,
36
37    /// Namespace.
38    #[serde(rename = "ns", skip_serializing_if = "Option::is_none")]
39    pub ns: Option<String>,
40
41    /// Days after that a verification becomes outdated. (0 is deprecated)'
42    #[serde(rename = "outdated-after", skip_serializing_if = "Option::is_none")]
43    pub outdated_after: Option<i64>,
44
45    /// The number of threads to use for reading chunks in verify job.
46    #[serde(rename = "read-threads", skip_serializing_if = "Option::is_none")]
47    pub read_threads: Option<i32>,
48
49    /// Run verify job at specified schedule.
50    #[serde(rename = "schedule", skip_serializing_if = "Option::is_none")]
51    pub schedule: Option<String>,
52
53    /// Datastore name.
54    #[serde(rename = "store", skip_serializing_if = "Option::is_none")]
55    pub store: Option<String>,
56
57    /// The number of threads to use for verifying chunks in verify job.
58    #[serde(rename = "verify-threads", skip_serializing_if = "Option::is_none")]
59    pub verify_threads: Option<i32>,
60
61
62}
63
64impl ConfigVerifyUpdateVerifyRequest {
65    pub fn new() -> ConfigVerifyUpdateVerifyRequest {
66        ConfigVerifyUpdateVerifyRequest {
67            
68            comment: None,
69            
70            delete: None,
71            
72            digest: None,
73            
74            ignore_verified: None,
75            
76            max_depth: None,
77            
78            ns: None,
79            
80            outdated_after: None,
81            
82            read_threads: None,
83            
84            schedule: None,
85            
86            store: None,
87            
88            verify_threads: None,
89            
90        }
91    }
92}
93
94