Skip to main content

clientapi_pve/models/
cluster_ha_migrate_response_data.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 ClusterHaMigrateResponseData {
16
17    /// HA resources, which are blocking the given HA resource from being migrated to the requested target node.
18    #[serde(rename = "blocking-resources", skip_serializing_if = "Option::is_none")]
19    pub blocking_resources: Option<Vec<models::ClusterHaMigrateResponseDataBlockingResourcesInner>>,
20
21    /// 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.
22    #[serde(rename = "comigrated-resources", skip_serializing_if = "Option::is_none")]
23    pub comigrated_resources: Option<Vec<serde_json::Value>>,
24
25    /// Node, which was requested to be migrated to.
26    #[serde(rename = "requested-node")]
27    pub requested_node: String,
28
29    /// HA resource, which is requested to be migrated.
30    #[serde(rename = "sid")]
31    pub sid: String,
32
33
34}
35
36impl ClusterHaMigrateResponseData {
37    pub fn new(requested_node: String, sid: String) -> ClusterHaMigrateResponseData {
38        ClusterHaMigrateResponseData {
39            
40            blocking_resources: None,
41            
42            comigrated_resources: None,
43            
44            requested_node,
45            
46            sid,
47            
48        }
49    }
50}
51
52