lib/google/apis/securitycenter_v1beta2/classes.rb in google-apis-securitycenter_v1beta2-0.6.0 vs lib/google/apis/securitycenter_v1beta2/classes.rb in google-apis-securitycenter_v1beta2-0.7.0

- old
+ new

@@ -216,10 +216,23 @@ # is guaranteed to be either empty or a well formed URL. # Corresponds to the JSON property `externalUri` # @return [String] attr_accessor :external_uri + # The class of the finding. + # Corresponds to the JSON property `findingClass` + # @return [String] + attr_accessor :finding_class + + # Represents what's commonly known as an Indicator of compromise (IoC) in + # computer forensics. This is an artifact observed on a network or in an + # operating system that, with high confidence, indicates a computer intrusion. + # Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise + # Corresponds to the JSON property `indicator` + # @return [Google::Apis::SecuritycenterV1beta2::Indicator] + attr_accessor :indicator + # The relative resource name of this finding. See: https://cloud.google.com/apis/ # design/resource_names#relative_resource_name Example: "organizations/` # organization_id`/sources/`source_id`/findings/`finding_id`" # Corresponds to the JSON property `name` # @return [String] @@ -278,10 +291,12 @@ @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) + @finding_class = args[:finding_class] if args.key?(:finding_class) + @indicator = args[:indicator] if args.key?(:indicator) @name = args[:name] if args.key?(:name) @parent = args[:parent] if args.key?(:parent) @resource_name = args[:resource_name] if args.key?(:resource_name) @security_marks = args[:security_marks] if args.key?(:security_marks) @severity = args[:severity] if args.key?(:severity) @@ -748,9 +763,37 @@ # 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 + + # Represents what's commonly known as an Indicator of compromise (IoC) in + # computer forensics. This is an artifact observed on a network or in an + # operating system that, with high confidence, indicates a computer intrusion. + # Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise + class Indicator + include Google::Apis::Core::Hashable + + # List of domains associated to the Finding. + # Corresponds to the JSON property `domains` + # @return [Array<String>] + attr_accessor :domains + + # List of ip addresses associated to the Finding. + # Corresponds to the JSON property `ipAddresses` + # @return [Array<String>] + attr_accessor :ip_addresses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @domains = args[:domains] if args.key?(:domains) + @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses) end end # Resource capturing the settings for Security Center. class SecurityCenterSettings