Skip to main content

clientapi_pve/models/
cluster_mapping_update_pci_request.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 ClusterMappingUpdatePciRequest {
16
17    /// A list of settings you want to delete.
18    #[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
19    pub delete: Option<String>,
20
21    /// Description of the logical PCI device.
22    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
23    pub description: Option<String>,
24
25    /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.
26    #[serde(rename = "digest", skip_serializing_if = "Option::is_none")]
27    pub digest: Option<String>,
28
29    /// Marks the device(s) as being able to be live-migrated (Experimental). This needs hardware and driver support to work.
30    #[serde(rename = "live-migration-capable", skip_serializing_if = "Option::is_none")]
31    pub live_migration_capable: Option<models::PveBoolean>,
32
33    /// A list of maps for the cluster nodes.
34    #[serde(rename = "map", skip_serializing_if = "Option::is_none")]
35    pub map: Option<Vec<models::ClusterMappingCreatePciRequestMapInner>>,
36
37    /// Marks the device(s) as being capable of providing mediated devices.
38    #[serde(rename = "mdev", skip_serializing_if = "Option::is_none")]
39    pub mdev: Option<models::PveBoolean>,
40
41
42}
43
44impl ClusterMappingUpdatePciRequest {
45    pub fn new() -> ClusterMappingUpdatePciRequest {
46        ClusterMappingUpdatePciRequest {
47            
48            delete: None,
49            
50            description: None,
51            
52            digest: None,
53            
54            live_migration_capable: None,
55            
56            map: None,
57            
58            mdev: None,
59            
60        }
61    }
62}
63
64