snowflake.core.grant.Grant¶
- class snowflake.core.grant.Grant(grantee: Grantee, securable: Securable, privileges: list[Privileges] | None = None, grant_option: bool = False)¶
Bases:
objectRepresents Snowflake Grant Operation.
- Parameters:
grantee (Grantee) – The role that the
Grantis being applied to.securable (Securable) – The
Securableobject.privileges (Privileges) – The
Privilegesbeing granted.grant_option (bool, optional) – If
True, grantee can pass this privilege down. Default isNone, which is equivalent toFalse.
Examples
Granting privileges to a test role:
Attributes
- grant_option¶
- grantee¶
- privileges¶
- securable¶
Methods
- to_dict(hide_readonly_properties: bool = False) dict[str, Any]¶