View Source GoogleApi.SecurityCenter.V1.Model.Database (google_api_security_center v0.29.0)

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.

Attributes

  • displayName (type: String.t, default: nil) - The human-readable name of the database that the user connected to.
  • grantees (type: list(String.t), default: nil) - The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.
  • name (type: String.t, default: nil) - 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). In these cases only the display name will be provided. The full resource name of the database that the user connected to, if it is supported by Cloud Asset Inventory.
  • query (type: String.t, default: nil) - The SQL statement that is associated with the database access.
  • userName (type: String.t, default: nil) - The username used to connect to the database. The username might not be an IAM principal and does not have a set format.
  • version (type: String.t, default: nil) - The version of the database, for example, POSTGRES_14. See the complete list.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.SecurityCenter.V1.Model.Database{
  displayName: String.t() | nil,
  grantees: [String.t()] | nil,
  name: String.t() | nil,
  query: String.t() | nil,
  userName: String.t() | nil,
  version: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.