- Resource: Registration
- Feed
- FeedType
- CourseRosterChangesInfo
- CourseWorkChangesInfo
- CloudPubsubTopic
- Methods
Resource: Registration
An instruction to Classroom to send notifications from the feed
to the provided destination.
JSON representation |
---|
{ "registrationId": string, "feed": { object ( |
Fields | |
---|---|
registration |
A server-generated unique identifier for this Read-only. |
feed |
Specification for the class of notifications that Classroom should deliver to the destination. |
expiry |
The time until which the This is a read-only field assigned by the server. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
Union field destination . Where notifications should be sent. destination can be only one of the following: |
|
cloud |
The Cloud Pub/Sub topic that notifications are to be sent to. |
Feed
A class of notifications that an application can register to receive. For example: "all roster changes for a domain".
JSON representation |
---|
{ "feedType": enum ( |
Fields | |
---|---|
feed |
The type of feed. |
Union field info . Additional parameters about the feed. info can be only one of the following: |
|
course |
Information about a |
course |
Information about a |
FeedType
A type of feed that an application can register for notifications from.
Enums | |
---|---|
FEED_TYPE_UNSPECIFIED |
Should never be returned or provided. |
DOMAIN_ROSTER_CHANGES |
All roster changes for a particular domain. Notifications will be generated whenever a user joins or leaves a course. No notifications will be generated when an invitation is created or deleted, but notifications will be generated when a user joins a course by accepting an invitation. |
COURSE_ROSTER_CHANGES |
All roster changes for a particular course. Notifications will be generated whenever a user joins or leaves a course. No notifications will be generated when an invitation is created or deleted, but notifications will be generated when a user joins a course by accepting an invitation. |
COURSE_WORK_CHANGES |
All course work activity for a particular course. Notifications will be generated when a CourseWork or StudentSubmission object is created or modified. No notification will be generated when a StudentSubmission object is created in connection with the creation or modification of its parent CourseWork object (but a notification will be generated for that CourseWork object's creation or modification). |
CourseRosterChangesInfo
Information about a Feed
with a feedType
of COURSE_ROSTER_CHANGES
.
JSON representation |
---|
{ "courseId": string } |
Fields | |
---|---|
course |
The |
CourseWorkChangesInfo
Information about a Feed
with a feedType
of COURSE_WORK_CHANGES
.
JSON representation |
---|
{ "courseId": string } |
Fields | |
---|---|
course |
The |
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.
JSON representation |
---|
{ "topicName": string } |
Fields | |
---|---|
topic |
The |
Methods |
|
---|---|
|
Creates a Registration , causing Classroom to start sending notifications from the provided feed to the destination provided in cloudPubSubTopic . |
|
Deletes a Registration , causing Classroom to stop sending notifications for that Registration . |