Skip to main content

clientapi_pve/models/
cluster_replication_read_get_replication_response_data.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 ClusterReplicationReadGetReplicationResponseData {
16
17    /// Description.
18    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
19    pub comment: Option<String>,
20
21    /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.
22    #[serde(rename = "digest", skip_serializing_if = "Option::is_none")]
23    pub digest: Option<String>,
24
25    /// Flag to disable/deactivate the entry.
26    #[serde(rename = "disable", skip_serializing_if = "Option::is_none")]
27    pub disable: Option<models::PveBoolean>,
28
29    /// Guest ID.
30    #[serde(rename = "guest")]
31    pub guest: i64,
32
33    /// Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'.
34    #[serde(rename = "id")]
35    pub id: String,
36
37    /// Unique, sequential ID assigned to each job.
38    #[serde(rename = "jobnum")]
39    pub jobnum: i64,
40
41    /// Rate limit in mbps (megabytes per second) as floating point number.
42    #[serde(rename = "rate", skip_serializing_if = "Option::is_none")]
43    pub rate: Option<f64>,
44
45    /// Mark the replication job for removal. The job will remove all local replication snapshots. When set to 'full', it also tries to remove replicated volumes on the target. The job then removes itself from the configuration file.
46    #[serde(rename = "remove_job", skip_serializing_if = "Option::is_none")]
47    pub remove_job: Option<models::PveRemoveJobEnum>,
48
49    /// Storage replication schedule. The format is a subset of `systemd` calendar events.
50    #[serde(rename = "schedule", skip_serializing_if = "Option::is_none")]
51    pub schedule: Option<String>,
52
53    /// For internal use, to detect if the guest was stolen.
54    #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
55    pub source: Option<String>,
56
57    /// Target node.
58    #[serde(rename = "target")]
59    pub target: String,
60
61    /// Section type.
62    #[serde(rename = "type")]
63    pub r#type: models::PveClusterReplicationTypeEnum,
64
65
66}
67
68impl ClusterReplicationReadGetReplicationResponseData {
69    pub fn new(guest: i64, id: String, jobnum: i64, target: String, r#type: models::PveClusterReplicationTypeEnum) -> ClusterReplicationReadGetReplicationResponseData {
70        ClusterReplicationReadGetReplicationResponseData {
71            
72            comment: None,
73            
74            digest: None,
75            
76            disable: None,
77            
78            guest,
79            
80            id,
81            
82            jobnum,
83            
84            rate: None,
85            
86            remove_job: None,
87            
88            schedule: None,
89            
90            source: None,
91            
92            target,
93            
94            r#type,
95            
96        }
97    }
98}
99
100