Freigeben über


ImmutabilityPolicy Class

Definition

The ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ImmutabilityPolicyTypeConverter))]
public class ImmutabilityPolicy : Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IImmutabilityPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IHeaderSerializable, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ImmutabilityPolicyTypeConverter))>]
type ImmutabilityPolicy = class
    interface IImmutabilityPolicy
    interface IJsonSerializable
    interface IProxyResource
    interface IResource
    interface IValidates
    interface IHeaderSerializable
Public Class ImmutabilityPolicy
Implements IHeaderSerializable, IImmutabilityPolicy, IValidates
Inheritance
ImmutabilityPolicy
Attributes
Implements

Constructors

Name Description
ImmutabilityPolicy()

Creates an new ImmutabilityPolicy instance.

Properties

Name Description
AllowProtectedAppendWrite

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

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

Resource Etag.

ETag
Id

Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

ImmutabilityPeriodSinceCreationInDay

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

Name

The name of the resource

ResourceGroupName

Gets the resource group name

State

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

SystemDataCreatedAt

The timestamp of resource creation (UTC).

SystemDataCreatedBy

The identity that created the resource.

SystemDataCreatedByType

The type of identity that created the resource.

SystemDataLastModifiedAt

The timestamp of resource last modification (UTC)

SystemDataLastModifiedBy

The identity that last modified the resource.

SystemDataLastModifiedByType

The type of identity that last modified the resource.

Type

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ImmutabilityPolicy.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ImmutabilityPolicy.

FromJson(JsonNode)

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

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of ImmutabilityPolicy into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Explicit Interface Implementations

Name Description
IHeaderSerializable.ReadHeaders(HttpResponseHeaders)

Applies to