FilePermissions Class

FilePermissions class to be used with generate_file_shared_access_signature API.

Inheritance
builtins.object
FilePermissions

Constructor

FilePermissions(read=False, create=False, write=False, delete=False, _str=None)

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
_str
str

A string representing the permissions.

default value: None

Variables

Name Description
FilePermissions.CREATE

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

FilePermissions.DELETE

Delete the file.

FilePermissions.READ

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

FilePermissions.WRITE

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

Attributes

CREATE

CREATE = <azure.storage.file.models.FilePermissions object>

DELETE

DELETE = <azure.storage.file.models.FilePermissions object>

READ

READ = <azure.storage.file.models.FilePermissions object>

WRITE

WRITE = <azure.storage.file.models.FilePermissions object>