From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 4B3351FF16B for ; Fri, 7 Nov 2025 15:39:41 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id D806215030; Fri, 7 Nov 2025 15:40:22 +0100 (CET) From: Stefan Hanreich To: pdm-devel@lists.proxmox.com Date: Fri, 7 Nov 2025 15:40:07 +0100 Message-ID: <20251107144018.700695-3-s.hanreich@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251107144018.700695-1-s.hanreich@proxmox.com> References: <20251107144018.700695-1-s.hanreich@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.174 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods RDNS_NONE 0.793 Delivered to internal network by a host with no rDNS SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record Subject: [pdm-devel] [PATCH proxmox 2/3] pve-api-types: regenerate X-BeenThere: pdm-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Datacenter Manager development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pdm-devel-bounces@lists.proxmox.com Sender: "pdm-devel" Signed-off-by: Stefan Hanreich --- 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, + /// The name of a Network entity (for type 'network'). + #[serde(default, skip_serializing_if = "Option::is_none")] + pub network: Option, + + #[serde(default, skip_serializing_if = "Option::is_none")] + pub network_type: Option, + /// The cluster node name (for types 'node', 'storage', 'qemu', and 'lxc'). #[serde(default, skip_serializing_if = "Option::is_none")] pub node: Option, @@ -918,6 +941,10 @@ pub struct ClusterResource { #[serde(default, skip_serializing_if = "Option::is_none")] pub pool: Option, + /// The protocol of a fabric (for type 'network', network_type 'fabric'). + #[serde(default, skip_serializing_if = "Option::is_none")] + pub protocol: Option, + /// The name of an SDN entity (for type 'sdn') #[serde(default, skip_serializing_if = "Option::is_none")] pub sdn: Option, @@ -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, + + /// The type of an SDN zone (for type 'sdn'). + #[serde(default, skip_serializing_if = "Option::is_none")] + pub zone_type: Option, } #[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 _______________________________________________ pdm-devel mailing list pdm-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel