QueueSasPermissions class
Definition
QueueSasPermissions class to be used with the generate_queue_sas(account_name, queue_name, account_key, permission=None, expiry=None, start=None, policy_id=None, ip=None, **kwargs) function and for the AccessPolicies used with set_queue_access_policy(signed_identifiers, **kwargs).
QueueSasPermissions(read=False, add=False, update=False, process=False)
- Inheritance
-
builtins.objectQueueSasPermissions
Parameters
- read
- bool
Read metadata and properties, including message count. Peek at messages.
- add
- bool
Add messages to the queue.
- update
- bool
Update messages in the queue. Note: Use the Process permission with Update so you can first get the message you want to update.
- process
- bool
Get and delete messages from the queue.
Methods
| from_string |
Create a QueueSasPermissions from a string. To specify read, add, update, or process permissions you need only to include the first letter of the word in the string. E.g. For read and update permissions, you would provide a string "ru". |
from_string
Create a QueueSasPermissions from a string.
To specify read, add, update, or process permissions you need only to include the first letter of the word in the string. E.g. For read and update permissions, you would provide a string "ru".
from_string(permission)
Parameters
- permission
- str
The string which dictates the read, add, update, or process permissions.
- permission
Returns
A QueueSasPermissions object