Skip to main content

clientapi_pbs/models/
admin_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 AdminVerifyGetVerifyResponseDataInner {
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    /// Endtime of the last run.
30    #[serde(rename = "last-run-endtime", skip_serializing_if = "Option::is_none")]
31    pub last_run_endtime: Option<i64>,
32
33    /// Result of the last run.
34    #[serde(rename = "last-run-state", skip_serializing_if = "Option::is_none")]
35    pub last_run_state: Option<String>,
36
37    /// Task UPID of the last run.
38    #[serde(rename = "last-run-upid", skip_serializing_if = "Option::is_none")]
39    pub last_run_upid: Option<String>,
40
41    /// How many levels of namespaces should be operated on (0 == no recursion)
42    #[serde(rename = "max-depth", skip_serializing_if = "Option::is_none")]
43    pub max_depth: Option<i32>,
44
45    /// Estimated time of the next run (UNIX epoch).
46    #[serde(rename = "next-run", skip_serializing_if = "Option::is_none")]
47    pub next_run: Option<i64>,
48
49    /// Namespace.
50    #[serde(rename = "ns", skip_serializing_if = "Option::is_none")]
51    pub ns: Option<String>,
52
53    /// Days after that a verification becomes outdated. (0 is deprecated)'
54    #[serde(rename = "outdated-after", skip_serializing_if = "Option::is_none")]
55    pub outdated_after: Option<i64>,
56
57    /// The number of threads to use for reading chunks in verify job.
58    #[serde(rename = "read-threads", skip_serializing_if = "Option::is_none")]
59    pub read_threads: Option<i32>,
60
61    /// Run verify job at specified schedule.
62    #[serde(rename = "schedule", skip_serializing_if = "Option::is_none")]
63    pub schedule: Option<String>,
64
65    /// Datastore name.
66    #[serde(rename = "store")]
67    pub store: String,
68
69    /// The number of threads to use for verifying chunks in verify job.
70    #[serde(rename = "verify-threads", skip_serializing_if = "Option::is_none")]
71    pub verify_threads: Option<i32>,
72
73
74}
75
76impl AdminVerifyGetVerifyResponseDataInner {
77    pub fn new(id: String, store: String) -> AdminVerifyGetVerifyResponseDataInner {
78        AdminVerifyGetVerifyResponseDataInner {
79            
80            comment: None,
81            
82            id,
83            
84            ignore_verified: None,
85            
86            last_run_endtime: None,
87            
88            last_run_state: None,
89            
90            last_run_upid: None,
91            
92            max_depth: None,
93            
94            next_run: None,
95            
96            ns: None,
97            
98            outdated_after: None,
99            
100            read_threads: None,
101            
102            schedule: None,
103            
104            store,
105            
106            verify_threads: None,
107            
108        }
109    }
110}
111
112