Skip to main content

clientapi_pve/models/
cluster_mapping_create_dir_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 ClusterMappingCreateDirRequest {
16
17    /// Description of the directory mapping
18    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
19    pub description: Option<String>,
20
21    /// The ID of the directory mapping
22    #[serde(rename = "id")]
23    pub id: String,
24
25    /// A list of maps for the cluster nodes.
26    #[serde(rename = "map")]
27    pub map: Vec<models::ClusterMappingCreateDirRequestMapInner>,
28
29
30}
31
32impl ClusterMappingCreateDirRequest {
33    pub fn new(id: String, map: Vec<models::ClusterMappingCreateDirRequestMapInner>) -> ClusterMappingCreateDirRequest {
34        ClusterMappingCreateDirRequest {
35            
36            description: None,
37            
38            id,
39            
40            map,
41            
42        }
43    }
44}
45
46