Class: Google::Apis::ClassroomV1::CloudPubsubTopic
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1::CloudPubsubTopic
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/classroom_v1/classes.rb,
lib/google/apis/classroom_v1/representations.rb,
lib/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.
Constructor Details
#initialize(**args) ⇒ CloudPubsubTopic
Returns a new instance of CloudPubsubTopic.
388 389 390 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 388 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
386 387 388 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 386 def topic_name @topic_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
393 394 395 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 393 def update!(**args) @topic_name = args[:topic_name] if args.key?(:topic_name) end |