Skip to main content

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