Skip to main content

clientapi_pve/models/
nodes_status_status_response_data_cpuinfo.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 NodesStatusStatusResponseDataCpuinfo {
16
17    /// The number of physical cores of the CPU.
18    #[serde(rename = "cores")]
19    pub cores: i64,
20
21    /// The number of logical threads of the CPU.
22    #[serde(rename = "cpus")]
23    pub cpus: i64,
24
25    /// The CPU model
26    #[serde(rename = "model")]
27    pub model: String,
28
29    /// The number of logical threads of the CPU.
30    #[serde(rename = "sockets")]
31    pub sockets: i64,
32
33
34}
35
36impl NodesStatusStatusResponseDataCpuinfo {
37    pub fn new(cores: i64, cpus: i64, model: String, sockets: i64) -> NodesStatusStatusResponseDataCpuinfo {
38        NodesStatusStatusResponseDataCpuinfo {
39            
40            cores,
41            
42            cpus,
43            
44            model,
45            
46            sockets,
47            
48        }
49    }
50}
51
52