Class: Google::Apis::AlertcenterV1beta1::Notification
- Inherits:
-
Object
- Object
- Google::Apis::AlertcenterV1beta1::Notification
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alertcenter_v1beta1/classes.rb,
lib/google/apis/alertcenter_v1beta1/representations.rb,
lib/google/apis/alertcenter_v1beta1/representations.rb
Overview
Settings for callback notifications. For more details see Google Workspace Alert Notification.
Instance Attribute Summary collapse
-
#cloud_pubsub_topic ⇒ Google::Apis::AlertcenterV1beta1::CloudPubsubTopic
A reference to a Cloud Pubsub topic.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Notification
constructor
A new instance of Notification.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Notification
Returns a new instance of Notification.
1570 1571 1572 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1570 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cloud_pubsub_topic ⇒ Google::Apis::AlertcenterV1beta1::CloudPubsubTopic
A reference to a Cloud Pubsub topic. To register for notifications, the owner
of the topic must grant alerts-api-push-notifications@system.gserviceaccount.
com
the projects.topics.publish
permission.
Corresponds to the JSON property cloudPubsubTopic
1568 1569 1570 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1568 def cloud_pubsub_topic @cloud_pubsub_topic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1575 1576 1577 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1575 def update!(**args) @cloud_pubsub_topic = args[:cloud_pubsub_topic] if args.key?(:cloud_pubsub_topic) end |