Class: Google::Cloud::SecurityCenter::V1::Database

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/securitycenter/v1/database.rb

Overview

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.

Instance Attribute Summary collapse

Instance Attribute Details

#display_name::String

Returns 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.



60
61
62
63
# File 'proto_docs/google/cloud/securitycenter/v1/database.rb', line 60

class Database
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#grantees::Array<::String>

Returns 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.



60
61
62
63
# File 'proto_docs/google/cloud/securitycenter/v1/database.rb', line 60

class Database
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#name::String

Returns 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.



60
61
62
63
# File 'proto_docs/google/cloud/securitycenter/v1/database.rb', line 60

class Database
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#query::String

Returns The SQL statement that is associated with the database access.

Returns:

  • (::String)

    The SQL statement that is associated with the database access.



60
61
62
63
# File 'proto_docs/google/cloud/securitycenter/v1/database.rb', line 60

class Database
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#user_name::String

Returns 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.



60
61
62
63
# File 'proto_docs/google/cloud/securitycenter/v1/database.rb', line 60

class Database
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#version::String

Returns 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.



60
61
62
63
# File 'proto_docs/google/cloud/securitycenter/v1/database.rb', line 60

class Database
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end