ImmutabilityPolicy Constructors
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.
Overloads
ImmutabilityPolicy() |
Initializes a new instance of the ImmutabilityPolicy class. |
ImmutabilityPolicy(String, String, String, String, Nullable<Int32>, String, Nullable<Boolean>, Nullable<Boolean>) |
Initializes a new instance of the ImmutabilityPolicy class. |
ImmutabilityPolicy()
Initializes a new instance of the ImmutabilityPolicy class.
public ImmutabilityPolicy ();
Public Sub New ()
Applies to
ImmutabilityPolicy(String, String, String, String, Nullable<Int32>, String, Nullable<Boolean>, Nullable<Boolean>)
Initializes a new instance of the ImmutabilityPolicy class.
public ImmutabilityPolicy (string id = default, string name = default, string type = default, string etag = default, int? immutabilityPeriodSinceCreationInDays = default, string state = default, bool? allowProtectedAppendWrites = default, bool? allowProtectedAppendWritesAll = default);
new Microsoft.Azure.Management.Storage.Models.ImmutabilityPolicy : string * string * string * string * Nullable<int> * string * Nullable<bool> * Nullable<bool> -> Microsoft.Azure.Management.Storage.Models.ImmutabilityPolicy
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional etag As String = Nothing, Optional immutabilityPeriodSinceCreationInDays As Nullable(Of Integer) = Nothing, Optional state As String = Nothing, Optional allowProtectedAppendWrites As Nullable(Of Boolean) = Nothing, Optional allowProtectedAppendWritesAll As Nullable(Of Boolean) = Nothing)
Parameters
- id
- String
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name
- String
The name of the resource
- type
- String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- etag
- String
Resource Etag.
The immutability period for the blobs in the container since the policy creation, in days.
- state
- String
The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. Possible values include: 'Locked', 'Unlocked'
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.
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.
Applies to
Azure SDK for .NET