clientapi-pve 2026.5.24

Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
Documentation
/*
 * 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,
            
        }
    }
}