proxmox_api/generated/nodes/node/qemu/vmid/
mtunnel.rs

1pub struct MtunnelClient<T> {
2    client: T,
3    path: String,
4}
5impl<T> MtunnelClient<T>
6where
7    T: crate::client::Client,
8{
9    pub fn new(client: T, parent_path: &str) -> Self {
10        Self {
11            client,
12            path: format!("{}{}", parent_path, "/mtunnel"),
13        }
14    }
15}
16impl<T> MtunnelClient<T>
17where
18    T: crate::client::Client,
19{
20    #[doc = "Migration tunnel endpoint - only for internal use by VM migration."]
21    pub fn post(&self, params: PostParams) -> Result<(), T::Error> {
22        let path = self.path.to_string();
23        self.client.post(&path, &params)
24    }
25}
26#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize, Default)]
27pub struct PostParams {
28    #[serde(skip_serializing_if = "Option::is_none", default)]
29    #[doc = "List of network bridges to check availability. Will be checked again for actually used bridges during migration."]
30    pub bridges: Option<String>,
31    #[serde(skip_serializing_if = "Option::is_none", default)]
32    #[doc = "List of storages to check permission and availability. Will be checked again for all actually used storages during migration."]
33    pub storages: Option<String>,
34    #[serde(
35        flatten,
36        default,
37        skip_serializing_if = "::std::collections::HashMap::is_empty"
38    )]
39    pub additional_properties: ::std::collections::HashMap<String, ::serde_json::Value>,
40}