你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ImmutabilityPolicy Class

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

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to server.

Inheritance
azure.mgmt.storage.v2018_07_01.models._models_py3.AzureEntityResource
ImmutabilityPolicy

Constructor

ImmutabilityPolicy(*, immutability_period_since_creation_in_days: int, **kwargs: Any)

Keyword-Only Parameters

Name Description
immutability_period_since_creation_in_days
int

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

Variables

Name Description
id
str

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long

name
str

The name of the resource.

type
str

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

etag
str

Resource Etag.

immutability_period_since_creation_in_days
int

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

state

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