Represents a grant of a role to another role or user in Snowflake.
# Grant to Role:
role_grant = RoleGrant(role="somerole", to_role="someotherrole")
role_grant = RoleGrant(role="somerole", to=Role(name="someotherrole"))
# Grant to User:
role_grant = RoleGrant(role="somerole", to_user="someuser")
role_grant = RoleGrant(role="somerole", to=User(name="someuser"))
role_grants:
- role: somerole
to_role: someotherrole
- role: somerole
to_user: someuser