Partager via


ImmutableStorageAccount Class

Definition

This property enables and defines account-level immutability. Enabling the feature auto-enables Blob Versioning.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ImmutableStorageAccountTypeConverter))]
public class ImmutableStorageAccount : Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IImmutableStorageAccount
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ImmutableStorageAccountTypeConverter))>]
type ImmutableStorageAccount = class
    interface IImmutableStorageAccount
    interface IJsonSerializable
Public Class ImmutableStorageAccount
Implements IImmutableStorageAccount
Inheritance
ImmutableStorageAccount
Attributes
Implements

Constructors

ImmutableStorageAccount()

Creates an new ImmutableStorageAccount instance.

Properties

Enabled

A boolean flag which enables account-level immutability. All the containers under such an account have object-level immutability enabled by default.

ImmutabilityPolicyAllowProtectedAppendWrite

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.

ImmutabilityPolicyImmutabilityPeriodSinceCreationInDay

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

ImmutabilityPolicyState

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.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ImmutableStorageAccount.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ImmutableStorageAccount.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IImmutableStorageAccount.

FromJsonString(String)

Creates a new instance of ImmutableStorageAccount, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of ImmutableStorageAccount into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to