Reference documentation and code samples for the Cloud Security Command Center V1 API class Google::Cloud::SecurityCenter::V1::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 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
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#display_name
def display_name() -> ::String
- (::String) — The human-readable name of the database that the user connected to.
#display_name=
def display_name=(value) -> ::String
- value (::String) — The human-readable name of the database that the user connected to.
- (::String) — The human-readable name of the database that the user connected to.
#grantees
def grantees() -> ::Array<::String>
- (::Array<::String>) — The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.
#grantees=
def grantees=(value) -> ::Array<::String>
- value (::Array<::String>) — The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.
- (::Array<::String>) — The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.
#name
def name() -> ::String
- (::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). 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.
#name=
def name=(value) -> ::String
- value (::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). 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.
- (::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). 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
def query() -> ::String
- (::String) — The SQL statement that is associated with the database access.
#query=
def query=(value) -> ::String
- value (::String) — The SQL statement that is associated with the database access.
- (::String) — The SQL statement that is associated with the database access.
#user_name
def user_name() -> ::String
- (::String) — The username used to connect to the database. The username might not be an IAM principal and does not have a set format.
#user_name=
def user_name=(value) -> ::String
- value (::String) — The username used to connect to the database. The username might not be an IAM principal and does not have a set format.
- (::String) — The username used to connect to the database. The username might not be an IAM principal and does not have a set format.
#version
def version() -> ::String
- (::String) — The version of the database, for example, POSTGRES_14. See the complete list.
#version=
def version=(value) -> ::String
- value (::String) — The version of the database, for example, POSTGRES_14. See the complete list.
- (::String) — The version of the database, for example, POSTGRES_14. See the complete list.