Skip to content

Commit 222f1d4

Browse files
authored
Fixes metadata for list blobs not populated (#350)
Change-type: patch Signed-off-by: Andreas Fitzek <andreas.fitzek@reactivereality.com>
1 parent 02b9624 commit 222f1d4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

sdk/storage/src/blob/blob/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ pub struct Blob {
104104
pub is_current_version: Option<bool>,
105105
pub deleted: Option<bool>,
106106
pub properties: BlobProperties,
107+
pub metadata: Option<HashMap<String, String>>,
107108
pub tags: Option<Tags>,
108109
}
109110

@@ -193,7 +194,6 @@ pub struct BlobProperties {
193194
pub remaining_retention_days: Option<u32>,
194195
pub tag_count: Option<u32>,
195196
pub rehydrate_priority: Option<RehydratePriority>,
196-
pub metadata: Option<HashMap<String, String>>,
197197
#[serde(flatten)]
198198
extra: HashMap<String, String>, // For debug purposes, should be compiled out in the future
199199
}
@@ -386,9 +386,9 @@ impl Blob {
386386
remaining_retention_days: None, // TODO: Not present or documentation bug?
387387
tag_count: None, // TODO
388388
rehydrate_priority: None, // TODO
389-
metadata,
390389
extra: HashMap::new(),
391390
},
391+
metadata,
392392
tags: None,
393393
})
394394
}

sdk/storage/src/blob/blob/responses/list_blobs_response.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ mod tests {
9595
<LeaseState>available</LeaseState>
9696
<ServerEncrypted>true</ServerEncrypted>
9797
</Properties>
98+
<Metadata><userkey>uservalue</userkey></Metadata>
9899
<OrMetadata />
99100
</Blob>
100101
<Blob>

0 commit comments

Comments
 (0)