Class: Google::Apis::SecuritycenterV1::NotificationConfig
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::NotificationConfig
- 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
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.
Instance Attribute Summary collapse
-
#description ⇒ String
The description of the notification config (max of 1024 characters).
-
#name ⇒ String
The relative resource name of this notification config.
-
#pubsub_topic ⇒ String
The Pub/Sub topic to send notifications to.
-
#service_account ⇒ String
Output only.
-
#streaming_config ⇒ Google::Apis::SecuritycenterV1::StreamingConfig
The config for streaming-based notifications, which send each event as soon as it is detected.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NotificationConfig
constructor
A new instance of NotificationConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NotificationConfig
Returns a new instance of NotificationConfig.
8993 8994 8995 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8993 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
The description of the notification config (max of 1024 characters).
Corresponds to the JSON property description
8964 8965 8966 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8964 def description @description end |
#name ⇒ String
The relative resource name of this notification config. See: https://cloud.
google.com/apis/design/resource_names#relative_resource_name Example: "
organizations/organization_id
/notificationConfigs/notify_public_bucket", "
folders/folder_id
/notificationConfigs/notify_public_bucket", or "projects/
project_id
/notificationConfigs/notify_public_bucket".
Corresponds to the JSON property name
8973 8974 8975 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8973 def name @name end |
#pubsub_topic ⇒ String
The Pub/Sub topic to send notifications to. Its format is "projects/[
project_id]/topics/[topic]".
Corresponds to the JSON property pubsubTopic
8979 8980 8981 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8979 def pubsub_topic @pubsub_topic end |
#service_account ⇒ String
Output only. The service account that needs "pubsub.topics.publish" permission
to publish to the Pub/Sub topic.
Corresponds to the JSON property serviceAccount
8985 8986 8987 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8985 def service_account @service_account end |
#streaming_config ⇒ Google::Apis::SecuritycenterV1::StreamingConfig
The config for streaming-based notifications, which send each event as soon as
it is detected.
Corresponds to the JSON property streamingConfig
8991 8992 8993 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8991 def streaming_config @streaming_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8998 8999 9000 9001 9002 9003 9004 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8998 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 |