Skip to main content

clientapi_pbs/models/
admin_datastore_update_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 AdminDatastoreUpdateNotesRequest {
16
17    /// Backup ID.
18    #[serde(rename = "backup-id")]
19    pub backup_id: String,
20
21    /// Backup time (Unix epoch.)
22    #[serde(rename = "backup-time")]
23    pub backup_time: i64,
24
25    /// Backup types.
26    #[serde(rename = "backup-type")]
27    pub backup_type: models::PbsBackupTypeEnum,
28
29    /// A multiline text.
30    #[serde(rename = "notes")]
31    pub notes: String,
32
33    /// Namespace.
34    #[serde(rename = "ns", skip_serializing_if = "Option::is_none")]
35    pub ns: Option<String>,
36
37
38}
39
40impl AdminDatastoreUpdateNotesRequest {
41    pub fn new(backup_id: String, backup_time: i64, backup_type: models::PbsBackupTypeEnum, notes: String) -> AdminDatastoreUpdateNotesRequest {
42        AdminDatastoreUpdateNotesRequest {
43            
44            backup_id,
45            
46            backup_time,
47            
48            backup_type,
49            
50            notes,
51            
52            ns: None,
53            
54        }
55    }
56}
57
58