ContainerProperties 類別
Blob 容器的屬性類別。
傳 ContainerProperties
回的實例會透過字典介面公開這些值,例如: container_props["last_modified"]
。
此外,容器名稱可做為 container_props["name"]
。
- 繼承
-
azure.storage.blob._shared.models.DictMixinContainerProperties
建構函式
ContainerProperties(**kwargs)
變數
- name
- str
容器的名稱。
- last_modified
- datetime
datetime 物件,表示上次修改容器的時間。
- etag
- str
ETag 包含的值可讓您依條件執行作業。
- lease
- LeaseProperties
儲存容器的所有租用資訊。
- public_access
- str
指定是否可以公開存取容器中的資料,以及存取層級。
- has_immutability_policy
- bool
表示容器是否具有不變性原則。
- has_legal_hold
- bool
表示容器是否有法務保存。
- immutable_storage_with_versioning_enabled
- bool
表示容器上是否啟用版本設定的不可變儲存體。
12.10.0 版的新功能:這是在 API 版本 '2020-10-02' 中引進的。
- metadata
- dict
具有名稱/值組的聽寫,與容器建立關聯做為中繼資料。
- encryption_scope
- ContainerEncryptionScope
容器的預設加密範圍設定。
- deleted
- bool
是否已刪除此容器。
- version
- str
已刪除容器的版本。
方法
get | |
has_key | |
items | |
keys | |
update | |
values |
get
get(key, default=None)
參數
- key
必要
- default
預設值: None
has_key
has_key(k)
參數
- k
必要
items
items()
keys
keys()
update
update(*args, **kwargs)
values
values()