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

    /// HA resources, which are blocking the given HA resource from being migrated to the requested target node.
    #[serde(rename = "blocking-resources", skip_serializing_if = "Option::is_none")]
    pub blocking_resources: Option<Vec<models::ClusterHaMigrateResponseDataBlockingResourcesInner>>,

    /// HA resources, which are migrated to the same requested target node as the given HA resource, because these are in positive affinity with the HA resource.
    #[serde(rename = "comigrated-resources", skip_serializing_if = "Option::is_none")]
    pub comigrated_resources: Option<Vec<serde_json::Value>>,

    /// Node, which was requested to be migrated to.
    #[serde(rename = "requested-node")]
    pub requested_node: String,

    /// HA resource, which is requested to be migrated.
    #[serde(rename = "sid")]
    pub sid: String,


}

impl ClusterHaMigrateResponseData {
    pub fn new(requested_node: String, sid: String) -> ClusterHaMigrateResponseData {
        ClusterHaMigrateResponseData {
            
            blocking_resources: None,
            
            comigrated_resources: None,
            
            requested_node,
            
            sid,
            
        }
    }
}