Skip to main content

clientapi_pve/models/
nodes_stopall_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 NodesStopallRequest {
16
17    /// Force a hard-stop after the timeout.
18    #[serde(rename = "force-stop", skip_serializing_if = "Option::is_none")]
19    pub force_stop: Option<models::PveBoolean>,
20
21    /// Defines the maximum number of tasks running concurrently. 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.
22    #[serde(rename = "max-workers", skip_serializing_if = "Option::is_none")]
23    pub max_workers: Option<i32>,
24
25    /// Timeout for each guest shutdown task. Depending on `force-stop`, the shutdown gets then simply aborted or a hard-stop is forced.
26    #[serde(rename = "timeout", skip_serializing_if = "Option::is_none")]
27    pub timeout: Option<i32>,
28
29    /// Only consider Guests with these IDs.
30    #[serde(rename = "vms", skip_serializing_if = "Option::is_none")]
31    pub vms: Option<String>,
32
33
34}
35
36impl NodesStopallRequest {
37    pub fn new() -> NodesStopallRequest {
38        NodesStopallRequest {
39            
40            force_stop: None,
41            
42            max_workers: None,
43            
44            timeout: None,
45            
46            vms: None,
47            
48        }
49    }
50}
51
52