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
/*
* 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,
}
}
}