Skip to main content

clientapi_pve/models/
nodes_version_response_data.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 NodesVersionResponseData {
16
17    /// The current installed Proxmox VE Release
18    #[serde(rename = "release")]
19    pub release: String,
20
21    /// The short git commit hash ID from which this version was build
22    #[serde(rename = "repoid")]
23    pub repoid: String,
24
25    /// The current installed pve-manager package version
26    #[serde(rename = "version")]
27    pub version: String,
28
29
30}
31
32impl NodesVersionResponseData {
33    pub fn new(release: String, repoid: String, version: String) -> NodesVersionResponseData {
34        NodesVersionResponseData {
35            
36            release,
37            
38            repoid,
39            
40            version,
41            
42        }
43    }
44}
45
46