FileSasPermissions class

Definition

FileSasPermissions class to be used with generating shared access signature operations.

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

Parameters

read
bool

Read the content, properties, metadata. Use the file as the source of a copy operation.

create
bool

Create a new file or copy a file to a new file.

write
bool

Create or write content, properties, metadata. Resize the file. Use the file as the destination of a copy operation within the same account.

delete
bool

Delete the file.

Methods

from_string

Create a FileSasPermissions from a string.

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

from_string

Create a FileSasPermissions from a string.

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

from_string(permission)

Parameters

permission
str
Required

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

permission
Required

Returns

A FileSasPermissions object

Return type