lib/google/apis/securitycenter_v1beta2/classes.rb in google-apis-securitycenter_v1beta2-0.2.0 vs lib/google/apis/securitycenter_v1beta2/classes.rb in google-apis-securitycenter_v1beta2-0.3.0
- old
+ new
@@ -179,10 +179,19 @@
# enforcement. For example, a cross-site scripting (XSS) vulnerability in an App
# Engine application is a finding.
class Finding
include Google::Apis::Core::Hashable
+ # The canonical name of the finding. It's either "organizations/`organization_id`
+ # /sources/`source_id`/findings/`finding_id`", "folders/`folder_id`/sources/`
+ # source_id`/findings/`finding_id`" or "projects/`project_number`/sources/`
+ # source_id`/findings/`finding_id`", depending on the closest CRM ancestor of
+ # the resource associated with the finding.
+ # Corresponds to the JSON property `canonicalName`
+ # @return [String]
+ attr_accessor :canonical_name
+
# The additional taxonomy group within findings from a given source. This field
# is immutable after creation time. Example: "XSS_FLASH_INJECTION"
# Corresponds to the JSON property `category`
# @return [String]
attr_accessor :category
@@ -194,11 +203,12 @@
# The time at which the event took place, or when an update to the finding
# occurred. For example, if the finding represents an open firewall it would
# capture the time the detector believes the firewall became open. The accuracy
# is determined by the detector. If the finding were to be resolved afterward,
- # this time would reflect when the finding was resolved.
+ # this time would reflect when the finding was resolved. Must not be set to a
+ # value greater than the current timestamp.
# Corresponds to the JSON property `eventTime`
# @return [String]
attr_accessor :event_time
# The URI that, if available, points to a web page outside of Security Command
@@ -263,10 +273,11 @@
update!(**args)
end
# Update properties of this object
def update!(**args)
+ @canonical_name = args[:canonical_name] if args.key?(:canonical_name)
@category = args[:category] if args.key?(:category)
@create_time = args[:create_time] if args.key?(:create_time)
@event_time = args[:event_time] if args.key?(:event_time)
@external_uri = args[:external_uri] if args.key?(:external_uri)
@name = args[:name] if args.key?(:name)
@@ -447,10 +458,19 @@
# presentation, notification, analysis, policy testing, and enforcement. For
# example, an XSS vulnerability in an App Engine application is a finding.
class GoogleCloudSecuritycenterV1p1beta1Finding
include Google::Apis::Core::Hashable
+ # The canonical name of the finding. It's either "organizations/`organization_id`
+ # /sources/`source_id`/findings/`finding_id`", "folders/`folder_id`/sources/`
+ # source_id`/findings/`finding_id`" or "projects/`project_number`/sources/`
+ # source_id`/findings/`finding_id`", depending on the closest CRM ancestor of
+ # the resource associated with the finding.
+ # Corresponds to the JSON property `canonicalName`
+ # @return [String]
+ attr_accessor :canonical_name
+
# The additional taxonomy group within findings from a given source. This field
# is immutable after creation time. Example: "XSS_FLASH_INJECTION"
# Corresponds to the JSON property `category`
# @return [String]
attr_accessor :category
@@ -462,11 +482,12 @@
# The time at which the event took place, or when an update to the finding
# occurred. For example, if the finding represents an open firewall it would
# capture the time the detector believes the firewall became open. The accuracy
# is determined by the detector. If the finding were to be resolved afterward,
- # this time would reflect when the finding was resolved.
+ # this time would reflect when the finding was resolved. Must not be set to a
+ # value greater than the current timestamp.
# Corresponds to the JSON property `eventTime`
# @return [String]
attr_accessor :event_time
# The URI that, if available, points to a web page outside of Security Command
@@ -531,10 +552,11 @@
update!(**args)
end
# Update properties of this object
def update!(**args)
+ @canonical_name = args[:canonical_name] if args.key?(:canonical_name)
@category = args[:category] if args.key?(:category)
@create_time = args[:create_time] if args.key?(:create_time)
@event_time = args[:event_time] if args.key?(:event_time)
@external_uri = args[:external_uri] if args.key?(:external_uri)
@name = args[:name] if args.key?(:name)
@@ -689,10 +711,21 @@
# organization -- they can be modified and viewed by all users who have proper
# permissions on the organization.
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
include Google::Apis::Core::Hashable
+ # The canonical name of the marks. Examples: "organizations/`organization_id`/
+ # assets/`asset_id`/securityMarks" "folders/`folder_id`/assets/`asset_id`/
+ # securityMarks" "projects/`project_number`/assets/`asset_id`/securityMarks" "
+ # organizations/`organization_id`/sources/`source_id`/findings/`finding_id`/
+ # securityMarks" "folders/`folder_id`/sources/`source_id`/findings/`finding_id`/
+ # securityMarks" "projects/`project_number`/sources/`source_id`/findings/`
+ # finding_id`/securityMarks"
+ # Corresponds to the JSON property `canonicalName`
+ # @return [String]
+ attr_accessor :canonical_name
+
# Mutable user specified security marks belonging to the parent resource.
# Constraints are as follows: * Keys and values are treated as case insensitive *
# Keys must be between 1 - 256 characters (inclusive) * Keys must be letters,
# numbers, underscores, or dashes * Values have leading and trailing whitespace
# trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
@@ -712,10 +745,11 @@
update!(**args)
end
# Update properties of this object
def update!(**args)
+ @canonical_name = args[:canonical_name] if args.key?(:canonical_name)
@marks = args[:marks] if args.key?(:marks)
@name = args[:name] if args.key?(:name)
end
end
@@ -810,10 +844,21 @@
# organization -- they can be modified and viewed by all users who have proper
# permissions on the organization.
class SecurityMarks
include Google::Apis::Core::Hashable
+ # The canonical name of the marks. Examples: "organizations/`organization_id`/
+ # assets/`asset_id`/securityMarks" "folders/`folder_id`/assets/`asset_id`/
+ # securityMarks" "projects/`project_number`/assets/`asset_id`/securityMarks" "
+ # organizations/`organization_id`/sources/`source_id`/findings/`finding_id`/
+ # securityMarks" "folders/`folder_id`/sources/`source_id`/findings/`finding_id`/
+ # securityMarks" "projects/`project_number`/sources/`source_id`/findings/`
+ # finding_id`/securityMarks"
+ # Corresponds to the JSON property `canonicalName`
+ # @return [String]
+ attr_accessor :canonical_name
+
# Mutable user specified security marks belonging to the parent resource.
# Constraints are as follows: * Keys and values are treated as case insensitive *
# Keys must be between 1 - 256 characters (inclusive) * Keys must be letters,
# numbers, underscores, or dashes * Values have leading and trailing whitespace
# trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
@@ -833,9 +878,10 @@
update!(**args)
end
# Update properties of this object
def update!(**args)
+ @canonical_name = args[:canonical_name] if args.key?(:canonical_name)
@marks = args[:marks] if args.key?(:marks)
@name = args[:name] if args.key?(:name)
end
end