Class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1NotificationMessage

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

Overview

Security Command Center's Notification

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV1p1beta1NotificationMessage

Returns a new instance of GoogleCloudSecuritycenterV1p1beta1NotificationMessage.



849
850
851
# File 'generated/google/apis/securitycenter_v1/classes.rb', line 849

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

Instance Attribute Details

#findingGoogle::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Finding

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



836
837
838
# File 'generated/google/apis/securitycenter_v1/classes.rb', line 836

def finding
  @finding
end

#notification_config_nameString

Name of the notification config that generated current notification. Corresponds to the JSON property notificationConfigName

Returns:

  • (String)


841
842
843
# File 'generated/google/apis/securitycenter_v1/classes.rb', line 841

def notification_config_name
  @notification_config_name
end

#temporal_assetGoogle::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset

Wrapper over asset object that also captures the state change for the asset e.g. if it was a newly created asset vs updated or deleted asset. Corresponds to the JSON property temporalAsset



847
848
849
# File 'generated/google/apis/securitycenter_v1/classes.rb', line 847

def temporal_asset
  @temporal_asset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



854
855
856
857
858
# File 'generated/google/apis/securitycenter_v1/classes.rb', line 854

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