incus_client/models/instance_console_post.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 InstanceConsolePost {
16 /// Forces a connection to the console
17 #[serde(rename = "force", skip_serializing_if = "Option::is_none")]
18 pub force: Option<bool>,
19 /// Console height in rows (console type only)
20 #[serde(rename = "height", skip_serializing_if = "Option::is_none")]
21 pub height: Option<i64>,
22 /// Type of console to attach to (console or vga)
23 #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
24 pub r#type: Option<String>,
25 /// Console width in columns (console type only)
26 #[serde(rename = "width", skip_serializing_if = "Option::is_none")]
27 pub width: Option<i64>,
28}
29
30impl InstanceConsolePost {
31 pub fn new() -> InstanceConsolePost {
32 InstanceConsolePost {
33 force: None,
34 height: None,
35 r#type: None,
36 width: None,
37 }
38 }
39}
40