Class: Google::Apis::AlertcenterV1beta1::Notification

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

Overview

Settings for callback notifications. For more details see G Suite Alert 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) ⇒ Notification

Returns a new instance of Notification.



1163
1164
1165
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 1163

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

Instance Attribute Details

#cloud_pubsub_topicGoogle::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



1161
1162
1163
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 1161

def cloud_pubsub_topic
  @cloud_pubsub_topic
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1168
1169
1170
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 1168

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