clientapi_pve/models/nodes_suspendall_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 NodesSuspendallRequest {
16
17 /// Maximal number of parallel migration job. If not set, uses'max_workers' from datacenter.cfg, and if that's not set the available' .' CPU threads, clamped to a maximum of 8, are used.
18 #[serde(rename = "max-workers", skip_serializing_if = "Option::is_none")]
19 pub max_workers: Option<i32>,
20
21 /// Only consider Guests with these IDs.
22 #[serde(rename = "vms", skip_serializing_if = "Option::is_none")]
23 pub vms: Option<String>,
24
25
26}
27
28impl NodesSuspendallRequest {
29 pub fn new() -> NodesSuspendallRequest {
30 NodesSuspendallRequest {
31
32 max_workers: None,
33
34 vms: None,
35
36 }
37 }
38}
39
40