[pbs-devel] [PATCH proxmox v4 4/4] s3 client: api types: add bucket list item type
Christian Ebner
c.ebner at proxmox.com
Thu Jul 31 14:58:54 CEST 2025
Define a dedicated API type to be used in bucket list responses
from the PBS api.
Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
Reviewed-by: Lukas Wagner <l.wagner at proxmox.com>
Tested-by: Lukas Wagner <l.wagner at proxmox.com>
---
changes since version 3:
- no changes
proxmox-s3-client/src/api_types.rs | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/proxmox-s3-client/src/api_types.rs b/proxmox-s3-client/src/api_types.rs
index 4a589717..265fedb9 100644
--- a/proxmox-s3-client/src/api_types.rs
+++ b/proxmox-s3-client/src/api_types.rs
@@ -191,3 +191,18 @@ pub struct S3ClientConfigWithoutSecret {
#[serde(flatten)]
pub config: S3ClientConfig,
}
+
+#[api(
+ properties: {
+ name: {
+ schema: S3_BUCKET_NAME_SCHEMA,
+ },
+ },
+)]
+#[derive(Serialize, Deserialize, Clone, PartialEq)]
+#[serde(rename_all = "kebab-case")]
+/// S3 bucket list item.
+pub struct S3BucketListItem {
+ /// S3 bucket name.
+ pub name: String,
+}
--
2.47.2
More information about the pbs-devel
mailing list