ImmutabilityPolicy Class

Optional parameters for setting the immutability policy of a blob, blob snapshot or blob version.

New in version 12.10.0: This was introduced in API version '2020-10-02'.

Inheritance
azure.storage.blob._shared.models.DictMixin
ImmutabilityPolicy

Constructor

ImmutabilityPolicy(**kwargs: Any)

Keyword-Only Parameters

Name Description
expiry_time

Specifies the date time when the blobs immutability policy is set to expire.

policy_mode

Specifies the immutability policy mode to set on the blob. Possible values to set include: "Locked", "Unlocked". "Mutable" can only be returned by service, don't set to "Mutable".

Methods

get
has_key
items
keys
update
values

get

get(key, default=None)

Parameters

Name Description
key
Required
default
Default value: None

has_key

has_key(k)

Parameters

Name Description
k
Required

items

items()

keys

keys()

update

update(*args, **kwargs)

values

values()

Attributes

expiry_time

Specifies the date time when the blobs immutability policy is set to expire.

expiry_time: datetime | None = None

policy_mode

Specifies the immutability policy mode to set on the blob.

policy_mode: str | None = None