lib/google/apis/securitycenter_v1beta2/classes.rb in google-apis-securitycenter_v1beta2-0.38.0 vs lib/google/apis/securitycenter_v1beta2/classes.rb in google-apis-securitycenter_v1beta2-0.39.0
- old
+ new
@@ -1628,15 +1628,30 @@
# Name for the resource value config
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
+ # Apply resource_value only to resources that match resource_type. resource_type
+ # will be checked with "AND" of other resources. E.g. "storage.googleapis.com/
+ # Bucket" with resource_value "HIGH" will apply "HIGH" value only to "storage.
+ # googleapis.com/Bucket" resources.
+ # Corresponds to the JSON property `resourceType`
+ # @return [String]
+ attr_accessor :resource_type
+
# Required. Resource value level this expression represents
# Corresponds to the JSON property `resourceValue`
# @return [String]
attr_accessor :resource_value
+ # Project or folder to scope this config to. For example, "project/456" would
+ # apply this config only to resources in "project/456" scope will be checked
+ # with "AND" of other resources.
+ # Corresponds to the JSON property `scope`
+ # @return [String]
+ attr_accessor :scope
+
# Required. Tag values combined with AND to check against. Values in the form "
# tagValues/123" E.g. [ "tagValues/123", "tagValues/456", "tagValues/789" ]
# https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
# Corresponds to the JSON property `tagValues`
# @return [Array<String>]
@@ -1647,10 +1662,12 @@
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
@resource_value = args[:resource_value] if args.key?(:resource_value)
+ @scope = args[:scope] if args.key?(:scope)
@tag_values = args[:tag_values] if args.key?(:tag_values)
end
end
# Response of asset discovery run