ArmStorageModelFactory.ImmutabilityPolicyData Method

Definition

Initializes a new instance of ImmutabilityPolicyData.

public static Azure.ResourceManager.Storage.ImmutabilityPolicyData ImmutabilityPolicyData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, int? immutabilityPeriodSinceCreationInDays = default, Azure.ResourceManager.Storage.Models.ImmutabilityPolicyState? state = default, bool? allowProtectedAppendWrites = default, bool? allowProtectedAppendWritesAll = default, Azure.ETag? etag = default);
static member ImmutabilityPolicyData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<int> * Nullable<Azure.ResourceManager.Storage.Models.ImmutabilityPolicyState> * Nullable<bool> * Nullable<bool> * Nullable<Azure.ETag> -> Azure.ResourceManager.Storage.ImmutabilityPolicyData
Public Shared Function ImmutabilityPolicyData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional immutabilityPeriodSinceCreationInDays As Nullable(Of Integer) = Nothing, Optional state As Nullable(Of ImmutabilityPolicyState) = Nothing, Optional allowProtectedAppendWrites As Nullable(Of Boolean) = Nothing, Optional allowProtectedAppendWritesAll As Nullable(Of Boolean) = Nothing, Optional etag As Nullable(Of ETag) = Nothing) As ImmutabilityPolicyData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

immutabilityPeriodSinceCreationInDays
Nullable<Int32>

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

state
Nullable<ImmutabilityPolicyState>

The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked.

allowProtectedAppendWrites
Nullable<Boolean>

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
Nullable<Boolean>

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.

etag
Nullable<ETag>

Resource Etag.

Returns

A new ImmutabilityPolicyData instance for mocking.

Applies to