diff --git a/sdk/storage/storage-blob/recordings/browsers/blob_versioning/recording_download_a_blob_version.json b/sdk/storage/storage-blob/recordings/browsers/blob_versioning/recording_download_a_blob_version.json index a0590ef9a1cb..ea8af7779ad2 100644 --- a/sdk/storage/storage-blob/recordings/browsers/blob_versioning/recording_download_a_blob_version.json +++ b/sdk/storage/storage-blob/recordings/browsers/blob_versioning/recording_download_a_blob_version.json @@ -2,7 +2,7 @@ "recordings": [ { "method": "PUT", - "url": "https://fakestorageaccount.blob.core.windows.net/container158459878429101895", + "url": "https://fakestorageaccount.blob.core.windows.net/container158472286918903504", "query": { "sip": "0.0.0.0-255.255.255.255", "restype": "container" @@ -12,18 +12,18 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Thu, 19 Mar 2020 06:19:44 GMT", - "etag": "\"0x8D7CBCD846946A8\"", - "last-modified": "Thu, 19 Mar 2020 06:19:44 GMT", + "date": "Fri, 20 Mar 2020 16:47:50 GMT", + "etag": "\"0x8D7CCEE6D6DE606\"", + "last-modified": "Fri, 20 Mar 2020 16:47:50 GMT", "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-client-request-id": "b4492630-92f7-4d2a-a9c1-84705599ef87", - "x-ms-request-id": "d85c6725-201e-0041-60b6-fd8226000000", + "x-ms-client-request-id": "470423fe-dd5b-4284-8e55-c5a0fb2424da", + "x-ms-request-id": "0f286783-701e-0011-75d7-fe4076000000", "x-ms-version": "2019-12-12" } }, { "method": "PUT", - "url": "https://fakestorageaccount.blob.core.windows.net/container158459878429101895/blob158459878477306095", + "url": "https://fakestorageaccount.blob.core.windows.net/container158472286918903504/blob158472287073207995", "query": { "sip": "0.0.0.0-255.255.255.255" }, @@ -33,21 +33,21 @@ "responseHeaders": { "content-length": "0", "content-md5": "sQqNsWTgdUEFt6mb5y4/5Q==", - "date": "Thu, 19 Mar 2020 06:19:44 GMT", - "etag": "\"0x8D7CBCD84B5A2CA\"", - "last-modified": "Thu, 19 Mar 2020 06:19:45 GMT", + "date": "Fri, 20 Mar 2020 16:47:50 GMT", + "etag": "\"0x8D7CCEE6DB97A18\"", + "last-modified": "Fri, 20 Mar 2020 16:47:51 GMT", "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-client-request-id": "3c029e74-401f-4f24-af9d-5db56c5075ad", + "x-ms-client-request-id": "f0379dcf-d8f6-486d-a3e2-53828622319e", "x-ms-content-crc64": "YeJLfssylmU=", - "x-ms-request-id": "d85c67fb-201e-0041-1ab6-fd8226000000", + "x-ms-request-id": "0f286a17-701e-0011-72d7-fe4076000000", "x-ms-request-server-encrypted": "true", "x-ms-version": "2019-12-12", - "x-ms-version-id": "2020-03-19T06:19:45.1444938Z" + "x-ms-version-id": "2020-03-20T16:47:51.1369240Z" } }, { "method": "PUT", - "url": "https://fakestorageaccount.blob.core.windows.net/container158459878429101895/blob158459878477306095", + "url": "https://fakestorageaccount.blob.core.windows.net/container158472286918903504/blob158472287073207995", "query": { "sip": "0.0.0.0-255.255.255.255" }, @@ -57,24 +57,24 @@ "responseHeaders": { "content-length": "0", "content-md5": "1B2M2Y8AsgTpgAmY7PhCfg==", - "date": "Thu, 19 Mar 2020 06:19:45 GMT", - "etag": "\"0x8D7CBCD84DC92D6\"", - "last-modified": "Thu, 19 Mar 2020 06:19:45 GMT", + "date": "Fri, 20 Mar 2020 16:47:51 GMT", + "etag": "\"0x8D7CCEE6DE4144A\"", + "last-modified": "Fri, 20 Mar 2020 16:47:51 GMT", "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-client-request-id": "43a4542e-a150-4639-b346-793c0410ee90", + "x-ms-client-request-id": "8214dd11-6eb6-432a-b053-c48687d25149", "x-ms-content-crc64": "AAAAAAAAAAA=", - "x-ms-request-id": "d85c6862-201e-0041-6fb6-fd8226000000", + "x-ms-request-id": "0f286b88-701e-0011-56d7-fe4076000000", "x-ms-request-server-encrypted": "true", "x-ms-version": "2019-12-12", - "x-ms-version-id": "2020-03-19T06:19:45.4006758Z" + "x-ms-version-id": "2020-03-20T16:47:51.4181236Z" } }, { "method": "GET", - "url": "https://fakestorageaccount.blob.core.windows.net/container158459878429101895/blob158459878477306095", + "url": "https://fakestorageaccount.blob.core.windows.net/container158472286918903504/blob158472287073207995", "query": { "sip": "0.0.0.0-255.255.255.255", - "versionid": "2020-03-19T06:19:45.1444938Z" + "versionid": "2020-03-20T16:47:51.1369240Z" }, "requestBody": null, "status": 200, @@ -84,25 +84,25 @@ "content-length": "11", "content-md5": "sQqNsWTgdUEFt6mb5y4/5Q==", "content-type": "application/octet-stream", - "date": "Thu, 19 Mar 2020 06:19:45 GMT", - "etag": "\"0x8D7CBCD84B5A2CA\"", - "last-modified": "Thu, 19 Mar 2020 06:19:45 GMT", + "date": "Fri, 20 Mar 2020 16:47:51 GMT", + "etag": "\"0x8D7CCEE6DB97A18\"", + "last-modified": "Fri, 20 Mar 2020 16:47:51 GMT", "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-blob-type": "BlockBlob", - "x-ms-client-request-id": "5e87a0c1-084a-44c2-b5bb-805f8fba18a7", - "x-ms-creation-time": "Thu, 19 Mar 2020 06:19:45 GMT", - "x-ms-request-id": "d85c6910-201e-0041-09b6-fd8226000000", + "x-ms-client-request-id": "b89738ae-eff5-43d0-acf6-6e6f99bda17e", + "x-ms-creation-time": "Fri, 20 Mar 2020 16:47:51 GMT", + "x-ms-request-id": "0f286df3-701e-0011-22d7-fe4076000000", "x-ms-server-encrypted": "true", "x-ms-version": "2019-12-12", - "x-ms-version-id": "2020-03-19T06:19:45.1444938Z" + "x-ms-version-id": "2020-03-20T16:47:51.1369240Z" } }, { "method": "GET", - "url": "https://fakestorageaccount.blob.core.windows.net/container158459878429101895/blob158459878477306095", + "url": "https://fakestorageaccount.blob.core.windows.net/container158472286918903504/blob158472287073207995", "query": { "sip": "0.0.0.0-255.255.255.255", - "versionid": "2020-03-19T06:19:45.4006758Z" + "versionid": "2020-03-20T16:47:51.4181236Z" }, "requestBody": null, "status": 200, @@ -112,23 +112,23 @@ "content-length": "0", "content-md5": "1B2M2Y8AsgTpgAmY7PhCfg==", "content-type": "application/octet-stream", - "date": "Thu, 19 Mar 2020 06:19:46 GMT", - "etag": "\"0x8D7CBCD84DC92D6\"", - "last-modified": "Thu, 19 Mar 2020 06:19:45 GMT", + "date": "Fri, 20 Mar 2020 16:47:52 GMT", + "etag": "\"0x8D7CCEE6DE4144A\"", + "last-modified": "Fri, 20 Mar 2020 16:47:51 GMT", "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-blob-type": "BlockBlob", - "x-ms-client-request-id": "d3feabb3-67ef-45aa-8a22-efd579dbfc25", - "x-ms-creation-time": "Thu, 19 Mar 2020 06:19:45 GMT", + "x-ms-client-request-id": "fc9f47f1-9561-4148-9b38-dbba2ceb96d9", + "x-ms-creation-time": "Fri, 20 Mar 2020 16:47:51 GMT", "x-ms-is-current-version": "true", - "x-ms-request-id": "d85c6a02-201e-0041-54b6-fd8226000000", + "x-ms-request-id": "0f287085-701e-0011-12d7-fe4076000000", "x-ms-server-encrypted": "true", "x-ms-version": "2019-12-12", - "x-ms-version-id": "2020-03-19T06:19:45.4006758Z" + "x-ms-version-id": "2020-03-20T16:47:51.4181236Z" } }, { "method": "DELETE", - "url": "https://fakestorageaccount.blob.core.windows.net/container158459878429101895", + "url": "https://fakestorageaccount.blob.core.windows.net/container158472286918903504", "query": { "sip": "0.0.0.0-255.255.255.255", "restype": "container" @@ -138,20 +138,20 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Thu, 19 Mar 2020 06:19:46 GMT", + "date": "Fri, 20 Mar 2020 16:47:52 GMT", "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-client-request-id": "5296bdf6-7f4b-46e5-8889-01f4bf72780e", - "x-ms-request-id": "d85c6aa6-201e-0041-63b6-fd8226000000", + "x-ms-client-request-id": "50b75a6e-bd17-4861-adc9-92f02236f773", + "x-ms-request-id": "0f287296-701e-0011-0ed7-fe4076000000", "x-ms-version": "2019-12-12" } } ], "uniqueTestInfo": { "uniqueName": { - "container": "container158459878429101895", - "blob": "blob158459878477306095" + "container": "container158472286918903504", + "blob": "blob158472287073207995" }, "newDate": {} }, - "hash": "d161a91364c1a8e1bbe859605811063d" + "hash": "8c7cb69114d7e5abeea0690257bb1fe1" } \ No newline at end of file diff --git a/sdk/storage/storage-blob/recordings/node/blob_versioning/recording_download_a_blob_version.js b/sdk/storage/storage-blob/recordings/node/blob_versioning/recording_download_a_blob_version.js index 439ed731cbf6..4ec8d9c949a6 100644 --- a/sdk/storage/storage-blob/recordings/node/blob_versioning/recording_download_a_blob_version.js +++ b/sdk/storage/storage-blob/recordings/node/blob_versioning/recording_download_a_blob_version.js @@ -1,48 +1,48 @@ let nock = require('nock'); -module.exports.hash = "14cd8d7d4719c90f047013bf0b362ab3"; +module.exports.hash = "ee99fdab9f827965e4e47d0a2601ab44"; -module.exports.testInfo = {"uniqueName":{"container":"container158459899682603969","blob":"blob158459899706506390"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"container":"container158472280465409921","blob":"blob158472280609502441"},"newDate":{}} nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) - .put('/container158459899682603969') + .put('/container158472280465409921') .query(true) .reply(201, "", [ 'Content-Length', '0', 'Last-Modified', - 'Thu, 19 Mar 2020 06:23:16 GMT', + 'Fri, 20 Mar 2020 16:46:45 GMT', 'ETag', - '"0x8D7CBCE02F36EB9"', + '"0x8D7CCEE46E331F1"', 'Server', 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', 'x-ms-request-id', - '775e3b03-b01e-0088-34b6-fd3fcb000000', + 'c1a967b8-101e-0017-01d7-fe73c9000000', 'x-ms-client-request-id', - '9f53a13f-8b77-4d1e-b43e-08062e3c7e2c', + 'f721189a-d6ef-4df6-9fe6-2b21a1307c52', 'x-ms-version', '2019-12-12', 'Date', - 'Thu, 19 Mar 2020 06:23:16 GMT' + 'Fri, 20 Mar 2020 16:46:45 GMT' ]); nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) - .put('/container158459899682603969/blob158459899706506390', "Hello World") + .put('/container158472280465409921/blob158472280609502441', "Hello World") .reply(201, "", [ 'Content-Length', '0', 'Content-MD5', 'sQqNsWTgdUEFt6mb5y4/5Q==', 'Last-Modified', - 'Thu, 19 Mar 2020 06:23:17 GMT', + 'Fri, 20 Mar 2020 16:46:46 GMT', 'ETag', - '"0x8D7CBCE031944A6"', + '"0x8D7CCEE472896F8"', 'Server', 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', 'x-ms-request-id', - '775e3b75-b01e-0088-0cb6-fd3fcb000000', + 'c1a96a28-101e-0017-52d7-fe73c9000000', 'x-ms-client-request-id', - '57b8615a-c595-4102-9350-4c81ac2e41f8', + '8a4c75f1-19dc-47f3-8381-f222ddb3abe0', 'x-ms-version', '2019-12-12', 'x-ms-content-crc64', @@ -50,28 +50,28 @@ nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParam 'x-ms-request-server-encrypted', 'true', 'x-ms-version-id', - '2020-03-19T06:23:17.1903654Z', + '2020-03-20T16:46:46.4339704Z', 'Date', - 'Thu, 19 Mar 2020 06:23:17 GMT' + 'Fri, 20 Mar 2020 16:46:45 GMT' ]); nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) - .put('/container158459899682603969/blob158459899706506390') + .put('/container158472280465409921/blob158472280609502441') .reply(201, "", [ 'Content-Length', '0', 'Content-MD5', '1B2M2Y8AsgTpgAmY7PhCfg==', 'Last-Modified', - 'Thu, 19 Mar 2020 06:23:17 GMT', + 'Fri, 20 Mar 2020 16:46:47 GMT', 'ETag', - '"0x8D7CBCE033D9C26"', + '"0x8D7CCEE4784352E"', 'Server', 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', 'x-ms-request-id', - '775e3ba8-b01e-0088-3bb6-fd3fcb000000', + 'c1a96d02-101e-0017-15d7-fe73c9000000', 'x-ms-client-request-id', - 'fd165d94-759f-4e75-91b8-aa878d80d658', + 'd71eaff1-7630-4231-bbe0-b454c62a09e9', 'x-ms-version', '2019-12-12', 'x-ms-content-crc64', @@ -79,13 +79,13 @@ nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParam 'x-ms-request-server-encrypted', 'true', 'x-ms-version-id', - '2020-03-19T06:23:17.4295350Z', + '2020-03-20T16:46:47.0363987Z', 'Date', - 'Thu, 19 Mar 2020 06:23:17 GMT' + 'Fri, 20 Mar 2020 16:46:46 GMT' ]); nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) - .get('/container158459899682603969/blob158459899706506390') + .get('/container158472280465409921/blob158472280609502441') .query(true) .reply(200, "Hello World", [ 'Content-Length', @@ -95,23 +95,23 @@ nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParam 'Content-MD5', 'sQqNsWTgdUEFt6mb5y4/5Q==', 'Last-Modified', - 'Thu, 19 Mar 2020 06:23:17 GMT', + 'Fri, 20 Mar 2020 16:46:46 GMT', 'Accept-Ranges', 'bytes', 'ETag', - '"0x8D7CBCE031944A6"', + '"0x8D7CCEE472896F8"', 'Server', 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', 'x-ms-request-id', - '775e3bee-b01e-0088-79b6-fd3fcb000000', + 'c1a96ff6-101e-0017-6bd7-fe73c9000000', 'x-ms-client-request-id', - 'eb8342c3-7ec5-46e8-aca3-d0a0630380c1', + 'c6eaa16f-2569-42f8-9e9d-3f5a9d988993', 'x-ms-version', '2019-12-12', 'x-ms-version-id', - '2020-03-19T06:23:17.1903654Z', + '2020-03-20T16:46:46.4339704Z', 'x-ms-creation-time', - 'Thu, 19 Mar 2020 06:23:17 GMT', + 'Fri, 20 Mar 2020 16:46:46 GMT', 'x-ms-blob-type', 'BlockBlob', 'x-ms-server-encrypted', @@ -121,11 +121,11 @@ nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParam 'Access-Control-Allow-Origin', '*', 'Date', - 'Thu, 19 Mar 2020 06:23:17 GMT' + 'Fri, 20 Mar 2020 16:46:46 GMT' ]); nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) - .get('/container158459899682603969/blob158459899706506390') + .get('/container158472280465409921/blob158472280609502441') .query(true) .reply(200, "", [ 'Content-Length', @@ -135,25 +135,25 @@ nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParam 'Content-MD5', '1B2M2Y8AsgTpgAmY7PhCfg==', 'Last-Modified', - 'Thu, 19 Mar 2020 06:23:17 GMT', + 'Fri, 20 Mar 2020 16:46:47 GMT', 'Accept-Ranges', 'bytes', 'ETag', - '"0x8D7CBCE033D9C26"', + '"0x8D7CCEE4784352E"', 'Server', 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', 'x-ms-request-id', - '775e3c2d-b01e-0088-2fb6-fd3fcb000000', + 'c1a971c9-101e-0017-2cd7-fe73c9000000', 'x-ms-client-request-id', - '10fb02c8-bf66-4be5-bfef-b7f5ea6ca9c5', + 'd90e48e3-ddab-434e-b534-8221de450a60', 'x-ms-version', '2019-12-12', 'x-ms-version-id', - '2020-03-19T06:23:17.4295350Z', + '2020-03-20T16:46:47.0363987Z', 'x-ms-is-current-version', 'true', 'x-ms-creation-time', - 'Thu, 19 Mar 2020 06:23:17 GMT', + 'Fri, 20 Mar 2020 16:46:47 GMT', 'x-ms-blob-type', 'BlockBlob', 'x-ms-server-encrypted', @@ -163,11 +163,11 @@ nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParam 'Access-Control-Allow-Origin', '*', 'Date', - 'Thu, 19 Mar 2020 06:23:17 GMT' + 'Fri, 20 Mar 2020 16:46:47 GMT' ]); nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) - .head('/container158459899682603969/blob158459899706506390') + .head('/container158472280465409921/blob158472280609502441') .query(true) .reply(200, "", [ 'Content-Length', @@ -177,23 +177,23 @@ nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParam 'Content-MD5', 'sQqNsWTgdUEFt6mb5y4/5Q==', 'Last-Modified', - 'Thu, 19 Mar 2020 06:23:17 GMT', + 'Fri, 20 Mar 2020 16:46:46 GMT', 'Accept-Ranges', 'bytes', 'ETag', - '"0x8D7CBCE031944A6"', + '"0x8D7CCEE472896F8"', 'Server', 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', 'x-ms-request-id', - '775e3c7a-b01e-0088-75b6-fd3fcb000000', + 'c1a9736b-101e-0017-34d7-fe73c9000000', 'x-ms-client-request-id', - '5db15ebf-43c7-40ca-8024-490585102ad3', + 'f071747b-cb9d-4732-80ac-c32e733cf8fc', 'x-ms-version', '2019-12-12', 'x-ms-version-id', - '2020-03-19T06:23:17.1903654Z', + '2020-03-20T16:46:46.4339704Z', 'x-ms-creation-time', - 'Thu, 19 Mar 2020 06:23:17 GMT', + 'Fri, 20 Mar 2020 16:46:46 GMT', 'x-ms-blob-type', 'BlockBlob', 'x-ms-server-encrypted', @@ -207,11 +207,11 @@ nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParam 'Access-Control-Allow-Origin', '*', 'Date', - 'Thu, 19 Mar 2020 06:23:17 GMT' + 'Fri, 20 Mar 2020 16:46:47 GMT' ]); nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) - .get('/container158459899682603969/blob158459899706506390') + .get('/container158472280465409921/blob158472280609502441') .query(true) .reply(206, "Hello World", [ 'Content-Length', @@ -221,23 +221,23 @@ nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParam 'Content-Range', 'bytes 0-10/11', 'Last-Modified', - 'Thu, 19 Mar 2020 06:23:17 GMT', + 'Fri, 20 Mar 2020 16:46:46 GMT', 'Accept-Ranges', 'bytes', 'ETag', - '"0x8D7CBCE031944A6"', + '"0x8D7CCEE472896F8"', 'Server', 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', 'x-ms-request-id', - '775e3cc1-b01e-0088-38b6-fd3fcb000000', + 'c1a97501-101e-0017-3cd7-fe73c9000000', 'x-ms-client-request-id', - '58e8105e-358e-4f32-ad02-95e5f567a9a6', + 'a08075b3-d079-412c-98b3-7b22caedaeaf', 'x-ms-version', '2019-12-12', 'x-ms-version-id', - '2020-03-19T06:23:17.1903654Z', + '2020-03-20T16:46:46.4339704Z', 'x-ms-creation-time', - 'Thu, 19 Mar 2020 06:23:17 GMT', + 'Fri, 20 Mar 2020 16:46:46 GMT', 'x-ms-blob-content-md5', 'sQqNsWTgdUEFt6mb5y4/5Q==', 'x-ms-blob-type', @@ -249,11 +249,11 @@ nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParam 'Access-Control-Allow-Origin', '*', 'Date', - 'Thu, 19 Mar 2020 06:23:18 GMT' + 'Fri, 20 Mar 2020 16:46:47 GMT' ]); nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) - .delete('/container158459899682603969') + .delete('/container158472280465409921') .query(true) .reply(202, "", [ 'Content-Length', @@ -261,11 +261,11 @@ nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParam 'Server', 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', 'x-ms-request-id', - '775e3d17-b01e-0088-03b6-fd3fcb000000', + 'c1a97758-101e-0017-7cd7-fe73c9000000', 'x-ms-client-request-id', - 'a419de47-975b-4fa2-b87f-b57421f28c89', + '4b1fa8c1-90b0-4fc0-8035-176a2ff695c0', 'x-ms-version', '2019-12-12', 'Date', - 'Thu, 19 Mar 2020 06:23:18 GMT' + 'Fri, 20 Mar 2020 16:46:48 GMT' ]); diff --git a/sdk/storage/storage-blob/review/storage-blob.api.md b/sdk/storage/storage-blob/review/storage-blob.api.md index 9a60949d1639..e3cbe4fa6434 100644 --- a/sdk/storage/storage-blob/review/storage-blob.api.md +++ b/sdk/storage/storage-blob/review/storage-blob.api.md @@ -505,6 +505,7 @@ export interface BlobDownloadHeaders { }; requestId?: string; version?: string; + versionId?: string; } // @public diff --git a/sdk/storage/storage-blob/src/BlobDownloadResponse.ts b/sdk/storage/storage-blob/src/BlobDownloadResponse.ts index 05ff11a329ed..1f11f951f733 100644 --- a/sdk/storage/storage-blob/src/BlobDownloadResponse.ts +++ b/sdk/storage/storage-blob/src/BlobDownloadResponse.ts @@ -413,7 +413,7 @@ export class BlobDownloadResponse implements BlobDownloadResponseModel { } /** - * Indicates the version of the File service used + * Indicates the version of the Blob service used * to execute the request. * * @readonly @@ -424,6 +424,17 @@ export class BlobDownloadResponse implements BlobDownloadResponseModel { return this.originalResponse.version; } + /** + * Indicates the versionId of the downloaded blob version. + * + * @readonly + * @type {(string | undefined)} + * @memberof BlobDownloadResponse + */ + public get versionId(): string | undefined { + return this.originalResponse.versionId; + } + /** * The SHA-256 hash of the encryption key used to encrypt the blob. This value is only returned * when the blob was encrypted with a customer-provided key. diff --git a/sdk/storage/storage-blob/src/generated/src/models/index.ts b/sdk/storage/storage-blob/src/generated/src/models/index.ts index 8ea924c69889..c512eed7160b 100644 --- a/sdk/storage/storage-blob/src/generated/src/models/index.ts +++ b/sdk/storage/storage-blob/src/generated/src/models/index.ts @@ -4117,6 +4117,12 @@ export interface BlobDownloadHeaders { * for requests made against version 2009-09-19 and above. */ version?: string; + /** + * A DateTime value returned by the service that uniquely identifies the blob. The value of this + * header indicates the blob version, and may be used in subsequent requests to access this + * version of the blob. + */ + versionId?: string; /** * Indicates that the service supports requests for partial blob content. */ diff --git a/sdk/storage/storage-blob/src/generated/src/models/mappers.ts b/sdk/storage/storage-blob/src/generated/src/models/mappers.ts index 6e0966d27cb3..d4b09d434705 100644 --- a/sdk/storage/storage-blob/src/generated/src/models/mappers.ts +++ b/sdk/storage/storage-blob/src/generated/src/models/mappers.ts @@ -3505,6 +3505,12 @@ export const BlobDownloadHeaders: coreHttp.CompositeMapper = { name: "String" } }, + versionId: { + serializedName: "x-ms-version-id", + type: { + name: "String" + } + }, acceptRanges: { serializedName: "accept-ranges", type: { diff --git a/sdk/storage/storage-blob/test/blobversioning.spec.ts b/sdk/storage/storage-blob/test/blobversioning.spec.ts index a5d6652f6b71..5cdbea4653fa 100644 --- a/sdk/storage/storage-blob/test/blobversioning.spec.ts +++ b/sdk/storage/storage-blob/test/blobversioning.spec.ts @@ -92,11 +92,13 @@ describe("Blob versioning", () => { versionId: uploadRes.versionId }); assert.deepStrictEqual(await bodyToString(downloadRes, content.length), content); + assert.deepStrictEqual(downloadRes.versionId, uploadRes.versionId); const downloadRes2 = await blobClient.download(undefined, undefined, { versionId: uploadRes2.versionId }); assert.deepStrictEqual(await bodyToString(downloadRes2), ""); + assert.deepStrictEqual(downloadRes2.versionId, uploadRes2.versionId); if (isNode) { const downloadToBufferRes = await blobClient.downloadToBuffer(undefined, undefined, {