共用方式為


ArmStorageModelFactory.UpdateHistoryEntry Method

Definition

Initializes a new instance of UpdateHistoryEntry.

public static Azure.ResourceManager.Storage.Models.UpdateHistoryEntry UpdateHistoryEntry (Azure.ResourceManager.Storage.Models.ImmutabilityPolicyUpdateType? updateType = default, int? immutabilityPeriodSinceCreationInDays = default, DateTimeOffset? timestamp = default, string objectIdentifier = default, Guid? tenantId = default, string upn = default, bool? allowProtectedAppendWrites = default, bool? allowProtectedAppendWritesAll = default);
static member UpdateHistoryEntry : Nullable<Azure.ResourceManager.Storage.Models.ImmutabilityPolicyUpdateType> * Nullable<int> * Nullable<DateTimeOffset> * string * Nullable<Guid> * string * Nullable<bool> * Nullable<bool> -> Azure.ResourceManager.Storage.Models.UpdateHistoryEntry
Public Shared Function UpdateHistoryEntry (Optional updateType As Nullable(Of ImmutabilityPolicyUpdateType) = Nothing, Optional immutabilityPeriodSinceCreationInDays As Nullable(Of Integer) = Nothing, Optional timestamp As Nullable(Of DateTimeOffset) = Nothing, Optional objectIdentifier As String = Nothing, Optional tenantId As Nullable(Of Guid) = Nothing, Optional upn As String = Nothing, Optional allowProtectedAppendWrites As Nullable(Of Boolean) = Nothing, Optional allowProtectedAppendWritesAll As Nullable(Of Boolean) = Nothing) As UpdateHistoryEntry

Parameters

updateType
Nullable<ImmutabilityPolicyUpdateType>

The ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend.

immutabilityPeriodSinceCreationInDays
Nullable<Int32>

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

timestamp
Nullable<DateTimeOffset>

Returns the date and time the ImmutabilityPolicy was updated.

objectIdentifier
String

Returns the Object ID of the user who updated the ImmutabilityPolicy.

tenantId
Nullable<Guid>

Returns the Tenant ID that issued the token for the user who updated the ImmutabilityPolicy.

upn
String

Returns the User Principal Name of the user who updated the ImmutabilityPolicy.

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.

Returns

A new UpdateHistoryEntry instance for mocking.

Applies to