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>