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

ImmutabilityPolicyData Class

Data used for updating the immutability policy of a snapshot.

Constructor

ImmutabilityPolicyData()

Variables

Name Description
immutabilityDurationDays
int

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

type
Union[str, <xref:"ImmutabilityPolicyType">]

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

immutabilityDurationDays

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

immutabilityDurationDays: Required[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: Required[str | ImmutabilityPolicyType]