Skip to content

Commit

Permalink
Merge pull request #198 from ganeshshrivas/access_tier_info
Browse files Browse the repository at this point in the history
added access tier information and creation time of blob in response
  • Loading branch information
katmsft authored Oct 28, 2021
2 parents f966ead + c59969b commit 7296878
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 7296878

Please sign in to comment.