Class Database (1.16.1)

Database(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents database access information, such as queries. A database may be a sub-resource of an instance (as in the case of CloudSQL instances or Cloud Spanner instances), or the database instance itself. Some database resources may not have the full resource name populated because these resource types are not yet supported by Cloud Asset Inventory (e.g. CloudSQL databases). In these cases only the display name will be provided.


name str
The full resource name of the database the user connected to, if it is supported by CAI. (
display_name str
The human readable name of the database the user connected to.
user_name str
The username used to connect to the DB. This may not necessarily be an IAM principal, and has no required format.
query str
The SQL statement associated with the relevant access.
grantees Sequence[str]
The target usernames/roles/groups of a SQL privilege grant (not an IAM policy change).


builtins.object > proto.message.Message > Database