clientapi_pve/models/nodes_execute_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 NodesExecuteRequest {
16
17 /// JSON encoded array of commands, where each command is an object with the following properties: args: <object> A set of parameter names and their values. method: (GET|POST|PUT|DELETE) A method related to the API endpoint (GET, POST etc.). path: <string> A relative path to an API endpoint on this node.
18 #[serde(rename = "commands")]
19 pub commands: String,
20
21
22}
23
24impl NodesExecuteRequest {
25 pub fn new(commands: String) -> NodesExecuteRequest {
26 NodesExecuteRequest {
27
28 commands,
29
30 }
31 }
32}
33
34