From 6db32914abc64b0863c7d18f691ca5be2f7f0127 Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Thu, 24 Sep 2020 18:02:02 +0800 Subject: [PATCH] lastAccessed in BlobDownloadResponse wrapper --- sdk/storage/storage-blob/src/BlobDownloadResponse.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sdk/storage/storage-blob/src/BlobDownloadResponse.ts b/sdk/storage/storage-blob/src/BlobDownloadResponse.ts index 88ffdb662741..c88dd35bcb50 100644 --- a/sdk/storage/storage-blob/src/BlobDownloadResponse.ts +++ b/sdk/storage/storage-blob/src/BlobDownloadResponse.ts @@ -388,6 +388,18 @@ export class BlobDownloadResponse implements BlobDownloadResponseParsed { return this.originalResponse.lastModified; } + /** + * Returns the UTC date and time generated by the service that indicates the time at which the blob was + * last read or written to. + * + * @readonly + * @type {(Date | undefined)} + * @memberof BlobDownloadResponse + */ + public get lastAccessed(): Date | undefined { + return this.originalResponse.lastAccessed; + } + /** * A name-value pair * to associate with a file storage object.