1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/*
* Proxmox Virtual Environment API
*
* Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
*
* The version of the OpenAPI document: 9.x
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct QemuVmStartRequest {
/// Override QEMU's -cpu argument with the given string.
#[serde(rename = "force-cpu", skip_serializing_if = "Option::is_none")]
pub force_cpu: Option<String>,
/// Specify the QEMU machine.
#[serde(rename = "machine", skip_serializing_if = "Option::is_none")]
pub machine: Option<Box<models::PveMachineField>>,
/// The cluster node name.
#[serde(rename = "migratedfrom", skip_serializing_if = "Option::is_none")]
pub migratedfrom: Option<String>,
/// CIDR of the (sub) network that is used for migration.
#[serde(rename = "migration_network", skip_serializing_if = "Option::is_none")]
pub migration_network: Option<String>,
/// Migration traffic is encrypted using an SSH tunnel by default. On secure, completely private networks this can be disabled to increase performance.
#[serde(rename = "migration_type", skip_serializing_if = "Option::is_none")]
pub migration_type: Option<models::PveMigrationTypeEnum>,
/// Used for migration compat. List of VirtIO network devices and their effective host_mtu setting according to the QEMU object model on the source side of the migration. A value of 0 means that the host_mtu parameter is to be avoided for the corresponding device.
#[serde(rename = "nets-host-mtu", skip_serializing_if = "Option::is_none")]
pub nets_host_mtu: Option<String>,
/// Ignore locks - only root is allowed to use this option.
#[serde(rename = "skiplock", skip_serializing_if = "Option::is_none")]
pub skiplock: Option<models::PveBoolean>,
/// Some command save/restore state from this location.
#[serde(rename = "stateuri", skip_serializing_if = "Option::is_none")]
pub stateuri: Option<String>,
/// Mapping from source to target storages. Providing only a single storage ID maps all source storages to that storage. Providing the special value '1' will map each source storage to itself.
#[serde(rename = "targetstorage", skip_serializing_if = "Option::is_none")]
pub targetstorage: Option<String>,
/// Wait maximal timeout seconds.
#[serde(rename = "timeout", skip_serializing_if = "Option::is_none")]
pub timeout: Option<i64>,
/// Whether to migrate conntrack entries for running VMs.
#[serde(rename = "with-conntrack-state", skip_serializing_if = "Option::is_none")]
pub with_conntrack_state: Option<models::PveBoolean>,
}
impl QemuVmStartRequest {
pub fn new() -> QemuVmStartRequest {
QemuVmStartRequest {
force_cpu: None,
machine: None,
migratedfrom: None,
migration_network: None,
migration_type: None,
nets_host_mtu: None,
skiplock: None,
stateuri: None,
targetstorage: None,
timeout: None,
with_conntrack_state: None,
}
}
}