Class: Google::Apis::ClassroomV1::CloudPubsubTopic

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

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.

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) ⇒ CloudPubsubTopic

Returns a new instance of CloudPubsubTopic


219
220
221
# File 'generated/google/apis/classroom_v1/classes.rb', line 219

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

Instance Attribute Details

#topic_nameString

The name field of a Cloud Pub/Sub Topic. Corresponds to the JSON property topicName

Returns:

  • (String)

217
218
219
# File 'generated/google/apis/classroom_v1/classes.rb', line 217

def topic_name
  @topic_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


224
225
226
# File 'generated/google/apis/classroom_v1/classes.rb', line 224

def update!(**args)
  @topic_name = args[:topic_name] if args.key?(:topic_name)
end