Class: Google::Apis::AlertcenterV1beta1::CloudPubsubTopic
- Inherits:
-
Object
- Object
- Google::Apis::AlertcenterV1beta1::CloudPubsubTopic
- 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
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.
Instance Attribute Summary collapse
-
#payload_format ⇒ String
Optional.
-
#topic_name ⇒ String
The
name
field of a Cloud Pubsub Topic.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudPubsubTopic
constructor
A new instance of CloudPubsubTopic.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudPubsubTopic
Returns a new instance of CloudPubsubTopic.
855 856 857 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 855 def initialize(**args) update!(**args) end |
Instance Attribute Details
#payload_format ⇒ String
Optional. The format of the payload that would be sent. If not specified the
format will be JSON.
Corresponds to the JSON property payloadFormat
847 848 849 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 847 def payload_format @payload_format end |
#topic_name ⇒ String
The name
field of a Cloud Pubsub Topic.
Corresponds to the JSON property topicName
853 854 855 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 853 def topic_name @topic_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
860 861 862 863 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 860 def update!(**args) @payload_format = args[:payload_format] if args.key?(:payload_format) @topic_name = args[:topic_name] if args.key?(:topic_name) end |