def __init__(self, query=False, add=False, update=False, delete=False, _str=None):
if not _str:<EOL><INDENT>_str = '<STR_LIT>'<EOL><DEDENT>self.query = query or ('<STR_LIT:r>' in _str)<EOL>self.add = add or ('<STR_LIT:a>' in _str)<EOL>self.update = update or ('<STR_LIT:u>' in _str)<EOL>self.delete = delete or ('<STR_LIT:d>' in _str)<EOL>
:param bool query:
    Get entities and query entities.
:param bool add:
    Add entities. Add and Update permissions are required for upsert operations.
:param bool update:
    Update entities. Add and Update permissions are required for upsert operations.
:param bool delete: 
    Delete entities.
:param str _str: 
    A string representing the permissions.