Skip to main content

clientapi_pve/models/
storage_create_storage_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 StorageCreateStorageResponseData {
16
17    #[serde(rename = "config", skip_serializing_if = "Option::is_none")]
18    pub config: Option<Box<models::StorageCreateStorageResponseDataConfig>>,
19
20    /// The ID of the created storage.
21    #[serde(rename = "storage")]
22    pub storage: String,
23
24    /// The type of the created storage.
25    #[serde(rename = "type")]
26    pub r#type: models::PveNodesStorageTypeEnum,
27
28
29}
30
31impl StorageCreateStorageResponseData {
32    pub fn new(storage: String, r#type: models::PveNodesStorageTypeEnum) -> StorageCreateStorageResponseData {
33        StorageCreateStorageResponseData {
34            
35            config: None,
36            
37            storage,
38            
39            r#type,
40            
41        }
42    }
43}
44
45