ShareSasPermissions Class

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

Inheritance
builtins.object
ShareSasPermissions

Constructor

ShareSasPermissions(read=False, write=False, delete=False, list=False, create=False)

Parameters

read
bool
default value: False

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
default value: False

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
default value: False

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
default value: False

List files and directories in the share.

create
bool
default value: False

Create a new file in the share, or copy a file to a new file in the share.

Methods

from_string

Create a ShareSasPermissions from a string.

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

permission
Required

Returns

A ShareSasPermissions object

Return type