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

ContainerProperties Class

Blob container's properties class.

Returned ContainerProperties instances expose these values through a dictionary interface, for example: container_props["last_modified"]. Additionally, the container name is available as container_props["name"].

Constructor

Python
ContainerProperties(**kwargs: Any)

Methods

get

Python
get(key, default=None)

Parameters

Name Description
key
Required
default
Required
Default value: None

has_key

Python
has_key(k)

Parameters

Name Description
k
Required

items

Python
items()

keys

Python
keys()

update

Python
update(*args, **kwargs)

values

Python
values()

Attributes

deleted

Whether this container was deleted.

Python
deleted: bool | None

encryption_scope

The default encryption scope configuration for the container.

Python
encryption_scope: ContainerEncryptionScope | None

etag

The ETag contains a value that you can use to perform operations conditionally.

Python
etag: str

has_immutability_policy

Represents whether the container has an immutability policy.

Python
has_immutability_policy: bool

Represents whether the container has a legal hold.

Python
has_legal_hold: bool

immutable_storage_with_versioning_enabled

Represents whether immutable storage with versioning enabled on the container.

Python
immutable_storage_with_versioning_enabled: bool

last_modified

A datetime object representing the last time the container was modified.

Python
last_modified: datetime

lease

Stores all the lease information for the container.

Python
lease: LeaseProperties

metadata

A dict with name-value pairs to associate with the container as metadata.

Python
metadata: Dict[str, Any]

name

Name of the container.

Python
name: str

public_access

Specifies whether data in the container may be accessed publicly and the level of access.

Python
public_access: str | None

version

The version of a deleted container.

Python
version: str | None