Skip to main content

clientapi_pve/models/
version_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 VersionVersionResponseData {
16
17    /// The default console viewer to use.
18    #[serde(rename = "console", skip_serializing_if = "Option::is_none")]
19    pub console: Option<models::PveConsoleEnum>,
20
21    /// The current Proxmox VE point release in `x.y` format.
22    #[serde(rename = "release")]
23    pub release: String,
24
25    /// The short git revision from which this version was build.
26    #[serde(rename = "repoid")]
27    pub repoid: String,
28
29    /// The full pve-manager package version of this node.
30    #[serde(rename = "version")]
31    pub version: String,
32
33
34}
35
36impl VersionVersionResponseData {
37    pub fn new(release: String, repoid: String, version: String) -> VersionVersionResponseData {
38        VersionVersionResponseData {
39            
40            console: None,
41            
42            release,
43            
44            repoid,
45            
46            version,
47            
48        }
49    }
50}
51
52