Skip to main content

clientapi_pve/models/
nodes_migrateall_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 NodesMigrateallRequest {
16
17    /// Maximal number of parallel migration job. If not set, uses'max_workers' from datacenter.cfg. One of both must be set!
18    #[serde(rename = "max-workers", skip_serializing_if = "Option::is_none")]
19    pub max_workers: Option<i32>,
20
21    /// Target node.
22    #[serde(rename = "target")]
23    pub target: String,
24
25    /// Only consider Guests with these IDs.
26    #[serde(rename = "vms", skip_serializing_if = "Option::is_none")]
27    pub vms: Option<String>,
28
29    /// Enable live storage migration for local disk
30    #[serde(rename = "with-local-disks", skip_serializing_if = "Option::is_none")]
31    pub with_local_disks: Option<models::PveBoolean>,
32
33
34}
35
36impl NodesMigrateallRequest {
37    pub fn new(target: String) -> NodesMigrateallRequest {
38        NodesMigrateallRequest {
39            
40            max_workers: None,
41            
42            target,
43            
44            vms: None,
45            
46            with_local_disks: None,
47            
48        }
49    }
50}
51
52