snowflake.core.grant.GrantΒΆ
- class snowflake.core.grant.Grant(grantee: Grantee, securable: Securable, privileges: List[Privileges] | None = None, grant_option: bool = False)ΒΆ
Bases:
object
Represents Snowflake Grant Operation.
- Parameters:
grantee β An instance of
Grantee
class.securable β An instance of
Securable
instanceprivileges β Acceptable
Privileges
valuegrant_option β Boolean If true, grantee can pass this privilege down.
Example
>>> from snowflake.core.grant._grantee import Grantees >>> from snowflake.core.grant._privileges import Privileges >>> from snowflake.core.grant._securables import Securables >>> >>> Grant(grantee=Grantees.role(name="test_role", >>> securable=Securables.current_account, >>> privileges=[Privileges.create_database])
Attributes
- grant_optionΒΆ
- granteeΒΆ
- privilegesΒΆ
- securableΒΆ