snowflake.core.grant.Grantee

class snowflake.core.grant.Grantee(name: str, grantee_type: str)

Bases: object

Class to represent type of resource that is the privilege grantee.

Example

>>> Grantee("test-user", "user")
>>> Grantee("test-role", "role")
Copy

Attributes

grantee_type

String that specifies the type of resource that is the privilege grantee.

name

String that specifies the name of the privilege grantee.

Methods

__init__(name: str, grantee_type: str)