Cloud Security Command Center V1 API - Class Google::Cloud::SecurityCenter::V1::Database (v0.40.0)

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
Returns
  • (::String) — The human-readable name of the database that the user connected to.

#display_name=

def display_name=(value) -> ::String
Parameter
  • value (::String) — The human-readable name of the database that the user connected to.
Returns
  • (::String) — The human-readable name of the database that the user connected to.

#grantees

def grantees() -> ::Array<::String>
Returns
  • (::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>
Parameter
  • value (::Array<::String>) — The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.
Returns
  • (::Array<::String>) — The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.

#name

def name() -> ::String
Returns
  • (::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
Parameter
  • 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.
Returns
  • (::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
Returns
  • (::String) — The SQL statement that is associated with the database access.

#query=

def query=(value) -> ::String
Parameter
  • value (::String) — The SQL statement that is associated with the database access.
Returns
  • (::String) — The SQL statement that is associated with the database access.

#user_name

def user_name() -> ::String
Returns
  • (::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
Parameter
  • 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.
Returns
  • (::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
Returns
  • (::String) — The version of the database, for example, POSTGRES_14. See the complete list.

#version=

def version=(value) -> ::String
Parameter
  • value (::String) — The version of the database, for example, POSTGRES_14. See the complete list.
Returns
  • (::String) — The version of the database, for example, POSTGRES_14. See the complete list.