Skip to content

Commit

Permalink
Adding allowProtectedAppendWrites support for Immutability Policy (#8485
Browse files Browse the repository at this point in the history
)

* Adding allowProtectedAppendWrites support for Immutability Policy

* Adjust indentation

* Updating description
  • Loading branch information
HimanshuChhabra committed Feb 24, 2020
1 parent 9643f83 commit dcd51ec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"etag": "\"8d59f828e64b75c\"",
"properties": {
"immutabilityPeriodSinceCreationInDays": 5,
"allowProtectedAppendWrites": true,
"state": "Unlocked"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"monitor": "true",
"parameters": {
"properties": {
"immutabilityPeriodSinceCreationInDays": 3
"immutabilityPeriodSinceCreationInDays": 3,
"allowProtectedAppendWrites": true
}
}
},
Expand All @@ -22,6 +23,7 @@
"etag": "\"8d59f830cb130e5\"",
"properties": {
"immutabilityPeriodSinceCreationInDays": 3,
"allowProtectedAppendWrites": true,
"state": "Unlocked"
}
}
Expand Down

0 comments on commit dcd51ec

Please sign in to comment.