generative-ai-python

google.generativeai.types.Permission

A permission to access a resource.

`name` Dataclass field
`role` Dataclass field
`grantee_type` Dataclass field
`email_address` Dataclass field

Methods

delete

View source

Delete permission (self).

delete_async

View source

This is the async version of Permission.delete.

get

View source

Get information about a specific permission.

Args
`name` The name of the permission to get.
Returns
Requested permission as an instance of `Permission`.

get_async

View source

This is the async version of Permission.get.

to_dict

View source

update

View source

Update a list of fields for a specified permission.

Args
`updates` The list of fields to update. Currently only `role` is supported as an update path.
Returns
`Permission` object with specified updates.

update_async

View source

This is the async version of Permission.update.

__eq__

Return self==value.

email_address `None`