clientapi_pve/models/qemu_exec_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 QemuExecRequest {
16
17 /// The command as a list of program + arguments.
18 #[serde(rename = "command")]
19 pub command: Vec<String>,
20
21 /// Data to pass as 'input-data' to the guest. Usually treated as STDIN to 'command'.
22 #[serde(rename = "input-data", skip_serializing_if = "Option::is_none")]
23 pub input_data: Option<String>,
24
25
26}
27
28impl QemuExecRequest {
29 pub fn new(command: Vec<String>) -> QemuExecRequest {
30 QemuExecRequest {
31
32 command,
33
34 input_data: None,
35
36 }
37 }
38}
39
40