From 7161f23d6f61880b0cfb7543cd68e96d2cf15c2a Mon Sep 17 00:00:00 2001 From: Himanshu Chhabra Date: Fri, 21 Feb 2020 19:18:36 -0800 Subject: [PATCH 1/3] Adding allowProtectedAppendWrites support for Immutability Policy --- .../Microsoft.Storage/stable/2019-06-01/blob.json | 7 ++++--- .../examples/BlobContainersGetImmutabilityPolicy.json | 1 + .../examples/BlobContainersPutImmutabilityPolicy.json | 4 +++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/blob.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/blob.json index cb824822a92b..964c14ff7200 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/blob.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/blob.json @@ -923,11 +923,12 @@ "modelAsString": true }, "description": "The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked." + }, + "allowProtectedAppendWrites":{ + "type": "boolean", + "description": "This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API." } }, - "required": [ - "immutabilityPeriodSinceCreationInDays" - ], "description": "The properties of an ImmutabilityPolicy of a blob container." }, "ImmutabilityPolicyProperties": { diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/BlobContainersGetImmutabilityPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/BlobContainersGetImmutabilityPolicy.json index 30ee5585ffb0..bdab4c01cd61 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/BlobContainersGetImmutabilityPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/BlobContainersGetImmutabilityPolicy.json @@ -17,6 +17,7 @@ "etag": "\"8d59f828e64b75c\"", "properties": { "immutabilityPeriodSinceCreationInDays": 5, + "allowProtectedAppendWrites": true, "state": "Unlocked" } } diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/BlobContainersPutImmutabilityPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/BlobContainersPutImmutabilityPolicy.json index 45bacfdedad6..7ede7c161bab 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/BlobContainersPutImmutabilityPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/BlobContainersPutImmutabilityPolicy.json @@ -9,7 +9,8 @@ "monitor": "true", "parameters": { "properties": { - "immutabilityPeriodSinceCreationInDays": 3 + "immutabilityPeriodSinceCreationInDays": 3, + "allowProtectedAppendWrites": true } } }, @@ -22,6 +23,7 @@ "etag": "\"8d59f830cb130e5\"", "properties": { "immutabilityPeriodSinceCreationInDays": 3, + "allowProtectedAppendWrites": true, "state": "Unlocked" } } From c2f5697c2cacf5e713385549c0ea7a29fa251ac3 Mon Sep 17 00:00:00 2001 From: Himanshu Chhabra Date: Sun, 23 Feb 2020 13:03:03 -0800 Subject: [PATCH 2/3] Adjust indentation --- .../Microsoft.Storage/stable/2019-06-01/blob.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/blob.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/blob.json index 964c14ff7200..78655b97a4f5 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/blob.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/blob.json @@ -924,9 +924,9 @@ }, "description": "The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked." }, - "allowProtectedAppendWrites":{ + "allowProtectedAppendWrites": { "type": "boolean", - "description": "This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API." + "description": "This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted." } }, "description": "The properties of an ImmutabilityPolicy of a blob container." From e787f151f12b98865ac5a57cf7c4146693577bf3 Mon Sep 17 00:00:00 2001 From: Himanshu Chhabra Date: Sun, 23 Feb 2020 13:05:50 -0800 Subject: [PATCH 3/3] Updating description --- .../Microsoft.Storage/stable/2019-06-01/blob.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/blob.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/blob.json index 78655b97a4f5..ae5c2af44c88 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/blob.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/blob.json @@ -926,7 +926,7 @@ }, "allowProtectedAppendWrites": { "type": "boolean", - "description": "This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted." + "description": "This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API" } }, "description": "The properties of an ImmutabilityPolicy of a blob container."