Delen via


AccountImmutabilityPolicyProperties Constructors

Definition

Overloads

AccountImmutabilityPolicyProperties()

Initializes a new instance of the AccountImmutabilityPolicyProperties class.

AccountImmutabilityPolicyProperties(Nullable<Int32>, String, Nullable<Boolean>)

Initializes a new instance of the AccountImmutabilityPolicyProperties class.

AccountImmutabilityPolicyProperties()

Initializes a new instance of the AccountImmutabilityPolicyProperties class.

public AccountImmutabilityPolicyProperties ();
Public Sub New ()

Applies to

AccountImmutabilityPolicyProperties(Nullable<Int32>, String, Nullable<Boolean>)

Initializes a new instance of the AccountImmutabilityPolicyProperties class.

public AccountImmutabilityPolicyProperties (int? immutabilityPeriodSinceCreationInDays = default, string state = default, bool? allowProtectedAppendWrites = default);
new Microsoft.Azure.Management.Storage.Models.AccountImmutabilityPolicyProperties : Nullable<int> * string * Nullable<bool> -> Microsoft.Azure.Management.Storage.Models.AccountImmutabilityPolicyProperties
Public Sub New (Optional immutabilityPeriodSinceCreationInDays As Nullable(Of Integer) = Nothing, Optional state As String = Nothing, Optional allowProtectedAppendWrites As Nullable(Of Boolean) = Nothing)

Parameters

immutabilityPeriodSinceCreationInDays
Nullable<Int32>

The immutability period for the blobs in the container since the policy creation, in days.

state
String

The ImmutabilityPolicy state defines the mode of the policy. Disabled state disables the policy, Unlocked state allows increase and decrease of immutability retention time and also allows toggling allowProtectedAppendWrites property, Locked state only allows the increase of the immutability retention time. A policy can only be created in a Disabled or Unlocked state and can be toggled between the two states. Only a policy in an Unlocked state can transition to a Locked state which cannot be reverted. Possible values include: 'Unlocked', 'Locked', 'Disabled'

allowProtectedAppendWrites
Nullable<Boolean>

This property can only be changed for disabled and 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.

Applies to