BlobSasPermissions class
Definition
BlobSasPermissions class to be used with the generate_blob_sas(account_name, container_name, blob_name, snapshot=None, account_key=None, user_delegation_key=None, permission=None, expiry=None, start=None, policy_id=None, ip=None, **kwargs) function.
BlobSasPermissions(read=False, add=False, create=False, write=False, delete=False)
- Inheritance
-
builtins.objectBlobSasPermissions
Parameters
- read
- bool
Read the content, properties, metadata and block list. Use the blob as the source of a copy operation.
- add
- bool
Add a block to an append blob.
- create
- bool
Write a new blob, snapshot a blob, or copy a blob to a new blob.
- write
- bool
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.
- delete
- bool
Delete the blob.
Methods
| from_string |
Create a BlobSasPermissions from a string. To specify read, add, create, write, or delete permissions you need only to include the first letter of the word in the string. E.g. For read and write permissions, you would provide a string "rw". |
from_string
Create a BlobSasPermissions from a string.
To specify read, add, create, write, or delete permissions you need only to include the first letter of the word in the string. E.g. For read and write permissions, you would provide a string "rw".
from_string(permission)
Parameters
- permission
- str
The string which dictates the read, add, create, write, or delete permissions.
- permission
Returns
A BlobSasPermissions object