ImmutabilityPolicyProperty Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The properties of an ImmutabilityPolicy of a blob container.
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ImmutabilityPolicyPropertyTypeConverter))]
public class ImmutabilityPolicyProperty : Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IImmutabilityPolicyProperty
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ImmutabilityPolicyPropertyTypeConverter))>]
type ImmutabilityPolicyProperty = class
interface IImmutabilityPolicyProperty
interface IJsonSerializable
Public Class ImmutabilityPolicyProperty
Implements IImmutabilityPolicyProperty
- Inheritance
-
ImmutabilityPolicyProperty
- Attributes
- Implements
Constructors
| Name | Description |
|---|---|
| ImmutabilityPolicyProperty() |
Creates an new ImmutabilityPolicyProperty instance. |
Properties
| Name | Description |
|---|---|
| AllowProtectedAppendWrite |
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. |
| AllowProtectedAppendWritesAll |
This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to both 'Append and Bock Blobs' 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. The 'allowProtectedAppendWrites' and 'allowProtectedAppendWritesAll' properties are mutually exclusive. |
| ImmutabilityPeriodSinceCreationInDay |
The immutability period for the blobs in the container since the policy creation, in days. |
| State |
The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. |
Methods
| Name | Description |
|---|---|
| DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of ImmutabilityPolicyProperty. |
| DeserializeFromPSObject(PSObject) |
Deserializes a PSObject into an instance of ImmutabilityPolicyProperty. |
| FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IImmutabilityPolicyProperty. |
| FromJsonString(String) |
Creates a new instance of ImmutabilityPolicyProperty, deserializing the content from a json string. |
| ToJson(JsonObject, SerializationMode) |
Serializes this instance of ImmutabilityPolicyProperty into a JsonNode. |
| ToJsonString() |
Serializes this instance to a json string. |
| ToString() | |