Class: Google::Apis::ClassroomV1::CloudPubsubTopic

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudPubsubTopic

Returns a new instance of CloudPubsubTopic.



208
209
210
# File 'generated/google/apis/classroom_v1/classes.rb', line 208

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

Instance Attribute Details

#topic_nameString

The name field of a Cloud Pub/Sub Topic. Corresponds to the JSON property topicName

Returns:

  • (String)


206
207
208
# File 'generated/google/apis/classroom_v1/classes.rb', line 206

def topic_name
  @topic_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



213
214
215
# File 'generated/google/apis/classroom_v1/classes.rb', line 213

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