lib/google/apis/securitycenter_v1beta2/classes.rb in google-apis-securitycenter_v1beta2-0.50.0 vs lib/google/apis/securitycenter_v1beta2/classes.rb in google-apis-securitycenter_v1beta2-0.51.0
- old
+ new
@@ -607,14 +607,11 @@
# 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](https://google.aip.dev/122#full-
# resource-names) 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. Some database resources may not have the [full
- # resource name](https://google.aip.dev/122#full-resource-names) 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 display name is provided.
class Database
include Google::Apis::Core::Hashable
# The human-readable name of the database that the user connected to.
# Corresponds to the JSON property `displayName`
@@ -625,13 +622,16 @@
# an IAM policy change.
# Corresponds to the JSON property `grantees`
# @return [Array<String>]
attr_accessor :grantees
- # The [full resource name](https://google.aip.dev/122#full-resource-names) of
- # the database that the user connected to, if it is supported by Cloud Asset
- # Inventory.
+ # Some database resources may not have the [full resource name](https://google.
+ # aip.dev/122#full-resource-names) 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](
+ # https://google.aip.dev/122#full-resource-names) of the database that the user
+ # connected to, if it is supported by Cloud Asset Inventory.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The SQL statement that is associated with the database access.
@@ -643,10 +643,16 @@
# principal and does not have a set format.
# Corresponds to the JSON property `userName`
# @return [String]
attr_accessor :user_name
+ # The version of the database, for example, POSTGRES_14. See [the complete list](
+ # https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion).
+ # Corresponds to the JSON property `version`
+ # @return [String]
+ attr_accessor :version
+
def initialize(**args)
update!(**args)
end
# Update properties of this object
@@ -654,10 +660,11 @@
@display_name = args[:display_name] if args.key?(:display_name)
@grantees = args[:grantees] if args.key?(:grantees)
@name = args[:name] if args.key?(:name)
@query = args[:query] if args.key?(:query)
@user_name = args[:user_name] if args.key?(:user_name)
+ @version = args[:version] if args.key?(:version)
end
end
# Details of a subscription.
class Details
@@ -1027,13 +1034,10 @@
# 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](https://google.aip.dev/122#full-
# resource-names) 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. Some database resources may not have the [full
- # resource name](https://google.aip.dev/122#full-resource-names) 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 display name is provided.
# Corresponds to the JSON property `database`
# @return [Google::Apis::SecuritycenterV1beta2::Database]
attr_accessor :database
# Contains more details about the finding.