/*
* Proxmox Virtual Environment API
*
* Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
*
* The version of the OpenAPI document: 9.x
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct NodesExecuteRequest {
/// 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.
#[serde(rename = "commands")]
pub commands: String,
}
impl NodesExecuteRequest {
pub fn new(commands: String) -> NodesExecuteRequest {
NodesExecuteRequest {
commands,
}
}
}