Class: Google::Apis::SecuritycenterV1::ListFindingsResult

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

Overview

Result containing the Finding and its StateChange.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListFindingsResult

Returns a new instance of ListFindingsResult.



8556
8557
8558
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8556

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

Instance Attribute Details

#findingGoogle::Apis::SecuritycenterV1::Finding

Security Command Center finding. A finding is a record of assessment data like security, risk, health, or privacy, that is ingested into Security Command Center for presentation, notification, analysis, policy testing, and enforcement. For example, a cross-site scripting (XSS) vulnerability in an App Engine application is a finding. Corresponds to the JSON property finding



8543
8544
8545
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8543

def finding
  @finding
end

#resourceGoogle::Apis::SecuritycenterV1::Resource

Information related to the Google Cloud resource that is associated with this finding. Corresponds to the JSON property resource



8549
8550
8551
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8549

def resource
  @resource
end

#state_changeString

State change of the finding between the points in time. Corresponds to the JSON property stateChange

Returns:

  • (String)


8554
8555
8556
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8554

def state_change
  @state_change
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8561
8562
8563
8564
8565
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8561

def update!(**args)
  @finding = args[:finding] if args.key?(:finding)
  @resource = args[:resource] if args.key?(:resource)
  @state_change = args[:state_change] if args.key?(:state_change)
end