class Google::Apis::SecuritycenterV1::NotificationConfig

Cloud Security Command Center (Cloud SCC) notification configs. A notification config is a Cloud SCC resource that contains the configuration to send notifications for create/update events of findings, assets and etc.

Attributes

description[RW]

The description of the notification config (max of 1024 characters). Corresponds to the JSON property `description` @return [String]

name[RW]

The relative resource name of this notification config. See: cloud. google.com/apis/design/resource_names#relative_resource_name Example: “ organizations/`organization_id`/notificationConfigs/notify_public_bucket”. Corresponds to the JSON property `name` @return [String]

pubsub_topic[RW]

The Pub/Sub topic to send notifications to. Its format is “projects/[ project_id]/topics/”. Corresponds to the JSON property `pubsubTopic` @return [String]

service_account[RW]

Output only. The service account that needs “pubsub.topics.publish” permission to publish to the Pub/Sub topic. Corresponds to the JSON property `serviceAccount` @return [String]

streaming_config[RW]

The config for streaming-based notifications, which send each event as soon as it is detected. Corresponds to the JSON property `streamingConfig` @return [Google::Apis::SecuritycenterV1::StreamingConfig]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/securitycenter_v1/classes.rb, line 1729
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/securitycenter_v1/classes.rb, line 1734
def update!(**args)
  @description = args[:description] if args.key?(:description)
  @name = args[:name] if args.key?(:name)
  @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
  @service_account = args[:service_account] if args.key?(:service_account)
  @streaming_config = args[:streaming_config] if args.key?(:streaming_config)
end