class Google::Apis::ClassroomV1::Registration

An instruction to Classroom to send notifications from the `feed` to the provided destination.

Attributes

cloud_pubsub_topic[RW]

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. Corresponds to the JSON property `cloudPubsubTopic` @return [Google::Apis::ClassroomV1::CloudPubsubTopic]

expiry_time[RW]

The time until which the `Registration` is effective. This is a read-only field assigned by the server. Corresponds to the JSON property `expiryTime` @return [String]

feed[RW]

A class of notifications that an application can register to receive. For example: “all roster changes for a domain”. Corresponds to the JSON property `feed` @return [Google::Apis::ClassroomV1::Feed]

registration_id[RW]

A server-generated unique identifier for this `Registration`. Read-only. Corresponds to the JSON property `registrationId` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/classroom_v1/classes.rb, line 1769
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 1774
def update!(**args)
  @cloud_pubsub_topic = args[:cloud_pubsub_topic] if args.key?(:cloud_pubsub_topic)
  @expiry_time = args[:expiry_time] if args.key?(:expiry_time)
  @feed = args[:feed] if args.key?(:feed)
  @registration_id = args[:registration_id] if args.key?(:registration_id)
end