Skip to content

Commit

Permalink
added access tier information and creation time of blob in response
Browse files Browse the repository at this point in the history
  • Loading branch information
ganesh-kumolus committed Sep 15, 2021
1 parent 20a6898 commit c59969b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions blob/lib/azure/storage/blob/serialization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit c59969b

Please sign in to comment.