[pdm-devel] [PATCH proxmox 2/3] pve-api-types: regenerate

Stefan Hanreich s.hanreich at proxmox.com
Fri Nov 7 15:40:07 CET 2025


Signed-off-by: Stefan Hanreich <s.hanreich at proxmox.com>
---
 pve-api-types/src/generated/types.rs | 48 ++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/pve-api-types/src/generated/types.rs b/pve-api-types/src/generated/types.rs
index 6c42b620..ea539ccc 100644
--- a/pve-api-types/src/generated/types.rs
+++ b/pve-api-types/src/generated/types.rs
@@ -759,6 +759,14 @@ fn test_regex_compilation_4() {
             optional: true,
             type: Integer,
         },
+        network: {
+            optional: true,
+            type: String,
+        },
+        network_type: {
+            optional: true,
+            type: ClusterResourceNetworkType,
+        },
         node: {
             format: &ApiStringFormat::Pattern(&CLUSTER_RESOURCE_NODE_RE),
             optional: true,
@@ -772,6 +780,10 @@ fn test_regex_compilation_4() {
             optional: true,
             type: String,
         },
+        protocol: {
+            optional: true,
+            type: String,
+        },
         sdn: {
             optional: true,
             type: String,
@@ -806,6 +818,10 @@ fn test_regex_compilation_4() {
             optional: true,
             type: Integer,
         },
+        zone_type: {
+            optional: true,
+            type: String,
+        },
     },
 )]
 /// Object.
@@ -906,6 +922,13 @@ pub struct ClusterResource {
     #[serde(default, skip_serializing_if = "Option::is_none")]
     pub netout: Option<i64>,
 
+    /// The name of a Network entity (for type 'network').
+    #[serde(default, skip_serializing_if = "Option::is_none")]
+    pub network: Option<String>,
+
+    #[serde(default, skip_serializing_if = "Option::is_none")]
+    pub network_type: Option<ClusterResourceNetworkType>,
+
     /// The cluster node name (for types 'node', 'storage', 'qemu', and 'lxc').
     #[serde(default, skip_serializing_if = "Option::is_none")]
     pub node: Option<String>,
@@ -918,6 +941,10 @@ pub struct ClusterResource {
     #[serde(default, skip_serializing_if = "Option::is_none")]
     pub pool: Option<String>,
 
+    /// The protocol of a fabric (for type 'network', network_type 'fabric').
+    #[serde(default, skip_serializing_if = "Option::is_none")]
+    pub protocol: Option<String>,
+
     /// The name of an SDN entity (for type 'sdn')
     #[serde(default, skip_serializing_if = "Option::is_none")]
     pub sdn: Option<String>,
@@ -952,6 +979,10 @@ pub struct ClusterResource {
     #[serde(deserialize_with = "proxmox_serde::perl::deserialize_u32")]
     #[serde(default, skip_serializing_if = "Option::is_none")]
     pub vmid: Option<u32>,
+
+    /// The type of an SDN zone (for type 'sdn').
+    #[serde(default, skip_serializing_if = "Option::is_none")]
+    pub zone_type: Option<String>,
 }
 
 #[api]
@@ -974,6 +1005,20 @@ pub enum ClusterResourceKind {
 serde_plain::derive_display_from_serialize!(ClusterResourceKind);
 serde_plain::derive_fromstr_from_deserialize!(ClusterResourceKind);
 
+#[api]
+/// The type of network resource (for type 'network').
+#[derive(Clone, Copy, Debug, Eq, PartialEq, serde::Deserialize, serde::Serialize)]
+pub enum ClusterResourceNetworkType {
+    #[serde(rename = "fabric")]
+    /// fabric.
+    Fabric,
+    #[serde(rename = "zone")]
+    /// zone.
+    Zone,
+}
+serde_plain::derive_display_from_serialize!(ClusterResourceNetworkType);
+serde_plain::derive_fromstr_from_deserialize!(ClusterResourceNetworkType);
+
 #[api]
 /// Resource type.
 #[derive(Clone, Copy, Debug, Eq, PartialEq, serde::Deserialize, serde::Serialize)]
@@ -999,6 +1044,9 @@ pub enum ClusterResourceType {
     #[serde(rename = "sdn")]
     /// sdn.
     Sdn,
+    #[serde(rename = "network")]
+    /// network.
+    Network,
 }
 serde_plain::derive_display_from_serialize!(ClusterResourceType);
 serde_plain::derive_fromstr_from_deserialize!(ClusterResourceType);
-- 
2.47.3




More information about the pdm-devel mailing list