Bases: BaseModel
A model object representing the Grant resource.
Constructs an object of type Grant with the provided properties.
securable_type (str) – Type of the securable to be granted.
securable (Securable, optional)
containing_scope (ContainingScope, optional)
grant_option (bool, optional) – If true, allows the recipient role to grant the privileges to other roles.
privileges (list[str], optional) – List of privileges to be granted.
created_on (datetime, optional) – Date and time when the grant was created — Read-only: any user-provided value will be ignored.
granted_by (str, optional) – The role that granted this privilege to this grantee — Read-only: any user-provided value will be ignored.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Methods
Create an instance of Grant from a dict.
Create an instance of Grant from a JSON string.
Returns the dictionary representation of the model using alias.
Return the dictionary representation of the model without readonly properties.
Returns the JSON representation of the model using alias.
Returns the string representation of the model using alias.