Class: Google::Apis::SecuritycenterV1p1beta1::NotificationConfig
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1p1beta1::NotificationConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/securitycenter_v1p1beta1/classes.rb,
generated/google/apis/securitycenter_v1p1beta1/representations.rb,
generated/google/apis/securitycenter_v1p1beta1/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).
-
#event_type ⇒ String
The type of events the config is for, e.g.
-
#name ⇒ String
The relative resource name of this notification config.
-
#pubsub_topic ⇒ String
The PubSub topic to send notifications to.
-
#service_account ⇒ String
Output only.
-
#streaming_config ⇒ Google::Apis::SecuritycenterV1p1beta1::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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ NotificationConfig
Returns a new instance of NotificationConfig.
1569 1570 1571 |
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 1569 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
1536 1537 1538 |
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 1536 def description @description end |
#event_type ⇒ String
The type of events the config is for, e.g. FINDING.
Corresponds to the JSON property eventType
1541 1542 1543 |
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 1541 def event_type @event_type 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".
Corresponds to the JSON property name
1549 1550 1551 |
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 1549 def name @name end |
#pubsub_topic ⇒ String
The PubSub topic to send notifications to. Its format is
"projects/[project_id]/topics/[topic]".
Corresponds to the JSON property pubsubTopic
1555 1556 1557 |
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 1555 def pubsub_topic @pubsub_topic end |
#service_account ⇒ String
Output only. The service account that needs "pubsub.topics.publish"
permission to publish to the PubSub topic.
Corresponds to the JSON property serviceAccount
1561 1562 1563 |
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 1561 def service_account @service_account end |
#streaming_config ⇒ Google::Apis::SecuritycenterV1p1beta1::StreamingConfig
The config for streaming-based notifications, which send each event as soon
as it is detected.
Corresponds to the JSON property streamingConfig
1567 1568 1569 |
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 1567 def streaming_config @streaming_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1574 1575 1576 1577 1578 1579 1580 1581 |
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 1574 def update!(**args) @description = args[:description] if args.key?(:description) @event_type = args[:event_type] if args.key?(:event_type) @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 |