BlobSasPermissions class

Definition

BlobSasPermissions(read=False, add=False, create=False, write=False, delete=False)
Inheritance
builtins.object
BlobSasPermissions

Parameters

read
bool

Read the content, properties, metadata and block list. Use the blob as the source of a copy operation.

add
bool

Add a block to an append blob.

create
bool

Write a new blob, snapshot a blob, or copy a blob to a new blob.

write
bool

Create or write content, properties, metadata, or block list. Snapshot or lease the blob. Resize the blob (page blob only). Use the blob as the destination of a copy operation within the same account.

delete
bool

Delete the blob.

Methods

from_string

Create a BlobSasPermissions from a string.

To specify read, add, create, write, or delete permissions you need only to include the first letter of the word in the string. E.g. For read and write permissions, you would provide a string "rw".

from_string

Create a BlobSasPermissions from a string.

To specify read, add, create, write, or delete permissions you need only to include the first letter of the word in the string. E.g. For read and write permissions, you would provide a string "rw".

from_string(permission)

Parameters

permission
str
Required

The string which dictates the read, add, create, write, or delete permissions.

permission
Required

Returns

A BlobSasPermissions object

Return type