Skip to main content

clientapi_pve/models/
nodes_ceph_osdvolume_response_data.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 NodesCephOsdvolumeResponseData {
16
17    /// Creation time as reported by `lvs`.
18    #[serde(rename = "creation_time")]
19    pub creation_time: String,
20
21    /// Name of the logical volume (LV).
22    #[serde(rename = "lv_name")]
23    pub lv_name: String,
24
25    /// Path to the logical volume (LV).
26    #[serde(rename = "lv_path")]
27    pub lv_path: String,
28
29    /// Size of the logical volume (LV).
30    #[serde(rename = "lv_size")]
31    pub lv_size: i64,
32
33    /// UUID of the logical volume (LV).
34    #[serde(rename = "lv_uuid")]
35    pub lv_uuid: String,
36
37    /// Name of the volume group (VG).
38    #[serde(rename = "vg_name")]
39    pub vg_name: String,
40
41
42}
43
44impl NodesCephOsdvolumeResponseData {
45    pub fn new(creation_time: String, lv_name: String, lv_path: String, lv_size: i64, lv_uuid: String, vg_name: String) -> NodesCephOsdvolumeResponseData {
46        NodesCephOsdvolumeResponseData {
47            
48            creation_time,
49            
50            lv_name,
51            
52            lv_path,
53            
54            lv_size,
55            
56            lv_uuid,
57            
58            vg_name,
59            
60        }
61    }
62}
63
64