Skip to main content

clientapi_pve/models/
nodes_vncshell_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 NodesVncshellRequest {
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    /// sets the height of the console in pixels.
26    #[serde(rename = "height", skip_serializing_if = "Option::is_none")]
27    pub height: Option<i32>,
28
29    /// use websocket instead of standard vnc.
30    #[serde(rename = "websocket", skip_serializing_if = "Option::is_none")]
31    pub websocket: Option<models::PveBoolean>,
32
33    /// sets the width of the console in pixels.
34    #[serde(rename = "width", skip_serializing_if = "Option::is_none")]
35    pub width: Option<i32>,
36
37
38}
39
40impl NodesVncshellRequest {
41    pub fn new() -> NodesVncshellRequest {
42        NodesVncshellRequest {
43            
44            cmd: None,
45            
46            cmd_opts: None,
47            
48            height: None,
49            
50            websocket: None,
51            
52            width: None,
53            
54        }
55    }
56}
57
58