clientapi_pve/models/lxc_spiceproxy_request.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 LxcSpiceproxyRequest {
16
17 /// SPICE proxy server. This can be used by the client to specify the proxy server. All nodes in a cluster runs 'spiceproxy', so it is up to the client to choose one. By default, we return the node where the VM is currently running. As reasonable setting is to use same node you use to connect to the API (This is window.location.hostname for the JS GUI).
18 #[serde(rename = "proxy", skip_serializing_if = "Option::is_none")]
19 pub proxy: Option<String>,
20
21
22}
23
24impl LxcSpiceproxyRequest {
25 pub fn new() -> LxcSpiceproxyRequest {
26 LxcSpiceproxyRequest {
27
28 proxy: None,
29
30 }
31 }
32}
33
34