ShareSasPermissions class

Definition

ShareSasPermissions class to be used to be used with generating shared access signature and access policy operations.

ShareSasPermissions(read=False, write=False, delete=False, list=False)
Inheritance
builtins.object
ShareSasPermissions

Parameters

read
bool

Read the content, properties or metadata of any file in the share. Use any file in the share as the source of a copy operation.

write
bool

For any file in the share, create or write content, properties or metadata. Resize the file. Use the file as the destination of a copy operation within the same account. Note: You cannot grant permissions to read or write share properties or metadata with a service SAS. Use an account SAS instead.

delete
bool

Delete any file in the share. Note: You cannot grant permissions to delete a share with a service SAS. Use an account SAS instead.

list
bool

List files and directories in the share.

Methods

from_string

Create a ShareSasPermissions from a string.

To specify read, write, delete, or list 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 ShareSasPermissions from a string.

To specify read, write, delete, or list 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, write, delete, or list permissions

permission
Required

Returns

A ShareSasPermissions object

Return type