Database class

Represents database access information, such as queries.

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

Constructors

Database({String? displayName, List<String>? grantees, String? name, String? query, String? userName, String? version})
Database.fromJson(Map json_)

Properties

displayName String?
The human-readable name of the database that the user connected to.
getter/setter pair
grantees List<String>?
The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
name String?
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. Cloud SQL databases).
getter/setter pair
query String?
The SQL statement that is associated with the database access.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userName String?
The username used to connect to the database.
getter/setter pair
version String?
The version of the database, for example, POSTGRES_14.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited