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

Name Description
read

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.

default value: False
write

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.

default value: False
delete

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

default value: False
list

List files and directories in the share.

default value: False
create

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

default value: False

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

Name Description
permission
Required
str

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

Returns

Type Description

A ShareSasPermissions object