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 LxcMigrateVmPreconditionResponseData {

    /// List of nodes allowed for migration.
    #[serde(rename = "allowed-nodes", skip_serializing_if = "Option::is_none")]
    pub allowed_nodes: Option<Vec<String>>,

    /// HA resources, which will be migrated to the same target node as the VM, because these are in positive affinity with the VM.
    #[serde(rename = "dependent-ha-resources", skip_serializing_if = "Option::is_none")]
    pub dependent_ha_resources: Option<Vec<String>>,

    #[serde(rename = "not-allowed-nodes", skip_serializing_if = "Option::is_none")]
    pub not_allowed_nodes: Option<Box<models::LxcMigrateVmPreconditionResponseDataNotAllowedNodes>>,

    /// Determines if the container is running.
    #[serde(rename = "running")]
    pub running: models::PveBoolean,


}

impl LxcMigrateVmPreconditionResponseData {
    pub fn new(running: models::PveBoolean) -> LxcMigrateVmPreconditionResponseData {
        LxcMigrateVmPreconditionResponseData {
            
            allowed_nodes: None,
            
            dependent_ha_resources: None,
            
            not_allowed_nodes: None,
            
            running,
            
        }
    }
}