class Google::Apis::ClassroomV1::CloudPubsubTopic

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.

Attributes

topic_name[RW]

The `name` field of a Cloud Pub/Sub [Topic](cloud.google.com/pubsub/ docs/reference/rest/v1/projects.topics#Topic). Corresponds to the JSON property `topicName` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/classroom_v1/classes.rb, line 208
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/classroom_v1/classes.rb, line 213
def update!(**args)
  @topic_name = args[:topic_name] if args.key?(:topic_name)
end