Class: Google::Apis::ClassroomV1::Registration
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1::Registration
- 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
An instruction to Classroom to send notifications from the feed
to the
provided destination.
Instance Attribute Summary collapse
-
#cloud_pubsub_topic ⇒ Google::Apis::ClassroomV1::CloudPubsubTopic
A reference to a Cloud Pub/Sub topic.
-
#expiry_time ⇒ String
The time until which the
Registration
is effective. -
#feed ⇒ Google::Apis::ClassroomV1::Feed
A class of notifications that an application can register to receive.
-
#registration_id ⇒ String
A server-generated unique identifier for this
Registration
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Registration
constructor
A new instance of Registration.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Registration
Returns a new instance of Registration.
2127 2128 2129 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 2127 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cloud_pubsub_topic ⇒ 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.
Corresponds to the JSON property cloudPubsubTopic
2108 2109 2110 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 2108 def cloud_pubsub_topic @cloud_pubsub_topic end |
#expiry_time ⇒ String
The time until which the Registration
is effective. This is a read-only
field assigned by the server.
Corresponds to the JSON property expiryTime
2114 2115 2116 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 2114 def expiry_time @expiry_time end |
#feed ⇒ Google::Apis::ClassroomV1::Feed
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
2120 2121 2122 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 2120 def feed @feed end |
#registration_id ⇒ String
A server-generated unique identifier for this Registration
. Read-only.
Corresponds to the JSON property registrationId
2125 2126 2127 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 2125 def registration_id @registration_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2132 2133 2134 2135 2136 2137 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 2132 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 |