Udostępnij za pośrednictwem


ImmutabilityPolicyData Class

Definition

A class representing the ImmutabilityPolicy data model. The ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag.

public class ImmutabilityPolicyData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Storage.ImmutabilityPolicyData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Storage.ImmutabilityPolicyData>
public class ImmutabilityPolicyData : Azure.ResourceManager.Models.ResourceData
type ImmutabilityPolicyData = class
    inherit ResourceData
    interface IJsonModel<ImmutabilityPolicyData>
    interface IPersistableModel<ImmutabilityPolicyData>
type ImmutabilityPolicyData = class
    inherit ResourceData
Public Class ImmutabilityPolicyData
Inherits ResourceData
Implements IJsonModel(Of ImmutabilityPolicyData), IPersistableModel(Of ImmutabilityPolicyData)
Public Class ImmutabilityPolicyData
Inherits ResourceData
Inheritance
ImmutabilityPolicyData
Implements

Constructors

ImmutabilityPolicyData()

Initializes a new instance of ImmutabilityPolicyData.

Properties

AllowProtectedAppendWrites

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.

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

(Inherited from ResourceData)
ImmutabilityPeriodSinceCreationInDays

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

Name

The name of the resource.

(Inherited from ResourceData)
ResourceType

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

(Inherited from ResourceData)
State

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

SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

(Inherited from ResourceData)

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from ResourceData)

Explicit Interface Implementations

IJsonModel<ImmutabilityPolicyData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ImmutabilityPolicyData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ImmutabilityPolicyData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ImmutabilityPolicyData>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ImmutabilityPolicyData>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to