FileSasPermissions Class
FileSasPermissions class to be used with generating shared access signature operations.
- Inheritance
-
builtins.objectFileSasPermissions
Constructor
FileSasPermissions(read: bool = False, create: bool = False, write: bool = False, delete: bool = 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: str) -> Self
Parameters
Name | Description |
---|---|
permission
Required
|
The string which dictates the read, create, write, or delete permissions |
Returns
Type | Description |
---|---|
A FileSasPermissions object |
Attributes
create
Create a new file or copy a file to a new file.
create: bool = False
delete
Delete the file.
delete: bool = False
read
Read the content, properties, metadata. Use the file as the source of a copy operation.
read: bool = 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.
write: bool = False
Azure SDK for Python