clientapi_pve/models/nodes_spiceshell_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 NodesSpiceshellRequest {
16
17 /// Run specific command or default to login (requires 'root@pam')
18 #[serde(rename = "cmd", skip_serializing_if = "Option::is_none")]
19 pub cmd: Option<models::PveCmdEnum>,
20
21 /// Add parameters to a command. Encoded as null terminated strings.
22 #[serde(rename = "cmd-opts", skip_serializing_if = "Option::is_none")]
23 pub cmd_opts: Option<String>,
24
25 /// 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).
26 #[serde(rename = "proxy", skip_serializing_if = "Option::is_none")]
27 pub proxy: Option<String>,
28
29
30}
31
32impl NodesSpiceshellRequest {
33 pub fn new() -> NodesSpiceshellRequest {
34 NodesSpiceshellRequest {
35
36 cmd: None,
37
38 cmd_opts: None,
39
40 proxy: None,
41
42 }
43 }
44}
45
46