Class: Google::Apis::ClassroomV1::Registration

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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Registration

Returns a new instance of Registration.


1637
1638
1639
# File 'generated/google/apis/classroom_v1/classes.rb', line 1637

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

Instance Attribute Details

#cloud_pubsub_topicGoogle::Apis::ClassroomV1::CloudPubsubTopic

A reference to a Cloud Pub/Sub topic. To register for notifications, the owner of the topic must grant [email protected] the projects.topics.publish permission. Corresponds to the JSON property cloudPubsubTopic


1618
1619
1620
# File 'generated/google/apis/classroom_v1/classes.rb', line 1618

def cloud_pubsub_topic
  @cloud_pubsub_topic
end

#expiry_timeString

The time until which the Registration is effective. This is a read-only field assigned by the server. Corresponds to the JSON property expiryTime

Returns:

  • (String)

1624
1625
1626
# File 'generated/google/apis/classroom_v1/classes.rb', line 1624

def expiry_time
  @expiry_time
end

#feedGoogle::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


1630
1631
1632
# File 'generated/google/apis/classroom_v1/classes.rb', line 1630

def feed
  @feed
end

#registration_idString

A server-generated unique identifier for this Registration. Read-only. Corresponds to the JSON property registrationId

Returns:

  • (String)

1635
1636
1637
# File 'generated/google/apis/classroom_v1/classes.rb', line 1635

def registration_id
  @registration_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1642
1643
1644
1645
1646
1647
# File 'generated/google/apis/classroom_v1/classes.rb', line 1642

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