Cloud Security Command Center V1 API - Class Google::Cloud::SecurityCenter::V1::Database (v0.23.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 CloudSQL instances or Cloud Spanner instances), or the database instance itself. 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. CloudSQL databases). In these cases only the display name will be provided.

Inherits

  • Object

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 the user connected to.

#display_name=

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

#grantees

def grantees() -> ::Array<::String>
Returns
  • (::Array<::String>) — The target usernames/roles/groups of a SQL privilege grant (not an IAM policy change).

#grantees=

def grantees=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — The target usernames/roles/groups of a SQL privilege grant (not an IAM policy change).
Returns
  • (::Array<::String>) — The target usernames/roles/groups of a SQL privilege grant (not an IAM policy change).

#name

def name() -> ::String
Returns
  • (::String) — The full resource name of the database the user connected to, if it is supported by CAI. (https://google.aip.dev/122#full-resource-names)

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — The full resource name of the database the user connected to, if it is supported by CAI. (https://google.aip.dev/122#full-resource-names)
Returns
  • (::String) — The full resource name of the database the user connected to, if it is supported by CAI. (https://google.aip.dev/122#full-resource-names)

#query

def query() -> ::String
Returns
  • (::String) — The SQL statement associated with the relevant access.

#query=

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

#user_name

def user_name() -> ::String
Returns
  • (::String) — The username used to connect to the DB. This may not necessarily be an IAM principal, and has no required format.

#user_name=

def user_name=(value) -> ::String
Parameter
  • value (::String) — The username used to connect to the DB. This may not necessarily be an IAM principal, and has no required format.
Returns
  • (::String) — The username used to connect to the DB. This may not necessarily be an IAM principal, and has no required format.