Skip to main content

clientapi_pve/models/
cluster_replication_update_replication_request.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 ClusterReplicationUpdateReplicationRequest {
16
17    /// Description.
18    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
19    pub comment: Option<String>,
20
21    /// A list of settings you want to delete.
22    #[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
23    pub delete: Option<String>,
24
25    /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.
26    #[serde(rename = "digest", skip_serializing_if = "Option::is_none")]
27    pub digest: Option<String>,
28
29    /// Flag to disable/deactivate the entry.
30    #[serde(rename = "disable", skip_serializing_if = "Option::is_none")]
31    pub disable: Option<models::PveBoolean>,
32
33    /// Rate limit in mbps (megabytes per second) as floating point number.
34    #[serde(rename = "rate", skip_serializing_if = "Option::is_none")]
35    pub rate: Option<f64>,
36
37    /// 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.
38    #[serde(rename = "remove_job", skip_serializing_if = "Option::is_none")]
39    pub remove_job: Option<models::PveRemoveJobEnum>,
40
41    /// Storage replication schedule. The format is a subset of `systemd` calendar events.
42    #[serde(rename = "schedule", skip_serializing_if = "Option::is_none")]
43    pub schedule: Option<String>,
44
45    /// For internal use, to detect if the guest was stolen.
46    #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
47    pub source: Option<String>,
48
49
50}
51
52impl ClusterReplicationUpdateReplicationRequest {
53    pub fn new() -> ClusterReplicationUpdateReplicationRequest {
54        ClusterReplicationUpdateReplicationRequest {
55            
56            comment: None,
57            
58            delete: None,
59            
60            digest: None,
61            
62            disable: None,
63            
64            rate: None,
65            
66            remove_job: None,
67            
68            schedule: None,
69            
70            source: None,
71            
72        }
73    }
74}
75
76