Class: Google::Apis::FormsV1::CloudPubsubTopic
- Inherits:
-
Object
- Object
- Google::Apis::FormsV1::CloudPubsubTopic
- 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
-
#topic_name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudPubsubTopic
constructor
A new instance of CloudPubsubTopic.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_name ⇒ String
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
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 |