SharePermissions Class

SharePermissions class to be used with azure.storage.file.FileService.generate_share_shared_access_signature method and for the AccessPolicies used with azure.storage.file.FileService.set_share_acl.

Inheritance
builtins.object
SharePermissions

Constructor

SharePermissions(read=False, write=False, delete=False, list=False, _str=None)

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

A string representing the permissions

Default value: None

Variables

Name Description
FilePermissions.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.

FilePermissions.LIST

List files and directories in the share.

FilePermissions.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.

FilePermissions.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.

Attributes

DELETE

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

LIST

LIST = <azure.storage.file.models.SharePermissions object>

READ

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

WRITE

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