FileSasPermissions Class

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

Inheritance
builtins.object
FileSasPermissions

Constructor

FileSasPermissions(read=False, create=False, write=False, delete=False)

Parameters

Name Description
read

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

default value: False
create

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

default value: False
write

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

default value: False
delete

Delete the file.

default value: False

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

Name Description
permission
Required
str

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

Returns

Type Description

A FileSasPermissions object