Skip to main content

clientapi_pbs/models/
admin_datastore_create_move_group_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 AdminDatastoreCreateMoveGroupRequest {
16
17    /// Backup ID.
18    #[serde(rename = "backup-id")]
19    pub backup_id: String,
20
21    /// Backup types.
22    #[serde(rename = "backup-type")]
23    pub backup_type: models::PbsBackupTypeEnum,
24
25    /// If the group already exists in the target namespace, merge snapshots into it. Requires matching ownership and non-overlapping snapshot times.
26    #[serde(rename = "merge-group", skip_serializing_if = "Option::is_none")]
27    pub merge_group: Option<bool>,
28
29    /// Namespace.
30    #[serde(rename = "ns", skip_serializing_if = "Option::is_none")]
31    pub ns: Option<String>,
32
33    /// Namespace.
34    #[serde(rename = "target-ns", skip_serializing_if = "Option::is_none")]
35    pub target_ns: Option<String>,
36
37
38}
39
40impl AdminDatastoreCreateMoveGroupRequest {
41    pub fn new(backup_id: String, backup_type: models::PbsBackupTypeEnum) -> AdminDatastoreCreateMoveGroupRequest {
42        AdminDatastoreCreateMoveGroupRequest {
43            
44            backup_id,
45            
46            backup_type,
47            
48            merge_group: None,
49            
50            ns: None,
51            
52            target_ns: None,
53            
54        }
55    }
56}
57
58