From c59969b008aa46a8f945b09b4a2374b8d388187f Mon Sep 17 00:00:00 2001 From: ganeshshrivas Date: Wed, 15 Sep 2021 11:07:13 +0530 Subject: [PATCH] added access tier information and creation time of blob in response --- blob/lib/azure/storage/blob/serialization.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/blob/lib/azure/storage/blob/serialization.rb b/blob/lib/azure/storage/blob/serialization.rb index 04d5a04b..db08559a 100644 --- a/blob/lib/azure/storage/blob/serialization.rb +++ b/blob/lib/azure/storage/blob/serialization.rb @@ -199,6 +199,9 @@ def self.blob_properties_from_xml(xml) props = {} + props[:access_tier] = (xml > "AccessTier").text if (xml > "AccessTier").any? + props[:access_tier_change_time] = (xml > "AccessTierChangeTime").text if (xml > "AccessTierChangeTime").any? + props[:creation_Time] = (xml > "Creation-Time").text if (xml > "Creation-Time").any? props[:last_modified] = (xml > "Last-Modified").text if (xml > "Last-Modified").any? props[:etag] = xml.Etag.text if (xml > "Etag").any? props[:lease_status] = xml.LeaseStatus.text if (xml > "LeaseStatus").any?