BlobPermissions Class

BlobPermissions class to be used with generate_blob_shared_access_signature API.

Inheritance
builtins.object
BlobPermissions

Constructor

BlobPermissions(read=False, add=False, create=False, write=False, delete=False, _str=None)

Parameters

Name Description
read

Read the content, properties, metadata and block list. Use the blob as the source of a copy operation.

Default value: False
add

Add a block to an append blob.

Default value: False
create

Write a new blob, snapshot a blob, or copy a blob to a new blob.

Default value: False
write

Create or write content, properties, metadata, or block list. Snapshot or lease the blob. Resize the blob (page blob only). Use the blob as the destination of a copy operation within the same account.

Default value: False
delete

Delete the blob.

Default value: False
_str
str

A string representing the permissions.

Default value: None

Variables

Name Description
BlobPermissions.ADD

Add a block to an append blob.

BlobPermissions.CREATE

Write a new blob, snapshot a blob, or copy a blob to a new blob.

BlobPermissions.DELETE

Delete the blob.

BlobPermissions.READ

Read the content, properties, metadata and block list. Use the blob as the source of a copy operation.

BlobPermissions.WRITE

Create or write content, properties, metadata, or block list. Snapshot or lease the blob. Resize the blob (page blob only). Use the blob as the destination of a copy operation within the same account.

Attributes

ADD

ADD = <azure.storage.blob.models.BlobPermissions object>

CREATE

CREATE = <azure.storage.blob.models.BlobPermissions object>

DELETE

DELETE = <azure.storage.blob.models.BlobPermissions object>

READ

READ = <azure.storage.blob.models.BlobPermissions object>

WRITE

WRITE = <azure.storage.blob.models.BlobPermissions object>