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.
Constructor Details
#initialize(**args) ⇒ Topic
Returns a new instance of Topic.
579 580 581 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 579 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Name of the topic.
Corresponds to the JSON property name
577 578 579 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 577 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
584 585 586 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 584 def update!(**args) @name = args[:name] if args.key?(:name) end |