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
- (::String) — The human readable name of the database the user connected to.
#display_name=
def display_name=(value) -> ::String
- value (::String) — The human readable name of the database the user connected to.
- (::String) — The human readable name of the database the user connected to.
#grantees
def grantees() -> ::Array<::String>
- (::Array<::String>) — The target usernames/roles/groups of a SQL privilege grant (not an IAM policy change).
#grantees=
def grantees=(value) -> ::Array<::String>
- value (::Array<::String>) — The target usernames/roles/groups of a SQL privilege grant (not an IAM policy change).
- (::Array<::String>) — The target usernames/roles/groups of a SQL privilege grant (not an IAM policy change).
#name
def name() -> ::String
- (::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
- 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)
- (::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
- (::String) — The SQL statement associated with the relevant access.
#query=
def query=(value) -> ::String
- value (::String) — The SQL statement associated with the relevant access.
- (::String) — The SQL statement associated with the relevant access.
#user_name
def user_name() -> ::String
- (::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
- value (::String) — The username used to connect to the DB. This may not necessarily be an IAM principal, and has no required format.
- (::String) — The username used to connect to the DB. This may not necessarily be an IAM principal, and has no required format.