From: Dominik Csapak <d.csapak@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [pdm-devel] [PATCH proxmox-api-types 2/2] regenerate
Date: Fri, 29 Aug 2025 12:06:52 +0200 [thread overview]
Message-ID: <20250829100702.1123171-2-d.csapak@proxmox.com> (raw)
In-Reply-To: <20250829100702.1123171-1-d.csapak@proxmox.com>
regenerate with the custom struct for NodeStatusMemory
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
pve-api-types/src/generated/types.rs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/pve-api-types/src/generated/types.rs b/pve-api-types/src/generated/types.rs
index 71a2770..a9f4dfb 100644
--- a/pve-api-types/src/generated/types.rs
+++ b/pve-api-types/src/generated/types.rs
@@ -3670,6 +3670,7 @@ pub struct NodeStatusCurrentKernel {
#[api(
properties: {
available: {
+ optional: true,
type: Integer,
},
free: {
@@ -3688,7 +3689,8 @@ pub struct NodeStatusCurrentKernel {
pub struct NodeStatusMemory {
/// The available memory in bytes.
#[serde(deserialize_with = "proxmox_serde::perl::deserialize_i64")]
- pub available: i64,
+ #[serde(default, skip_serializing_if = "Option::is_none")]
+ pub available: Option<i64>,
/// The free memory in bytes.
#[serde(deserialize_with = "proxmox_serde::perl::deserialize_i64")]
--
2.47.2
_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
next prev parent reply other threads:[~2025-08-29 10:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-29 10:06 [pdm-devel] [PATCH proxmox-api-types 1/2] fix PVE8 node status API call Dominik Csapak
2025-08-29 10:06 ` Dominik Csapak [this message]
2025-09-01 12:26 ` [pdm-devel] applied-series: " Wolfgang Bumiller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250829100702.1123171-2-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pdm-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox