ShareSasPermissions Class
ShareSasPermissions class to be used to be used with generating shared access signature and access policy operations.
- Inheritance
-
builtins.objectShareSasPermissions
Constructor
ShareSasPermissions(read=False, write=False, delete=False, list=False, create=False)
Parameters
- read
- bool
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.
- write
- bool
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.
- delete
- bool
Delete any file in the share. Note: You cannot grant permissions to delete a share with a service SAS. Use an account SAS instead.
- create
- bool
Create a new file in the share, or copy a file to a new file in the share.
Methods
| from_string |
Create a ShareSasPermissions from a string. To specify read, create, write, delete, or list 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 ShareSasPermissions from a string.
To specify read, create, write, delete, or list 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, create, write, delete, or list permissions
- permission
Returns
A ShareSasPermissions object
Return type
Feedback
Submit and view feedback for