Skip to main content

clientapi_pbs/models/
admin_datastore_update_group_notes_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 AdminDatastoreUpdateGroupNotesRequest {
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    /// A multiline text.
26    #[serde(rename = "notes")]
27    pub notes: String,
28
29    /// Namespace.
30    #[serde(rename = "ns", skip_serializing_if = "Option::is_none")]
31    pub ns: Option<String>,
32
33
34}
35
36impl AdminDatastoreUpdateGroupNotesRequest {
37    pub fn new(backup_id: String, backup_type: models::PbsBackupTypeEnum, notes: String) -> AdminDatastoreUpdateGroupNotesRequest {
38        AdminDatastoreUpdateGroupNotesRequest {
39            
40            backup_id,
41            
42            backup_type,
43            
44            notes,
45            
46            ns: None,
47            
48        }
49    }
50}
51
52