FileSystemSasPermissions Class
FileSystemSasPermissions class to be used with the generate_file_system_sas function.
Constructor
FileSystemSasPermissions(read: bool = False, write: bool = False, delete: bool = False, list: bool = False, **kwargs: Any)
Parameters
Name | Description |
---|---|
read
|
Read the content, properties, metadata etc. Default value: False
|
write
|
Create or write content, properties, metadata. Lease the file system. Default value: False
|
delete
|
Delete the file system. Default value: False
|
list
|
List paths in the file system. Default value: False
|
Keyword-Only Parameters
Name | Description |
---|---|
add
|
Append data to a file in the directory. |
create
|
Write a new file, snapshot a file, or copy a file to a new file. |
move
|
Move any file in the directory to a new location. Note the move operation can optionally be restricted to the child file or directory owner or the parent directory owner if the said parameter is included in the token and the sticky bit is set on the parent directory. |
execute
|
Get the status (system defined properties) and ACL of any file in the directory. If the caller is the owner, set access control on any file in the directory. |
manage_ownership
|
Allows the user to set owner, owning group, or act as the owner when renaming or deleting a file or directory within a folder that has the sticky bit set. |
manage_access_control
|
Allows the user to set permissions and POSIX ACLs on files and directories. |
Methods
from_string |
Create a FileSystemSasPermissions from a string. To specify read, 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 FileSystemSasPermissions from a string.
To specify read, 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: str) -> Self
Parameters
Name | Description |
---|---|
permission
Required
|
The string which dictates the read, add, create, write, or delete permissions. |
Returns
Type | Description |
---|---|
A FileSystemSasPermissions object |
Attributes
add
Append data to a file in the directory.
add: bool | None = None
create
Write a new file, snapshot a file, or copy a file to a new file.
create: bool | None = None
delete
Delete the file system.
delete: bool = False
execute
Get the status (system defined properties) and ACL of any file in the directory. If the caller is the owner, set access control on any file in the directory.
execute: bool | None = None
list
List paths in the file system.
list: bool = False
manage_access_control
Allows the user to set permissions and POSIX ACLs on files and directories.
manage_access_control: bool | None = False
manage_ownership
Allows the user to set owner, owning group, or act as the owner when renaming or deleting a file or directory within a folder that has the sticky bit set.
manage_ownership: bool | None = False
move
Move any file in the directory to a new location. Note the move operation can optionally be restricted to the child file or directory owner or the parent directory owner if the said parameter is included in the token and the sticky bit is set on the parent directory.
move: bool | None = None
read
Read the content, properties, metadata etc.
read: bool = False
write
Create or write content, properties, metadata. Lease the file system.
write: bool = False
Azure SDK for Python