Skip to main content

clientapi_pve/models/
nodes_capabilities_get_cpu_response_data_inner.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 NodesCapabilitiesGetCpuResponseDataInner {
16
17    /// True for PVE-internal abstract profiles like x86-64-v2, -v3, -v4. These do not correspond to a QEMU CPU type and cannot be used as a custom model's 'reported-model'.
18    #[serde(rename = "abstract", skip_serializing_if = "Option::is_none")]
19    pub r#abstract: Option<models::PveBoolean>,
20
21    /// True if this is a custom CPU model.
22    #[serde(rename = "custom")]
23    pub custom: models::PveBoolean,
24
25    /// Name of the CPU model. Identifies it for subsequent API calls. Prefixed with 'custom-' for custom models.
26    #[serde(rename = "name")]
27    pub name: String,
28
29    /// CPU vendor visible to the guest when this model is selected. Vendor of 'reported-model' in case of custom models.
30    #[serde(rename = "vendor")]
31    pub vendor: String,
32
33
34}
35
36impl NodesCapabilitiesGetCpuResponseDataInner {
37    pub fn new(custom: models::PveBoolean, name: String, vendor: String) -> NodesCapabilitiesGetCpuResponseDataInner {
38        NodesCapabilitiesGetCpuResponseDataInner {
39            
40            r#abstract: None,
41            
42            custom,
43            
44            name,
45            
46            vendor,
47            
48        }
49    }
50}
51
52