Class: Google::Apis::FormsV1::CloudPubsubTopic

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/forms_v1/classes.rb,
lib/google/apis/forms_v1/representations.rb,
lib/google/apis/forms_v1/representations.rb

Overview

A Pub/Sub topic.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudPubsubTopic

Returns a new instance of CloudPubsubTopic.



175
176
177
# File 'lib/google/apis/forms_v1/classes.rb', line 175

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

Instance Attribute Details

#topic_nameString

Required. A fully qualified Pub/Sub topic name to publish the events to. This topic must be owned by the calling project and already exist in Pub/Sub. Corresponds to the JSON property topicName

Returns:

  • (String)


173
174
175
# File 'lib/google/apis/forms_v1/classes.rb', line 173

def topic_name
  @topic_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



180
181
182
# File 'lib/google/apis/forms_v1/classes.rb', line 180

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