From ad88c4b9d772f3265ef5d21db5832cb146ca10a9 Mon Sep 17 00:00:00 2001 From: Tom Bamford Date: Tue, 9 Apr 2024 23:47:11 +0100 Subject: [PATCH] bugfix: encryption scope must be specified when updating blob metadata --- storage/2023-11-03/blob/blobs/metadata_set.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/storage/2023-11-03/blob/blobs/metadata_set.go b/storage/2023-11-03/blob/blobs/metadata_set.go index a9f9c00..94f8918 100644 --- a/storage/2023-11-03/blob/blobs/metadata_set.go +++ b/storage/2023-11-03/blob/blobs/metadata_set.go @@ -18,6 +18,9 @@ type SetMetaDataInput struct { // Any metadata which should be added to this blob MetaData map[string]string + + // The encryption scope for the blob. + EncryptionScope *string } type SetMetaDataResponse struct { @@ -85,6 +88,9 @@ func (s setMetadataOptions) ToHeaders() *client.Headers { if s.input.LeaseID != nil { headers.Append("x-ms-lease-id", *s.input.LeaseID) } + if s.input.EncryptionScope != nil { + headers.Append("x-ms-encryption-scope", *s.input.EncryptionScope) + } headers.Merge(metadata.SetMetaDataHeaders(s.input.MetaData)) return headers }