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

ImmutabilityPolicyData Class

Data used for updating the immutability policy of a snapshot.

Constructor

ImmutabilityPolicyData(*args: Any, **kwargs: Any)

Variables

Name Description
immutability_duration_days
int

The immutability duration for the snapshot, in number of days. Required.

type

The type of the immutability policy. 'Unlocked' allows the policy to be modified by privileged users; 'Locked' prevents reduction of the immutability duration but allows extension of the lock period. Required. Known values are: "Unlocked" and "Locked".

Attributes

immutability_duration_days

The immutability duration for the snapshot, in number of days. Required.

immutability_duration_days: int

type

The type of the immutability policy. 'Unlocked' allows the policy to be modified by privileged users; 'Locked' prevents reduction of the immutability duration but allows extension of the lock period. Required. Known values are: "Unlocked" and "Locked".

type: str | _models.ImmutabilityPolicyType