Class: Google::Apis::ClassroomV1::CloudPubsubTopic
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1::CloudPubsubTopic
- Defined in:
- generated/google/apis/classroom_v1/classes.rb,
generated/google/apis/classroom_v1/representations.rb,
generated/google/apis/classroom_v1/representations.rb
Overview
A reference to a Cloud Pub/Sub topic.
To register for notifications, the owner of the topic must grant
classroom-notifications@system.gserviceaccount.com
the
projects.topics.publish
permission.
Instance Attribute Summary collapse
-
#topic_name ⇒ String
The
name
field of a Cloud Pub/Sub Topic.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudPubsubTopic
constructor
A new instance of CloudPubsubTopic.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ CloudPubsubTopic
Returns a new instance of CloudPubsubTopic
219 220 221 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 219 def initialize(**args) update!(**args) end |
Instance Attribute Details
#topic_name ⇒ String
The name
field of a Cloud Pub/Sub
Topic.
Corresponds to the JSON property topicName
217 218 219 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 217 def topic_name @topic_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
224 225 226 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 224 def update!(**args) @topic_name = args[:topic_name] if args.key?(:topic_name) end |