From 43ba580d0319cd535279e022d0b587eed2bdf95d Mon Sep 17 00:00:00 2001 From: seanmcc-msft Date: Wed, 16 Oct 2019 20:08:15 -0700 Subject: [PATCH 1/2] Updated ContentMD5 parameter in DataLake swagger --- .../stable/2018-11-09/DataLakeStorage.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/storage/data-plane/Microsoft.StorageDataLake/stable/2018-11-09/DataLakeStorage.json b/specification/storage/data-plane/Microsoft.StorageDataLake/stable/2018-11-09/DataLakeStorage.json index e0d4b48c4ae4..10cff43821f9 100644 --- a/specification/storage/data-plane/Microsoft.StorageDataLake/stable/2018-11-09/DataLakeStorage.json +++ b/specification/storage/data-plane/Microsoft.StorageDataLake/stable/2018-11-09/DataLakeStorage.json @@ -2244,7 +2244,7 @@ "description": "Optional. Sets the blob's content type. If specified, this property is stored with the blob and returned with a read request." }, "ContentMD5": { - "name": "Content-MD5", + "name": "x-ms-content-md5", "x-ms-client-name": "transactionalContentMD5", "in": "header", "required": false, From e15573276961117f105e83648c8668ba851b02ba Mon Sep 17 00:00:00 2001 From: seanmcc-msft Date: Wed, 16 Oct 2019 20:32:57 -0700 Subject: [PATCH 2/2] separated contentMD5 from transactionalContentMD5 --- .../stable/2018-11-09/DataLakeStorage.json | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/specification/storage/data-plane/Microsoft.StorageDataLake/stable/2018-11-09/DataLakeStorage.json b/specification/storage/data-plane/Microsoft.StorageDataLake/stable/2018-11-09/DataLakeStorage.json index 10cff43821f9..76623fde9b29 100644 --- a/specification/storage/data-plane/Microsoft.StorageDataLake/stable/2018-11-09/DataLakeStorage.json +++ b/specification/storage/data-plane/Microsoft.StorageDataLake/stable/2018-11-09/DataLakeStorage.json @@ -1809,7 +1809,7 @@ "$ref": "#/parameters/ContentLength" }, { - "$ref": "#/parameters/ContentMD5" + "$ref": "#/parameters/TransactionalContentMD5" }, { "$ref": "#/parameters/LeaseIdOptional" @@ -2243,9 +2243,22 @@ }, "description": "Optional. Sets the blob's content type. If specified, this property is stored with the blob and returned with a read request." }, + "TransactionalContentMD5": { + "name": "Content-MD5", + "x-ms-client-name": "transactionalContentHash", + "in": "header", + "required": false, + "type": "string", + "format": "byte", + "x-ms-parameter-location": "method", + "x-ms-parameter-grouping": { + "name": "path-HTTP-headers" + }, + "description": "Specify the transactional md5 for the body, to be validated by the service." + }, "ContentMD5": { "name": "x-ms-content-md5", - "x-ms-client-name": "transactionalContentMD5", + "x-ms-client-name": "contentMD5", "in": "header", "required": false, "type": "string",