Skip to main content

clientapi_pve/models/
pools_update_pool_deprecated_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 PoolsUpdatePoolDeprecatedRequest {
16
17    /// Allow adding a guest even if already in another pool. The guest will be removed from its current pool and added to this one.
18    #[serde(rename = "allow-move", skip_serializing_if = "Option::is_none")]
19    pub allow_move: Option<models::PveBoolean>,
20
21    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
22    pub comment: Option<String>,
23
24    /// Remove the passed VMIDs and/or storage IDs instead of adding them.
25    #[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
26    pub delete: Option<models::PveBoolean>,
27
28    /// List of storage IDs to add or remove from this pool.
29    #[serde(rename = "storage", skip_serializing_if = "Option::is_none")]
30    pub storage: Option<String>,
31
32    /// List of guest VMIDs to add or remove from this pool.
33    #[serde(rename = "vms", skip_serializing_if = "Option::is_none")]
34    pub vms: Option<String>,
35
36
37}
38
39impl PoolsUpdatePoolDeprecatedRequest {
40    pub fn new() -> PoolsUpdatePoolDeprecatedRequest {
41        PoolsUpdatePoolDeprecatedRequest {
42            
43            allow_move: None,
44            
45            comment: None,
46            
47            delete: None,
48            
49            storage: None,
50            
51            vms: None,
52            
53        }
54    }
55}
56
57