AccountSasPermissions 類別
ResourceTypes 類別,用於generate_account_sas函式,以及搭配 set_*_acl 使用的 AccessPolicies。 有兩種類型的 SAS 可用來授與資源存取權。 其中一個是授與特定資源的存取權, (資源特定) 。 另一個是授與特定帳戶之整個服務的存取權,並根據這裡找到的效能來允許特定作業。
- 繼承
-
builtins.objectAccountSasPermissions
建構函式
AccountSasPermissions(read: bool = False, write: bool = False, delete: bool = False, list: bool = False, add: bool = False, create: bool = False, update: bool = False, process: bool = False, delete_previous_version: bool = False, **kwargs)
參數
- tag
- bool
若要在容器中的 Blob 上啟用設定或取得標籤。
- filter_by_tags
- bool
若要依標記啟用取得 Blob,這應該與清單許可權一起使用。
- set_immutability_policy
- bool
啟用與設定/刪除不變性原則相關的作業。 若要取得不變性原則,您只需要讀取權限。
- permanent_delete
- bool
允許在 Blob 上啟用永久刪除。 僅適用于 Blob 的物件資源類型。
方法
from_string |
從字串建立 AccountSasPermissions。 若要指定讀取、寫入、刪除等。 您只需要在字串中包含單字的第一個字母。 例如,針對讀取和寫入權限,您會提供字串 「rw」。 |
from_string
從字串建立 AccountSasPermissions。
若要指定讀取、寫入、刪除等。 您只需要在字串中包含單字的第一個字母。 例如,針對讀取和寫入權限,您會提供字串 「rw」。
from_string(permission)
參數
傳回
AccountSasPermissions 物件
傳回類型
屬性
add
add: bool = False
create
create: bool = False
delete
delete: bool = False
delete_previous_version
delete_previous_version: bool = False
filter_by_tags
filter_by_tags: bool = False
list
list: bool = False
permanent_delete
permanent_delete: bool = False
process
process: bool = False
read
read: bool = False
set_immutability_policy
set_immutability_policy: bool = False
tag
tag: bool = False
update
update: bool = False
write
write: bool = False
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應