ContainerSASPermissions class
這是協助程序類別,用來建構字串,代表 ServiceSAS 授與給容器的許可權。 將值設定為 true 表示任何使用這些許可權的 SAS 都會授與該作業的許可權。 設定所有值之後,應該使用 toString 串行化,並設定為 <xref:BlobSASSignatureValues> 對象的許可權欄位。 可以建構沒有這個類別的許可權字串,但許可權的順序是特定的,而且這個類別保證正確性。
add | 指定已授與的新增存取權。 |
create | 指定授與建立存取權。 |
delete | 指定授與刪除存取權。 |
delete |
指定授與刪除版本存取權。 |
execute | 指定授與的執行存取權。 |
list | 指定授與的清單存取權。 |
move | 指定授與移動存取權。 |
read | 指定授與的讀取許可權。 |
set |
指定授與 SetImmutabilityPolicy 存取權。 |
tag | 指定已授與標籤存取權。 |
write | 指定授與的寫入存取權。 |
from(Container |
從原始物件建立 <xref:ContainerSASPermissions>,其中包含與其相同的索引鍵,併為其布爾值。 |
parse(string) | 從指定的許可權字串建立 <xref:ContainerSASPermissions>。 如果遇到未對應至有效許可權的字元,這個方法將會擲回 Error。 |
to |
將指定的許可權轉換為字串。 使用此方法可確保許可權依服務接受的順序。 字元的順序應該如這裡所指定,以確保正確性。 |
指定已授與的新增存取權。
add: boolean
屬性值
boolean
指定授與建立存取權。
create: boolean
屬性值
boolean
指定授與刪除存取權。
delete: boolean
屬性值
boolean
指定授與刪除版本存取權。
deleteVersion: boolean
屬性值
boolean
指定授與的執行存取權。
execute: boolean
屬性值
boolean
指定授與的清單存取權。
list: boolean
屬性值
boolean
指定授與移動存取權。
move: boolean
屬性值
boolean
指定授與的讀取許可權。
read: boolean
屬性值
boolean
指定授與 SetImmutabilityPolicy 存取權。
setImmutabilityPolicy: boolean
屬性值
boolean
指定已授與標籤存取權。
tag: boolean
屬性值
boolean
指定授與的寫入存取權。
write: boolean
屬性值
boolean
從原始物件建立 <xref:ContainerSASPermissions>,其中包含與其相同的索引鍵,併為其布爾值。
static function from(permissionLike: ContainerSASPermissionsLike)
參數
- permissionLike
- ContainerSASPermissionsLike
傳回
從指定的許可權字串建立 <xref:ContainerSASPermissions>。 如果遇到未對應至有效許可權的字元,這個方法將會擲回 Error。
static function parse(permissions: string)
參數
- permissions
-
string
傳回
將指定的許可權轉換為字串。 使用此方法可確保許可權依服務接受的順序。 字元的順序應該如這裡所指定,以確保正確性。
function toString()
傳回
string