Class: Google::Apis::SecuritycenterV1beta2::AssociatedFinding

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb

Overview

A finding that is associated with this node in the exposure path.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AssociatedFinding

Returns a new instance of AssociatedFinding.



194
195
196
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 194

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#canonical_finding_nameString

Canonical name of the associated findings. Example: organizations/123/sources/ 456/findings/789 Corresponds to the JSON property canonicalFindingName

Returns:

  • (String)


187
188
189
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 187

def canonical_finding_name
  @canonical_finding_name
end

#finding_categoryString

The additional taxonomy group within findings from a given source. Corresponds to the JSON property findingCategory

Returns:

  • (String)


192
193
194
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 192

def finding_category
  @finding_category
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



199
200
201
202
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 199

def update!(**args)
  @canonical_finding_name = args[:canonical_finding_name] if args.key?(:canonical_finding_name)
  @finding_category = args[:finding_category] if args.key?(:finding_category)
end