FileSasPermissions Class
FileSasPermissions class to be used with generating shared access signature operations.
- Inheritance
-
builtins.objectFileSasPermissions
Constructor
FileSasPermissions(read=False, create=False, write=False, delete=False)
Parameters
Name | Description |
---|---|
read
|
Read the content, properties, metadata. Use the file as the source of a copy operation. Default value: False
|
create
|
Create a new file or copy a file to a new file. Default value: False
|
write
|
Create or write content, properties, metadata. Resize the file. Use the file as the destination of a copy operation within the same account. Default value: False
|
delete
|
Delete the file. Default value: False
|
Methods
from_string |
Create a FileSasPermissions from a string. To specify read, create, write, or delete permissions you need only to include the first letter of the word in the string. E.g. For read and create permissions, you would provide a string "rc". |
from_string
Create a FileSasPermissions from a string.
To specify read, create, write, or delete permissions you need only to include the first letter of the word in the string. E.g. For read and create permissions, you would provide a string "rc".
from_string(permission)
Parameters
Name | Description |
---|---|
permission
Required
|
The string which dictates the read, create, write, or delete permissions |
Returns
Type | Description |
---|---|
A FileSasPermissions object |
Azure SDK for Python