Skip to main content

clientapi_pve/models/
nodes_storage_dryrun_response_data_inner.rs

1/*
2 * Proxmox Virtual Environment API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-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 NodesStorageDryrunResponseDataInner {
16
17    /// Creation time of the backup (seconds since the UNIX epoch).
18    #[serde(rename = "ctime")]
19    pub ctime: i64,
20
21    /// Whether the backup would be kept or removed. Backups that are protected or don't use the standard naming scheme are not removed.
22    #[serde(rename = "mark")]
23    pub mark: models::PveNodesStorageMarkEnum,
24
25    /// One of 'qemu', 'lxc', 'openvz' or 'unknown'.
26    #[serde(rename = "type")]
27    pub r#type: String,
28
29    /// The VM the backup belongs to.
30    #[serde(rename = "vmid", skip_serializing_if = "Option::is_none")]
31    pub vmid: Option<i64>,
32
33    /// Backup volume ID.
34    #[serde(rename = "volid")]
35    pub volid: String,
36
37
38}
39
40impl NodesStorageDryrunResponseDataInner {
41    pub fn new(ctime: i64, mark: models::PveNodesStorageMarkEnum, r#type: String, volid: String) -> NodesStorageDryrunResponseDataInner {
42        NodesStorageDryrunResponseDataInner {
43            
44            ctime,
45            
46            mark,
47            
48            r#type,
49            
50            vmid: None,
51            
52            volid,
53            
54        }
55    }
56}
57
58