Class: Google::Apis::PubsubV1beta1a::Topic
- Inherits:
-
Object
- Object
- Google::Apis::PubsubV1beta1a::Topic
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pubsub_v1beta1a/classes.rb,
generated/google/apis/pubsub_v1beta1a/representations.rb,
generated/google/apis/pubsub_v1beta1a/representations.rb
Overview
A topic resource.
Instance Attribute Summary collapse
-
#name ⇒ String
Name of the topic.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Topic
constructor
A new instance of Topic.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Topic
Returns a new instance of Topic
594 595 596 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 594 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Name of the topic.
Corresponds to the JSON property name
592 593 594 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 592 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
599 600 601 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 599 def update!(**args) @name = args[:name] if args.key?(:name) end |