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

BlobProperties Class

Blob Properties.

Constructor

Python
BlobProperties(**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

append_blob_committed_block_count

(For Append Blobs) Number of committed blocks in the blob.

Python
append_blob_committed_block_count: int | None

archive_status

Archive status of blob.

Python
archive_status: str | None

blob_tier

Indicates the access tier of the blob. The hot tier is optimized for storing data that is accessed frequently. The cool storage tier is optimized for storing data that is infrequently accessed and stored for at least a month. The archive tier is optimized for storing data that is rarely accessed and stored for at least six months with flexible latency requirements.

Python
blob_tier: StandardBlobTier | None

blob_tier_change_time

Indicates when the access tier was last changed.

Python
blob_tier_change_time: datetime | None

blob_tier_inferred

Indicates whether the access tier was inferred by the service. If false, it indicates that the tier was set explicitly.

Python
blob_tier_inferred: bool | None

blob_type

String indicating this blob's type.

Python
blob_type: BlobType

container

The container in which the blob resides.

Python
container: str

content_range

Indicates the range of bytes returned in the event that the client requested a subset of the blob.

Python
content_range: str | None

content_settings

Stores all the content settings for the blob.

Python
content_settings: ContentSettings

copy

Stores all the copy properties for the blob.

Python
copy: CopyProperties

creation_time

Indicates when the blob was created, in UTC.

Python
creation_time: datetime

deleted

Whether this blob was deleted.

Python
deleted: bool | None

deleted_time

A datetime object representing the time at which the blob was deleted.

Python
deleted_time: datetime | None

encryption_key_sha256

The SHA-256 hash of the provided encryption key.

Python
encryption_key_sha256: str | None

encryption_scope

A predefined encryption scope used to encrypt the data on the service. An encryption scope can be created using the Management API and referenced here by name. If a default encryption scope has been defined at the container, this value will override it if the container-level scope is configured to allow overrides. Otherwise an error will be raised.

Python
encryption_scope: str | None

etag

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

Python
etag: str

Specified if a legal hold should be set on the blob. Currently this parameter of upload_blob() API is for BlockBlob only.

Python
has_legal_hold: bool | None

has_versions_only

A true value indicates the root blob is deleted

Python
has_versions_only: bool | None

immutability_policy

Specifies the immutability policy of a blob, blob snapshot or blob version.

Python
immutability_policy: ImmutabilityPolicy

is_append_blob_sealed

Indicate if the append blob is sealed or not.

Python
is_append_blob_sealed: bool | None

last_accessed_on

Indicates when the last Read/Write operation was performed on a Blob.

Python
last_accessed_on: datetime | None

last_modified

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

Python
last_modified: datetime

lease

Stores all the lease information for the blob.

Python
lease: LeaseProperties

metadata

Name-value pairs associated with the blob as metadata.

Python
metadata: Dict[str, str]

name

The name of the blob.

Python
name: str

object_replication_destination_policy

Represents the Object Replication Policy Id that created this blob.

Python
object_replication_destination_policy: str | None

object_replication_source_properties

Only present for blobs that have policy ids and rule ids applied to them.

Python
object_replication_source_properties: List[ObjectReplicationPolicy] | None

page_blob_sequence_number

(For Page Blobs) Sequence number for page blob used for coordinating concurrent writes.

Python
page_blob_sequence_number: int | None

rehydrate_priority

Indicates the priority with which to rehydrate an archived blob

Python
rehydrate_priority: str | None

remaining_retention_days

The number of days that the blob will be retained before being permanently deleted by the service.

Python
remaining_retention_days: int | None

request_server_encrypted

Whether this blob is encrypted.

Python
request_server_encrypted: bool | None

server_encrypted

Set to true if the blob is encrypted on the server.

Python
server_encrypted: bool

size

The size of the content returned. If the entire blob was requested, the length of blob in bytes. If a subset of the blob was requested, the length of the returned subset.

Python
size: int

snapshot

Datetime value that uniquely identifies the blob snapshot.

Python
snapshot: str | None

tag_count

Tags count on this blob.

Python
tag_count: int | None

tags

Key value pair of tags on this blob.

Python
tags: Dict[str, str] | None