Skip to main content

clientapi_pve/models/
lxc_resize_vm_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 LxcResizeVmRequest {
16
17    /// Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
18    #[serde(rename = "digest", skip_serializing_if = "Option::is_none")]
19    pub digest: Option<String>,
20
21    /// The disk you want to resize.
22    #[serde(rename = "disk")]
23    pub disk: models::PveLxcDiskEnum,
24
25    /// The new size. With the '+' sign the value is added to the actual size of the volume and without it, the value is taken as an absolute one. Shrinking disk size is not supported.
26    #[serde(rename = "size")]
27    pub size: String,
28
29
30}
31
32impl LxcResizeVmRequest {
33    pub fn new(disk: models::PveLxcDiskEnum, size: String) -> LxcResizeVmRequest {
34        LxcResizeVmRequest {
35            
36            digest: None,
37            
38            disk,
39            
40            size,
41            
42        }
43    }
44}
45
46