NAME

Google::Cloud::Securitycenter::V1::Database - Compiled Protocol Buffers messages for google/cloud/securitycenter/v1/database.proto

SYNOPSIS

use Google::Cloud::Securitycenter::V1::Database;

my $msg = Google::Cloud::Securitycenter::V1::Database::Database->new({
    name => $name,
    display_name => $display_name,
    user_name => $user_name,
    query => $query,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Securitycenter::V1::Database::Database->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/securitycenter/v1/database.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Securitycenter::V1::Database::Database

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](https://google.aip.dev/122#full-resource-names) 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.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Some database resources may not have the [full resource name](https://google.aip.dev/122#full-resource-names) 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](https://google.aip.dev/122#full-resource-names) of the database that the user connected to, if it is supported by Cloud Asset Inventory.

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    The human-readable name of the database that the user connected to.

  • $msg->user_name() / $msg->user_name($value)

    Type: String

    The username used to connect to the database. The username might not be an IAM principal and does not have a set format.

  • $msg->query() / $msg->query($value)

    Type: String

    The SQL statement that is associated with the database access.

  • $msg->grantees() / $msg->grantees($value)

    Type: String

    The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.

  • $msg->version() / $msg->version($value)

    Type: String

    The version of the database, for example, POSTGRES_14. See [the complete list](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion).

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Securitycenter::V1::Database::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.