Skip to main content

clientapi_pbs/models/
admin_datastore_create_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 AdminDatastoreCreateVerifyRequest {
16
17    /// Backup ID.
18    #[serde(rename = "backup-id", skip_serializing_if = "Option::is_none")]
19    pub backup_id: Option<String>,
20
21    /// Backup time (Unix epoch.)
22    #[serde(rename = "backup-time", skip_serializing_if = "Option::is_none")]
23    pub backup_time: Option<i64>,
24
25    /// Backup types.
26    #[serde(rename = "backup-type", skip_serializing_if = "Option::is_none")]
27    pub backup_type: Option<models::PbsBackupTypeEnum>,
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    /// The number of threads to use for verifying chunks in verify job.
50    #[serde(rename = "verify-threads", skip_serializing_if = "Option::is_none")]
51    pub verify_threads: Option<i32>,
52
53
54}
55
56impl AdminDatastoreCreateVerifyRequest {
57    pub fn new() -> AdminDatastoreCreateVerifyRequest {
58        AdminDatastoreCreateVerifyRequest {
59            
60            backup_id: None,
61            
62            backup_time: None,
63            
64            backup_type: None,
65            
66            ignore_verified: None,
67            
68            max_depth: None,
69            
70            ns: None,
71            
72            outdated_after: None,
73            
74            read_threads: None,
75            
76            verify_threads: None,
77            
78        }
79    }
80}
81
82