Skip to main content

incus_client/models/
instance_post_target.rs

1/*
2 * Incus external REST API
3 *
4 * This is the REST API used by all Incus clients. Internal endpoints aren't included in this documentation.  The Incus API is available over both a local unix+http and remote https API. Authentication for local users relies on group membership and access to the unix socket. For remote users, the default authentication method is TLS client certificates.
5 *
6 * The version of the OpenAPI document: 1.0
7 * Contact: lxc-devel@lists.linuxcontainers.org
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 InstancePostTarget {
16    /// The certificate of the migration target
17    #[serde(rename = "certificate", skip_serializing_if = "Option::is_none")]
18    pub certificate: Option<String>,
19    /// The operation URL on the remote target
20    #[serde(rename = "operation", skip_serializing_if = "Option::is_none")]
21    pub operation: Option<String>,
22    /// Migration websockets credentials
23    #[serde(rename = "secrets", skip_serializing_if = "Option::is_none")]
24    pub secrets: Option<std::collections::HashMap<String, String>>,
25}
26
27impl InstancePostTarget {
28    pub fn new() -> InstancePostTarget {
29        InstancePostTarget {
30            certificate: None,
31            operation: None,
32            secrets: None,
33        }
34    }
35}
36